{ "kind": "Dashboard", "apiVersion": "dashboard.grafana.app/v1beta1", "metadata": { "name": "test-v2alpha1-annotations" }, "spec": { "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": false, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations \u0026 Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" }, { "datasource": { "type": "grafana-testdata-datasource", "uid": "PD8C576611E62080A" }, "enable": true, "hide": false, "iconColor": "blue", "name": "testdata-annos", "target": { "lines": 10, "refId": "Anno", "scenarioId": "annotations" } }, { "datasource": { "type": "prometheus" }, "enable": true, "hide": false, "iconColor": "blue", "name": "no-ds-testdata-annos", "target": { "lines": 10, "refId": "Anno", "scenarioId": "annotations" } }, { "datasource": { "type": "prometheus", "uid": "gdev-prometheus" }, "enable": true, "hide": false, "iconColor": "yellow", "name": "prom-annos", "target": { "expr": "{action=\"add_client\"}", "interval": "", "lines": 10, "refId": "Anno", "scenarioId": "annotations" } }, { "datasource": { "type": "prometheus" }, "enable": true, "hide": false, "iconColor": "yellow", "name": "no-ds-prom-annos", "target": { "expr": "{action=\"add_client\"}", "interval": "", "lines": 10, "refId": "Anno", "scenarioId": "annotations" } }, { "datasource": { "type": "grafana-postgresql-datasource", "uid": "PBBCEC2D313BC06C3" }, "enable": true, "hide": false, "iconColor": "red", "name": "postgress-annos", "target": { "editorMode": "builder", "format": "table", "lines": 10, "rawSql": "", "refId": "Anno", "scenarioId": "annotations", "sql": { "columns": [ { "parameters": [], "type": "function" } ], "groupBy": [ { "property": { "type": "string" }, "type": "groupBy" } ], "limit": 50 } } }, { "datasource": { "type": "elasticsearch", "uid": "gdev-elasticsearch" }, "enable": true, "hide": false, "iconColor": "red", "name": "elastic - annos", "tagsField": "asd", "target": { "lines": 10, "query": "test query", "refId": "Anno", "scenarioId": "annotations" }, "textField": "asd", "timeEndField": "asdas", "timeField": "asd" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "liveNow": false, "panels": [ { "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } } }, "gridPos": { "h": 9, "w": 8, "x": 0, "y": 0 }, "id": 3, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0-pre", "targets": [ { "datasource": { "type": "prometheus" }, "disableTextWrap": false, "editorMode": "builder", "expr": "rate(counters_requests[$__rate_interval])", "fullMetaSearch": false, "includeNullMetadata": false, "instant": false, "legendFormat": "__auto", "range": true, "refId": "A", "useBackend": false } ], "title": "Panel with NO REF to gdev-prometheus", "type": "timeseries" }, { "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } } }, "gridPos": { "h": 9, "w": 8, "x": 8, "y": 0 }, "id": 4, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0-pre", "targets": [ { "datasource": { "type": "prometheus", "uid": "gdev-prometheus" }, "disableTextWrap": false, "editorMode": "builder", "expr": "rate(counters_requests[$__rate_interval])", "fullMetaSearch": false, "includeNullMetadata": false, "instant": false, "legendFormat": "__auto", "range": true, "refId": "A", "useBackend": false } ], "title": "Panel with ref to gdev-prometheus", "type": "timeseries" }, { "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } } }, "gridPos": { "h": 9, "w": 8, "x": 16, "y": 0 }, "id": 2, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.1.0-pre", "targets": [ { "datasource": { "type": "grafana-testdata-datasource" }, "refId": "A", "scenarioId": "random_walk", "seriesCount": 4 } ], "title": "Simple stat (NO DS REF)", "type": "stat" }, { "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } } }, "gridPos": { "h": 9, "w": 8, "x": 0, "y": 9 }, "id": 1, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0-pre", "targets": [ { "datasource": { "type": "grafana-testdata-datasource", "uid": "gdev-testdata" }, "refId": "A", "scenarioId": "random_walk", "seriesCount": 3 } ], "title": "Simple timeseries (WITH DS REF)", "type": "timeseries" }, { "datasource": { "type": "mixed", "uid": "-- Mixed --" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } } }, "gridPos": { "h": 9, "w": 8, "x": 8, "y": 9 }, "id": 5, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0-pre", "targets": [ { "datasource": { "type": "prometheus", "uid": "gdev-prometheus" }, "disableTextWrap": false, "editorMode": "builder", "expr": "rate(counters_requests{server=\"backend-01\"}[$__rate_interval])", "fullMetaSearch": false, "includeNullMetadata": false, "legendFormat": "__auto", "range": true, "refId": "A", "useBackend": false }, { "datasource": { "type": "grafana-testdata-datasource", "uid": "gdev-testdata" }, "refId": "B" } ], "title": "Mixed DS WITH REFS", "type": "timeseries" }, { "datasource": { "type": "mixed", "uid": "-- Mixed --" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } } }, "gridPos": { "h": 9, "w": 8, "x": 16, "y": 9 }, "id": 6, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0-pre", "targets": [ { "datasource": { "type": "prometheus" }, "disableTextWrap": false, "editorMode": "builder", "expr": "rate(counters_requests{server=\"backend-01\"}[$__rate_interval])", "fullMetaSearch": false, "includeNullMetadata": false, "legendFormat": "__auto", "range": true, "refId": "A", "useBackend": false }, { "datasource": { "type": "grafana-testdata-datasource" }, "refId": "B" } ], "title": "Mixed DS WITHOUT REFS", "type": "timeseries" } ], "preload": false, "refresh": "", "schemaVersion": 42, "templating": { "list": [ { "allowCustomValue": false, "current": { "text": "", "value": "" }, "datasource": { "type": "prometheus", "uid": "gdev-prometheus" }, "hide": 0, "includeAll": false, "multi": false, "name": "variable-ds-prometheus", "options": [], "query": { "expr": "up" }, "refresh": 0, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" }, { "allowCustomValue": false, "current": { "text": "", "value": "" }, "datasource": { "type": "grafana-testdata-datasource" }, "hide": 0, "includeAll": false, "multi": false, "name": "variable-no-ds", "options": [], "query": { "csv": "1,2,3,4", "scenarioId": "csv_metric_values" }, "refresh": 0, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" }, { "allowCustomValue": false, "current": { "text": "", "value": "" }, "datasource": { "type": "grafana-testdata-datasource" }, "hide": 0, "includeAll": false, "multi": false, "name": "variable-no-ds-empty-query", "options": [], "query": {}, "refresh": 0, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" }, { "allowCustomValue": false, "current": { "text": "", "value": "" }, "datasource": { "type": "prometheus" }, "hide": 0, "includeAll": false, "multi": false, "name": "variable-no-default-ds", "options": [], "query": { "expr": "up" }, "refresh": 0, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" } ] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "browser", "title": "Test: V2alpha1 dashboard with annotations" }, "status": { "conversion": { "failed": false, "storedVersion": "v2alpha1" } } }