From d8cfe223187055e8c87e1fe0dae013191e76c34d Mon Sep 17 00:00:00 2001 From: bergquist Date: Wed, 17 Aug 2016 10:35:48 +0200 Subject: [PATCH 1/2] tech(alerting): add example dashboard with many alerts --- examples/alerting-dashboard.json | 2349 ++++++++++++++++++++++++++++++ 1 file changed, 2349 insertions(+) create mode 100644 examples/alerting-dashboard.json diff --git a/examples/alerting-dashboard.json b/examples/alerting-dashboard.json new file mode 100644 index 00000000000..f6a4d7649fc --- /dev/null +++ b/examples/alerting-dashboard.json @@ -0,0 +1,2349 @@ +{ + "__inputs": [ + { + "name": "DS_GRAPHITE", + "label": "graphite", + "description": "", + "type": "datasource", + "pluginId": "graphite", + "pluginName": "Graphite" + } + ], + "__requires": [ + { + "type": "panel", + "id": "graph", + "name": "Graph", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "3.1.0" + }, + { + "type": "datasource", + "id": "graphite", + "name": "Graphite", + "version": "1.0.0" + } + ], + "id": null, + "title": "Dashboard with many alerts", + "tags": [], + "style": "dark", + "timezone": "browser", + "editable": true, + "hideControls": false, + "sharedCrosshair": false, + "rows": [ + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "alert": { + "conditions": [ + { + "evaluator": { + "params": [ + 30 + ], + "type": "gt" + }, + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "params": [], + "type": "sum" + }, + "type": "query" + } + ], + "crit": { + "op": ">" + }, + "enabled": true, + "frequency": "60s", + "handler": 1, + "name": "Critical alert panel", + "notifications": [], + "severity": "critical", + "warn": { + "op": ">" + } + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 1, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "colorMode": "critical", + "fill": true, + "fillColor": "rgba(234, 112, 112, 0.12)", + "line": true, + "lineColor": "rgba(237, 46, 24, 0.60)", + "op": "gt", + "value": 30 + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Critical panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "alert": { + "conditions": [ + { + "evaluator": { + "params": [ + 30 + ], + "type": "gt" + }, + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "params": [], + "type": "sum" + }, + "type": "query" + } + ], + "crit": { + "op": ">" + }, + "enabled": true, + "frequency": "60s", + "handler": 1, + "name": "Critical alert panel", + "notifications": [], + "severity": "critical", + "warn": { + "op": ">" + } + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 5, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "colorMode": "critical", + "fill": true, + "fillColor": "rgba(234, 112, 112, 0.12)", + "line": true, + "lineColor": "rgba(237, 46, 24, 0.60)", + "op": "gt", + "value": 30 + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Critical panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "alert": { + "conditions": [ + { + "evaluator": { + "params": [ + 30 + ], + "type": "gt" + }, + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "params": [], + "type": "sum" + }, + "type": "query" + } + ], + "crit": { + "op": ">" + }, + "enabled": true, + "frequency": "60s", + "handler": 1, + "name": "Critical alert panel", + "notifications": [], + "severity": "critical", + "warn": { + "op": ">" + } + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 6, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "colorMode": "critical", + "fill": true, + "fillColor": "rgba(234, 112, 112, 0.12)", + "line": true, + "lineColor": "rgba(237, 46, 24, 0.60)", + "op": "gt", + "value": 30 + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Critical panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "alert": { + "conditions": [ + { + "evaluator": { + "params": [ + 30 + ], + "type": "gt" + }, + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "params": [], + "type": "sum" + }, + "type": "query" + } + ], + "crit": { + "op": ">" + }, + "enabled": true, + "frequency": "60s", + "handler": 1, + "name": "Critical alert panel", + "notifications": [], + "severity": "critical", + "warn": { + "op": ">" + } + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "grid": {}, + "id": 8, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "colorMode": "critical", + "fill": true, + "fillColor": "rgba(234, 112, 112, 0.12)", + "line": true, + "lineColor": "rgba(237, 46, 24, 0.60)", + "op": "gt", + "value": 30 + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Critical panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "title": "Row" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "alert": { + "conditions": [ + { + "evaluator": { + "params": [ + 20 + ], + "type": "gt" + }, + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "params": [], + "type": "avg" + }, + "type": "query" + } + ], + "crit": { + "op": ">" + }, + "enabled": true, + "frequency": "60s", + "handler": 1, + "name": "Warning panel alert", + "notifications": [], + "severity": "warning", + "warn": { + "op": ">" + } + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "id": 2, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "colorMode": "warning", + "fill": true, + "fillColor": "rgba(235, 138, 14, 0.12)", + "line": true, + "lineColor": "rgba(247, 149, 32, 0.60)", + "op": "gt", + "value": 20 + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Warning panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "alert": { + "conditions": [ + { + "evaluator": { + "params": [ + 20 + ], + "type": "gt" + }, + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "params": [], + "type": "avg" + }, + "type": "query" + } + ], + "crit": { + "op": ">" + }, + "enabled": true, + "frequency": "60s", + "handler": 1, + "name": "Warning panel alert", + "notifications": [], + "severity": "warning", + "warn": { + "op": ">" + } + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "id": 3, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "colorMode": "warning", + "fill": true, + "fillColor": "rgba(235, 138, 14, 0.12)", + "line": true, + "lineColor": "rgba(247, 149, 32, 0.60)", + "op": "gt", + "value": 20 + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Warning panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "alert": { + "conditions": [ + { + "evaluator": { + "params": [ + 20 + ], + "type": "gt" + }, + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "params": [], + "type": "avg" + }, + "type": "query" + } + ], + "crit": { + "op": ">" + }, + "enabled": true, + "frequency": "60s", + "handler": 1, + "name": "Warning panel alert", + "notifications": [], + "severity": "warning", + "warn": { + "op": ">" + } + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "id": 4, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "colorMode": "warning", + "fill": true, + "fillColor": "rgba(235, 138, 14, 0.12)", + "line": true, + "lineColor": "rgba(247, 149, 32, 0.60)", + "op": "gt", + "value": 20 + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Warning panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "alert": { + "conditions": [ + { + "evaluator": { + "params": [ + 20 + ], + "type": "gt" + }, + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "params": [], + "type": "avg" + }, + "type": "query" + } + ], + "crit": { + "op": ">" + }, + "enabled": true, + "frequency": "60s", + "handler": 1, + "name": "Warning panel alert", + "notifications": [], + "severity": "warning", + "warn": { + "op": ">" + } + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "id": 7, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "colorMode": "warning", + "fill": true, + "fillColor": "rgba(235, 138, 14, 0.12)", + "line": true, + "lineColor": "rgba(247, 149, 32, 0.60)", + "op": "gt", + "value": 20 + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Warning panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "title": "New row" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "alert": { + "conditions": [ + { + "evaluator": { + "params": [ + 50 + ], + "type": "gt" + }, + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "params": [], + "type": "avg" + }, + "type": "query" + } + ], + "crit": { + "op": ">" + }, + "enabled": true, + "frequency": "10s", + "handler": 1, + "name": "Fast Critical panel alert", + "notifications": [], + "severity": "critical", + "warn": { + "op": ">" + } + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "id": 9, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "colorMode": "critical", + "fill": true, + "fillColor": "rgba(234, 112, 112, 0.12)", + "line": true, + "lineColor": "rgba(237, 46, 24, 0.60)", + "op": "gt", + "value": 50 + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Fast Critical panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "alert": { + "conditions": [ + { + "evaluator": { + "params": [ + 50 + ], + "type": "gt" + }, + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "params": [], + "type": "avg" + }, + "type": "query" + } + ], + "crit": { + "op": ">" + }, + "enabled": true, + "frequency": "10s", + "handler": 1, + "name": "Fast Critical panel alert", + "notifications": [], + "severity": "critical", + "warn": { + "op": ">" + } + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "id": 10, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "colorMode": "critical", + "fill": true, + "fillColor": "rgba(234, 112, 112, 0.12)", + "line": true, + "lineColor": "rgba(237, 46, 24, 0.60)", + "op": "gt", + "value": 50 + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Fast Critical panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "alert": { + "conditions": [ + { + "evaluator": { + "params": [ + 50 + ], + "type": "gt" + }, + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "params": [], + "type": "avg" + }, + "type": "query" + } + ], + "crit": { + "op": ">" + }, + "enabled": true, + "frequency": "10s", + "handler": 1, + "name": "Fast Critical panel alert", + "notifications": [], + "severity": "critical", + "warn": { + "op": ">" + } + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "id": 11, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "colorMode": "critical", + "fill": true, + "fillColor": "rgba(234, 112, 112, 0.12)", + "line": true, + "lineColor": "rgba(237, 46, 24, 0.60)", + "op": "gt", + "value": 50 + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Fast Critical panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "alert": { + "conditions": [ + { + "evaluator": { + "params": [ + 50 + ], + "type": "gt" + }, + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "params": [], + "type": "avg" + }, + "type": "query" + } + ], + "crit": { + "op": ">" + }, + "enabled": true, + "frequency": "10s", + "handler": 1, + "name": "Fast Critical panel alert", + "notifications": [], + "severity": "critical", + "warn": { + "op": ">" + } + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "id": 12, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "colorMode": "critical", + "fill": true, + "fillColor": "rgba(234, 112, 112, 0.12)", + "line": true, + "lineColor": "rgba(237, 46, 24, 0.60)", + "op": "gt", + "value": 50 + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Fast Critical panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "title": "New row" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "alert": { + "enabled": true, + "warn": { + "op": ">" + }, + "crit": { + "op": ">" + }, + "conditions": [ + { + "type": "query", + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "type": "avg", + "params": [] + }, + "evaluator": { + "type": "gt", + "params": [ + 10 + ] + } + } + ], + "severity": "warning", + "frequency": "1s", + "handler": 1, + "notifications": [], + "name": "Fast Warning panel alert" + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "id": 13, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "value": 10, + "op": "gt", + "fill": true, + "line": true, + "colorMode": "warning", + "fillColor": "rgba(235, 138, 14, 0.12)", + "lineColor": "rgba(247, 149, 32, 0.60)" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Fast Warning panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "alert": { + "enabled": true, + "warn": { + "op": ">" + }, + "crit": { + "op": ">" + }, + "conditions": [ + { + "type": "query", + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "type": "avg", + "params": [] + }, + "evaluator": { + "type": "gt", + "params": [ + 10 + ] + } + } + ], + "severity": "warning", + "frequency": "1s", + "handler": 1, + "notifications": [], + "name": "Fast Warning panel alert" + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "id": 14, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "value": 10, + "op": "gt", + "fill": true, + "line": true, + "colorMode": "warning", + "fillColor": "rgba(235, 138, 14, 0.12)", + "lineColor": "rgba(247, 149, 32, 0.60)" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Fast Warning panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "alert": { + "enabled": true, + "warn": { + "op": ">" + }, + "crit": { + "op": ">" + }, + "conditions": [ + { + "type": "query", + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "type": "avg", + "params": [] + }, + "evaluator": { + "type": "gt", + "params": [ + 10 + ] + } + } + ], + "severity": "warning", + "frequency": "1s", + "handler": 1, + "notifications": [], + "name": "Fast Warning panel alert" + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "id": 15, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "value": 10, + "op": "gt", + "fill": true, + "line": true, + "colorMode": "warning", + "fillColor": "rgba(235, 138, 14, 0.12)", + "lineColor": "rgba(247, 149, 32, 0.60)" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Fast Warning panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "alert": { + "enabled": true, + "warn": { + "op": ">" + }, + "crit": { + "op": ">" + }, + "conditions": [ + { + "type": "query", + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "type": "avg", + "params": [] + }, + "evaluator": { + "type": "gt", + "params": [ + 10 + ] + } + } + ], + "severity": "warning", + "frequency": "1s", + "handler": 1, + "notifications": [], + "name": "Fast Warning panel alert" + }, + "alerting": {}, + "aliasColors": {}, + "bars": false, + "datasource": "${DS_GRAPHITE}", + "editable": true, + "error": false, + "fill": 1, + "id": 16, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)" + } + ], + "thresholds": [ + { + "value": 10, + "op": "gt", + "fill": true, + "line": true, + "colorMode": "warning", + "fillColor": "rgba(235, 138, 14, 0.12)", + "lineColor": "rgba(247, 149, 32, 0.60)" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Fast Warning panel", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "show": true + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "title": "New row" + }, + { + "title": "New row", + "height": "250px", + "editable": true, + "collapse": false, + "panels": [ + { + "title": "Alert below value", + "error": false, + "span": 3, + "editable": true, + "type": "graph", + "isNew": true, + "id": 17, + "targets": [ + { + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)", + "refId": "A" + } + ], + "datasource": "${DS_GRAPHITE}", + "renderer": "flot", + "yaxes": [ + { + "label": null, + "show": true, + "logBase": 1, + "min": null, + "max": null, + "format": "short" + }, + { + "label": null, + "show": true, + "logBase": 1, + "min": null, + "max": null, + "format": "short" + } + ], + "xaxis": { + "show": true + }, + "alert": { + "warn": { + "op": ">" + }, + "crit": { + "op": ">" + }, + "conditions": [ + { + "type": "query", + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "type": "avg", + "params": [] + }, + "evaluator": { + "type": "lt", + "params": [ + 20 + ] + } + } + ], + "severity": "critical", + "frequency": "60s", + "handler": 1, + "notifications": [], + "name": "Alert below value", + "enabled": true + }, + "lines": true, + "fill": 1, + "linewidth": 2, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false + }, + "nullPointMode": "connected", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "shared": true, + "sort": 0, + "msResolution": false + }, + "timeFrom": null, + "timeShift": null, + "aliasColors": {}, + "seriesOverrides": [], + "alerting": {}, + "thresholds": [ + { + "value": 20, + "op": "lt", + "fill": true, + "line": true, + "colorMode": "critical", + "fillColor": "rgba(234, 112, 112, 0.12)", + "lineColor": "rgba(237, 46, 24, 0.60)" + } + ], + "links": [] + }, + { + "title": "Alert is outside range", + "error": false, + "span": 3, + "editable": true, + "type": "graph", + "isNew": true, + "id": 18, + "targets": [ + { + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)", + "refId": "A" + } + ], + "datasource": "${DS_GRAPHITE}", + "renderer": "flot", + "yaxes": [ + { + "label": null, + "show": true, + "logBase": 1, + "min": null, + "max": null, + "format": "short" + }, + { + "label": null, + "show": true, + "logBase": 1, + "min": null, + "max": null, + "format": "short" + } + ], + "xaxis": { + "show": true + }, + "alert": { + "warn": { + "op": ">" + }, + "crit": { + "op": ">" + }, + "conditions": [ + { + "type": "query", + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "type": "avg", + "params": [] + }, + "evaluator": { + "type": "outside_range", + "params": [ + 10, + 80 + ] + } + } + ], + "severity": "critical", + "frequency": "10s", + "handler": 1, + "notifications": [], + "name": "Alert is outside range", + "enabled": true + }, + "lines": true, + "fill": 1, + "linewidth": 2, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false + }, + "nullPointMode": "connected", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "shared": true, + "sort": 0, + "msResolution": false + }, + "timeFrom": null, + "timeShift": null, + "aliasColors": {}, + "seriesOverrides": [], + "alerting": {}, + "thresholds": [ + { + "value": 10, + "op": "lt", + "fill": true, + "line": true, + "colorMode": "critical", + "fillColor": "rgba(234, 112, 112, 0.12)", + "lineColor": "rgba(237, 46, 24, 0.60)" + }, + { + "value": 80, + "op": "gt", + "fill": true, + "line": true, + "colorMode": "critical", + "fillColor": "rgba(234, 112, 112, 0.12)", + "lineColor": "rgba(237, 46, 24, 0.60)" + } + ], + "links": [] + }, + { + "title": "Alert is within range", + "error": false, + "span": 3, + "editable": true, + "type": "graph", + "isNew": true, + "id": 19, + "targets": [ + { + "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)", + "refId": "A" + } + ], + "datasource": "${DS_GRAPHITE}", + "renderer": "flot", + "yaxes": [ + { + "label": null, + "show": true, + "logBase": 1, + "min": null, + "max": null, + "format": "short" + }, + { + "label": null, + "show": true, + "logBase": 1, + "min": null, + "max": null, + "format": "short" + } + ], + "xaxis": { + "show": true + }, + "alert": { + "warn": { + "op": ">" + }, + "crit": { + "op": ">" + }, + "conditions": [ + { + "type": "query", + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "type": "avg", + "params": [] + }, + "evaluator": { + "type": "within_range", + "params": [ + 60, + 80 + ] + } + } + ], + "severity": "critical", + "frequency": "10s", + "handler": 1, + "notifications": [], + "name": "Alert is within range", + "enabled": true + }, + "lines": true, + "fill": 1, + "linewidth": 2, + "points": false, + "pointradius": 5, + "bars": false, + "stack": false, + "percentage": false, + "legend": { + "show": true, + "values": false, + "min": false, + "max": false, + "current": false, + "total": false, + "avg": false + }, + "nullPointMode": "connected", + "steppedLine": false, + "tooltip": { + "value_type": "cumulative", + "shared": true, + "sort": 0, + "msResolution": false + }, + "timeFrom": null, + "timeShift": null, + "aliasColors": {}, + "seriesOverrides": [], + "alerting": {}, + "thresholds": [ + { + "value": 60, + "op": "gt", + "fill": true, + "line": true, + "colorMode": "critical", + "fillColor": "rgba(234, 112, 112, 0.12)", + "lineColor": "rgba(237, 46, 24, 0.60)" + }, + { + "value": 80, + "op": "lt", + "fill": true, + "line": true, + "colorMode": "critical", + "fillColor": "rgba(234, 112, 112, 0.12)", + "lineColor": "rgba(237, 46, 24, 0.60)" + } + ], + "links": [] + } + ] + } + ], + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "templating": { + "list": [] + }, + "annotations": { + "list": [] + }, + "schemaVersion": 13, + "version": 50, + "links": [], + "gnetId": null +} \ No newline at end of file From 7d1e5b637474dea5dcb4ac3ab425dd0b0e232798 Mon Sep 17 00:00:00 2001 From: bergquist Date: Wed, 17 Aug 2016 10:53:24 +0200 Subject: [PATCH 2/2] tech(alerting): remove old crit/warn properties from dashboard --- examples/alerting-dashboard.json | 138 +++---------------------------- 1 file changed, 12 insertions(+), 126 deletions(-) diff --git a/examples/alerting-dashboard.json b/examples/alerting-dashboard.json index f6a4d7649fc..ea30f6d6875 100644 --- a/examples/alerting-dashboard.json +++ b/examples/alerting-dashboard.json @@ -67,18 +67,12 @@ "type": "query" } ], - "crit": { - "op": ">" - }, "enabled": true, "frequency": "60s", "handler": 1, "name": "Critical alert panel", "notifications": [], - "severity": "critical", - "warn": { - "op": ">" - } + "severity": "critical" }, "alerting": {}, "aliasColors": {}, @@ -184,18 +178,12 @@ "type": "query" } ], - "crit": { - "op": ">" - }, "enabled": true, "frequency": "60s", "handler": 1, "name": "Critical alert panel", "notifications": [], - "severity": "critical", - "warn": { - "op": ">" - } + "severity": "critical" }, "alerting": {}, "aliasColors": {}, @@ -301,18 +289,12 @@ "type": "query" } ], - "crit": { - "op": ">" - }, "enabled": true, "frequency": "60s", "handler": 1, "name": "Critical alert panel", "notifications": [], - "severity": "critical", - "warn": { - "op": ">" - } + "severity": "critical" }, "alerting": {}, "aliasColors": {}, @@ -418,18 +400,12 @@ "type": "query" } ], - "crit": { - "op": ">" - }, "enabled": true, "frequency": "60s", "handler": 1, "name": "Critical alert panel", "notifications": [], - "severity": "critical", - "warn": { - "op": ">" - } + "severity": "critical" }, "alerting": {}, "aliasColors": {}, @@ -543,18 +519,12 @@ "type": "query" } ], - "crit": { - "op": ">" - }, "enabled": true, "frequency": "60s", "handler": 1, "name": "Warning panel alert", "notifications": [], - "severity": "warning", - "warn": { - "op": ">" - } + "severity": "warning" }, "alerting": {}, "aliasColors": {}, @@ -659,18 +629,12 @@ "type": "query" } ], - "crit": { - "op": ">" - }, "enabled": true, "frequency": "60s", "handler": 1, "name": "Warning panel alert", "notifications": [], - "severity": "warning", - "warn": { - "op": ">" - } + "severity": "warning" }, "alerting": {}, "aliasColors": {}, @@ -775,18 +739,12 @@ "type": "query" } ], - "crit": { - "op": ">" - }, "enabled": true, "frequency": "60s", "handler": 1, "name": "Warning panel alert", "notifications": [], - "severity": "warning", - "warn": { - "op": ">" - } + "severity": "warning" }, "alerting": {}, "aliasColors": {}, @@ -891,18 +849,12 @@ "type": "query" } ], - "crit": { - "op": ">" - }, "enabled": true, "frequency": "60s", "handler": 1, "name": "Warning panel alert", "notifications": [], - "severity": "warning", - "warn": { - "op": ">" - } + "severity": "warning" }, "alerting": {}, "aliasColors": {}, @@ -1015,18 +967,12 @@ "type": "query" } ], - "crit": { - "op": ">" - }, "enabled": true, "frequency": "10s", "handler": 1, "name": "Fast Critical panel alert", "notifications": [], - "severity": "critical", - "warn": { - "op": ">" - } + "severity": "critical" }, "alerting": {}, "aliasColors": {}, @@ -1131,18 +1077,12 @@ "type": "query" } ], - "crit": { - "op": ">" - }, "enabled": true, "frequency": "10s", "handler": 1, "name": "Fast Critical panel alert", "notifications": [], - "severity": "critical", - "warn": { - "op": ">" - } + "severity": "critical" }, "alerting": {}, "aliasColors": {}, @@ -1247,18 +1187,12 @@ "type": "query" } ], - "crit": { - "op": ">" - }, "enabled": true, "frequency": "10s", "handler": 1, "name": "Fast Critical panel alert", "notifications": [], - "severity": "critical", - "warn": { - "op": ">" - } + "severity": "critical" }, "alerting": {}, "aliasColors": {}, @@ -1363,18 +1297,12 @@ "type": "query" } ], - "crit": { - "op": ">" - }, "enabled": true, "frequency": "10s", "handler": 1, "name": "Fast Critical panel alert", "notifications": [], - "severity": "critical", - "warn": { - "op": ">" - } + "severity": "critical" }, "alerting": {}, "aliasColors": {}, @@ -1466,12 +1394,6 @@ { "alert": { "enabled": true, - "warn": { - "op": ">" - }, - "crit": { - "op": ">" - }, "conditions": [ { "type": "query", @@ -1582,12 +1504,6 @@ { "alert": { "enabled": true, - "warn": { - "op": ">" - }, - "crit": { - "op": ">" - }, "conditions": [ { "type": "query", @@ -1698,12 +1614,6 @@ { "alert": { "enabled": true, - "warn": { - "op": ">" - }, - "crit": { - "op": ">" - }, "conditions": [ { "type": "query", @@ -1814,12 +1724,6 @@ { "alert": { "enabled": true, - "warn": { - "op": ">" - }, - "crit": { - "op": ">" - }, "conditions": [ { "type": "query", @@ -1974,12 +1878,6 @@ "show": true }, "alert": { - "warn": { - "op": ">" - }, - "crit": { - "op": ">" - }, "conditions": [ { "type": "query", @@ -2090,12 +1988,6 @@ "show": true }, "alert": { - "warn": { - "op": ">" - }, - "crit": { - "op": ">" - }, "conditions": [ { "type": "query", @@ -2216,12 +2108,6 @@ "show": true }, "alert": { - "warn": { - "op": ">" - }, - "crit": { - "op": ">" - }, "conditions": [ { "type": "query",