Skip to content

Commit 9e917f7

Browse files
authored
Add Kessel metrics in grafana (RedHatInsights#3244)
1 parent 90e5f1a commit 9e917f7

File tree

1 file changed

+199
-4
lines changed

1 file changed

+199
-4
lines changed

.rhcicd/grafana/grafana-dashboard-notifications-general.configmap.yaml

+199-4
Original file line numberDiff line numberDiff line change
@@ -9327,6 +9327,201 @@ data:
93279327
"title": "Sources — Number of secrets fetched",
93289328
"type": "timeseries"
93299329
},
9330+
{
9331+
"datasource": {
9332+
"type": "prometheus",
9333+
"uid": "$datasource"
9334+
},
9335+
"description": "Shows the increase of the successful requests made to the external services the application depends on.",
9336+
"fieldConfig": {
9337+
"defaults": {
9338+
"color": {
9339+
"mode": "palette-classic"
9340+
},
9341+
"custom": {
9342+
"axisBorderShow": false,
9343+
"axisCenteredZero": false,
9344+
"axisColorMode": "text",
9345+
"axisLabel": "",
9346+
"axisPlacement": "auto",
9347+
"barAlignment": 0,
9348+
"drawStyle": "bars",
9349+
"fillOpacity": 10,
9350+
"gradientMode": "none",
9351+
"hideFrom": {
9352+
"legend": false,
9353+
"tooltip": false,
9354+
"viz": false
9355+
},
9356+
"insertNulls": false,
9357+
"lineInterpolation": "linear",
9358+
"lineWidth": 1,
9359+
"pointSize": 5,
9360+
"scaleDistribution": {
9361+
"type": "linear"
9362+
},
9363+
"showPoints": "never",
9364+
"spanNulls": false,
9365+
"stacking": {
9366+
"group": "A",
9367+
"mode": "none"
9368+
},
9369+
"thresholdsStyle": {
9370+
"mode": "off"
9371+
}
9372+
},
9373+
"decimals": 0,
9374+
"mappings": [],
9375+
"min": 0,
9376+
"thresholds": {
9377+
"mode": "absolute",
9378+
"steps": [
9379+
{
9380+
"color": "green",
9381+
"value": null
9382+
}
9383+
]
9384+
},
9385+
"unit": "short"
9386+
},
9387+
"overrides": [
9388+
{
9389+
"matcher": {
9390+
"id": "byName",
9391+
"options": "Inventory failures"
9392+
},
9393+
"properties": [
9394+
{
9395+
"id": "color",
9396+
"value": {
9397+
"fixedColor": "dark-red",
9398+
"mode": "fixed"
9399+
}
9400+
}
9401+
]
9402+
},
9403+
{
9404+
"matcher": {
9405+
"id": "byName",
9406+
"options": "Relationships failures"
9407+
},
9408+
"properties": [
9409+
{
9410+
"id": "color",
9411+
"value": {
9412+
"fixedColor": "dark-red",
9413+
"mode": "fixed"
9414+
}
9415+
}
9416+
]
9417+
},
9418+
{
9419+
"matcher": {
9420+
"id": "byName",
9421+
"options": "Relationships successes"
9422+
},
9423+
"properties": [
9424+
{
9425+
"id": "color",
9426+
"value": {
9427+
"fixedColor": "green",
9428+
"mode": "fixed"
9429+
}
9430+
}
9431+
]
9432+
},
9433+
{
9434+
"matcher": {
9435+
"id": "byName",
9436+
"options": "Inventory successes"
9437+
},
9438+
"properties": [
9439+
{
9440+
"id": "color",
9441+
"value": {
9442+
"fixedColor": "green",
9443+
"mode": "fixed"
9444+
}
9445+
}
9446+
]
9447+
}
9448+
]
9449+
},
9450+
"gridPos": {
9451+
"h": 8,
9452+
"w": 6,
9453+
"x": 0,
9454+
"y": 180
9455+
},
9456+
"id": 328,
9457+
"options": {
9458+
"legend": {
9459+
"calcs": [],
9460+
"displayMode": "list",
9461+
"placement": "bottom",
9462+
"showLegend": true
9463+
},
9464+
"tooltip": {
9465+
"mode": "multi",
9466+
"sort": "none"
9467+
}
9468+
},
9469+
"pluginVersion": "9.3.8",
9470+
"targets": [
9471+
{
9472+
"datasource": {
9473+
"type": "prometheus",
9474+
"uid": "$datasource"
9475+
},
9476+
"editorMode": "code",
9477+
"expr": "sum (increase(notifications_kessel_inventory_integration_count_total{result=\"successes\"}[$__rate_interval]))",
9478+
"hide": false,
9479+
"legendFormat": "Inventory successes",
9480+
"range": true,
9481+
"refId": "Successful requests"
9482+
},
9483+
{
9484+
"datasource": {
9485+
"type": "prometheus",
9486+
"uid": "$datasource"
9487+
},
9488+
"editorMode": "code",
9489+
"expr": "sum (increase(notifications_kessel_inventory_integration_count_total{result=\"failures\"}[$__rate_interval]))",
9490+
"hide": false,
9491+
"legendFormat": "Inventory failures",
9492+
"range": true,
9493+
"refId": "A"
9494+
},
9495+
{
9496+
"datasource": {
9497+
"type": "prometheus",
9498+
"uid": "$datasource"
9499+
},
9500+
"editorMode": "code",
9501+
"expr": "sum (increase(notifications_kessel_relationships_permission_check_count_total{result=\"successes\"}[$__rate_interval])) + sum (increase(notifications_kessel_relationships_lookup_check_count_total{result=\"successes\"}[$__rate_interval]))",
9502+
"hide": false,
9503+
"instant": false,
9504+
"legendFormat": "Relationships successes",
9505+
"range": true,
9506+
"refId": "B"
9507+
},
9508+
{
9509+
"datasource": {
9510+
"type": "prometheus",
9511+
"uid": "$datasource"
9512+
},
9513+
"editorMode": "code",
9514+
"expr": "sum (increase(notifications_kessel_relationships_permission_check_count_total{result=\"failures\"}[$__rate_interval])) + sum (increase(notifications_kessel_relationships_lookup_check_count_total{result=\"failures\"}[$__rate_interval]))",
9515+
"hide": false,
9516+
"instant": false,
9517+
"legendFormat": "Relationships failures",
9518+
"range": true,
9519+
"refId": "D"
9520+
}
9521+
],
9522+
"title": "Kessel",
9523+
"type": "timeseries"
9524+
},
93309525
{
93319526
"collapsed": false,
93329527
"datasource": {
@@ -9337,7 +9532,7 @@ data:
93379532
"h": 1,
93389533
"w": 24,
93399534
"x": 0,
9340-
"y": 180
9535+
"y": 188
93419536
},
93429537
"id": 24,
93439538
"panels": [],
@@ -9411,7 +9606,7 @@ data:
94119606
"h": 9,
94129607
"w": 8,
94139608
"x": 0,
9414-
"y": 181
9609+
"y": 189
94159610
},
94169611
"id": 22,
94179612
"options": {
@@ -9503,7 +9698,7 @@ data:
95039698
"h": 9,
95049699
"w": 16,
95059700
"x": 8,
9506-
"y": 181
9701+
"y": 189
95079702
},
95089703
"heatmap": {},
95099704
"hideZeroBuckets": false,
@@ -9675,7 +9870,7 @@ data:
96759870
"h": 8,
96769871
"w": 24,
96779872
"x": 0,
9678-
"y": 190
9873+
"y": 198
96799874
},
96809875
"id": 85,
96819876
"options": {

0 commit comments

Comments
 (0)