From d1e84f3068b13b6e93fec06ec9b02689817b1e14 Mon Sep 17 00:00:00 2001 From: Muhammad Arif <40067075+thearifismail@users.noreply.github.com> Date: Tue, 11 Feb 2025 14:59:10 -0500 Subject: [PATCH] Add Syndication failure metric to the Grafana dashboard (#2257) * Add Syndication failure metric to the Grafana dashboard rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED * Add Syndication failure metric to the Grafana dashboard rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED * remove the left TODO comment rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED --- ...-insights-inventory-general.configmap.yaml | 91 +++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/dashboards/grafana-dashboard-insights-inventory-general.configmap.yaml b/dashboards/grafana-dashboard-insights-inventory-general.configmap.yaml index c0fc948e7..987568960 100644 --- a/dashboards/grafana-dashboard-insights-inventory-general.configmap.yaml +++ b/dashboards/grafana-dashboard-insights-inventory-general.configmap.yaml @@ -1010,6 +1010,97 @@ data: ], "valueName": "current" }, + { + "cacheTimeout": null, + "colorBackground": true, + "colorPostfix": false, + "colorValue": false, + "colors": [ + "#d44a3a", + "rgba(237, 129, 40, 0.89)", + "#299c46" + ], + "datasource": "$datasource", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 2, + "w": 3, + "x": 9, + "y": 8 + }, + "id": 77, + "interval": null, + "links": [ + { + "targetBlank": true, + "url": "[[kibana]],query:'@log_stream:+%22host-inventory-syndicator-*%22+AND+message:+%22DB+Name\:+insights%22'),sort:!('@timestamp',desc))" + } + ], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "sparkline": { + "fillColor": "#052b51", + "full": true, + "lineColor": "#e5ac0e", + "show": false + }, + "tableColumn": "", + "targets": [ + { + "expr": "sum(increase(hosts_syndication_fail_count_total{namespace=~\"host-inventory-*\"}[$_range]))" + "interval": "5m", + "refId": "A" + } + ], + "thresholds": "0,1", + "title": "Syndication Failures", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + } { "cacheTimeout": null, "colorBackground": true,