diff --git a/roles/ai3-prometheus/files/grafana/dashboards/sli.json b/roles/ai3-prometheus/files/grafana/dashboards/sli.json new file mode 100644 index 0000000000000000000000000000000000000000..fa366e1f40f0faec2f2298b536e4207adf63f7e4 --- /dev/null +++ b/roles/ai3-prometheus/files/grafana/dashboards/sli.json @@ -0,0 +1,162 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 44, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "P49960DE5880E8C68" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 3, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + }, + { + "color": "#EAB839", + "value": 0.996 + }, + { + "color": "green", + "value": 0.999 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 31, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "options": { + "displayMode": "basic", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [], + "fields": "/^Value$/", + "limit": 50, + "values": true + }, + "showUnfilled": true + }, + "pluginVersion": "9.3.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P49960DE5880E8C68" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg_over_time(max(probe_success{prober_float_service=\"$prober_float_service\"}) by (probe)[30d:])", + "format": "table", + "instant": true, + "legendFormat": "{{probe}}", + "range": false, + "refId": "A" + } + ], + "title": "Service SLI", + "transformations": [ + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": false, + "field": "Value" + } + ] + } + } + ], + "type": "bargauge" + } + ], + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "ai3-prober", + "value": "ai3-prober" + }, + "datasource": { + "type": "prometheus", + "uid": "P49960DE5880E8C68" + }, + "definition": "label_values(probe_success, prober_float_service)", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "prober_float_service", + "options": [], + "query": { + "query": "label_values(probe_success, prober_float_service)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Service SLI", + "uid": "26rk7GhVz", + "version": 2, + "weekStart": "" +}