grafana/examples/alerting-dashboard.json

800 lines
20 KiB
JSON
Raw Normal View History

{
"__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,
2016-08-22 06:30:57 -05:00
"title": "Alerting example",
"tags": [],
"style": "dark",
"timezone": "browser",
"editable": true,
"hideControls": false,
"sharedCrosshair": false,
"rows": [
{
"collapse": false,
"editable": true,
"height": "250px",
"panels": [
{
"alert": {
"conditions": [
{
"evaluator": {
"params": [
2016-08-22 06:30:57 -05:00
355
],
"type": "gt"
},
"query": {
"params": [
"A",
"5m",
"now"
]
},
"reducer": {
"params": [],
2016-08-22 06:30:57 -05:00
"type": "avg"
},
"type": "query"
}
],
"enabled": true,
"frequency": "60s",
"handler": 1,
"name": "Critical alert panel",
"notifications": [],
2016-08-22 07:55:16 -05:00
"severity": "critical"
},
2016-08-22 06:30:57 -05:00
"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": [],
2016-08-22 06:30:57 -05:00
"span": 4,
"stack": false,
"steppedLine": false,
"targets": [
{
"refId": "A",
"target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)"
},
{
2016-08-22 06:30:57 -05:00
"refId": "B",
"target": "aliasByNode(scale(statsd.$apa.counters.session_start.*.count, 10), 4)"
}
],
"thresholds": [
{
"colorMode": "critical",
"fill": true,
"line": true,
"op": "gt",
2016-08-22 06:30:57 -05:00
"value": 355
}
],
"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": [
2016-08-22 06:30:57 -05:00
20
],
"type": "gt"
},
"query": {
"params": [
"A",
"5m",
"now"
]
},
"reducer": {
"params": [],
2016-08-22 06:30:57 -05:00
"type": "avg"
},
"type": "query"
}
],
"enabled": true,
"frequency": "60s",
"handler": 1,
2016-08-22 06:30:57 -05:00
"name": "Warning panel alert",
"notifications": [],
2016-08-22 07:55:16 -05:00
"severity": "warning"
},
2016-08-22 06:30:57 -05:00
"alerting": {},
"aliasColors": {},
"bars": false,
"datasource": "${DS_GRAPHITE}",
"editable": true,
"error": false,
"fill": 1,
2016-08-22 06:30:57 -05:00
"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": [],
2016-08-22 06:30:57 -05:00
"span": 4,
"stack": false,
"steppedLine": false,
"targets": [
{
"refId": "A",
"target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)"
}
],
"thresholds": [
{
2016-08-22 06:30:57 -05:00
"colorMode": "warning",
"fill": true,
2016-08-22 06:30:57 -05:00
"fillColor": "rgba(235, 138, 14, 0.12)",
"line": true,
2016-08-22 06:30:57 -05:00
"lineColor": "rgba(247, 149, 32, 0.60)",
"op": "gt",
2016-08-22 06:30:57 -05:00
"value": 20
}
],
"timeFrom": null,
"timeShift": null,
2016-08-22 06:30:57 -05:00
"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": [
2016-08-22 06:30:57 -05:00
1
],
2016-08-22 06:30:57 -05:00
"type": "lt"
},
"query": {
"params": [
"A",
"5m",
"now"
]
},
"reducer": {
"params": [],
2016-08-22 06:30:57 -05:00
"type": "count"
},
"type": "query"
}
],
"enabled": true,
"frequency": "60s",
"handler": 1,
2016-08-22 06:30:57 -05:00
"name": "No datapoints",
"notifications": [],
2016-08-22 07:55:16 -05:00
"severity": "critical"
},
2016-08-22 06:30:57 -05:00
"alerting": {},
"aliasColors": {},
"bars": false,
"datasource": "${DS_GRAPHITE}",
"editable": true,
"error": false,
"fill": 1,
2016-08-22 06:30:57 -05:00
"id": 20,
"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": [],
2016-08-22 06:30:57 -05:00
"span": 4,
"stack": false,
"steppedLine": false,
"targets": [
{
"refId": "A",
"target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)"
}
],
"thresholds": [
{
2016-08-22 06:30:57 -05:00
"value": 1,
"op": "lt",
"fill": true,
"line": true,
2016-08-22 06:30:57 -05:00
"colorMode": "critical"
}
],
"timeFrom": null,
"timeShift": null,
2016-08-22 06:30:57 -05:00
"title": "Count datapoints",
"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
],
2016-08-22 06:30:57 -05:00
"type": "lt"
},
"query": {
"params": [
"A",
"5m",
"now"
]
},
"reducer": {
"params": [],
"type": "avg"
},
"type": "query"
}
],
"enabled": true,
"frequency": "60s",
"handler": 1,
2016-08-22 06:30:57 -05:00
"name": "Alert below value",
"notifications": [],
2016-08-22 07:55:16 -05:00
"severity": "critical"
},
2016-08-22 06:30:57 -05:00
"alerting": {},
"aliasColors": {},
"bars": false,
"datasource": "${DS_GRAPHITE}",
"editable": true,
"error": false,
"fill": 1,
2016-08-22 06:30:57 -05:00
"id": 17,
"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": [
{
2016-08-22 06:30:57 -05:00
"colorMode": "critical",
"fill": true,
2016-08-22 06:30:57 -05:00
"fillColor": "rgba(234, 112, 112, 0.12)",
"line": true,
2016-08-22 06:30:57 -05:00
"lineColor": "rgba(237, 46, 24, 0.60)",
"op": "lt",
"value": 20
}
],
"timeFrom": null,
"timeShift": null,
2016-08-22 06:30:57 -05:00
"title": "Alert below value",
"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": [
2016-08-22 06:30:57 -05:00
10,
80
],
2016-08-22 06:30:57 -05:00
"type": "outside_range"
},
"query": {
"params": [
"A",
"5m",
"now"
]
},
"reducer": {
"params": [],
"type": "avg"
},
"type": "query"
}
],
"enabled": true,
2016-08-22 06:30:57 -05:00
"frequency": "10s",
"handler": 1,
2016-08-22 06:30:57 -05:00
"name": "Alert is outside range",
"notifications": [],
2016-08-22 07:55:16 -05:00
"severity": "critical"
},
2016-08-22 06:30:57 -05:00
"alerting": {},
"aliasColors": {},
"bars": false,
"datasource": "${DS_GRAPHITE}",
"editable": true,
"error": false,
"fill": 1,
2016-08-22 06:30:57 -05:00
"id": 18,
"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": [
{
2016-08-22 06:30:57 -05:00
"colorMode": "critical",
"fill": true,
2016-08-22 06:30:57 -05:00
"fillColor": "rgba(234, 112, 112, 0.12)",
"line": true,
2016-08-22 06:30:57 -05:00
"lineColor": "rgba(237, 46, 24, 0.60)",
"op": "lt",
"value": 10
},
{
"colorMode": "critical",
"fill": true,
"fillColor": "rgba(234, 112, 112, 0.12)",
"line": true,
"lineColor": "rgba(237, 46, 24, 0.60)",
"op": "gt",
2016-08-22 06:30:57 -05:00
"value": 80
}
],
"timeFrom": null,
"timeShift": null,
2016-08-22 06:30:57 -05:00
"title": "Alert is outside range",
"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": [
2016-08-22 06:30:57 -05:00
60,
80
],
2016-08-22 06:30:57 -05:00
"type": "within_range"
},
"query": {
"params": [
"A",
"5m",
"now"
]
},
"reducer": {
"params": [],
"type": "avg"
},
"type": "query"
}
],
"enabled": true,
2016-08-22 06:30:57 -05:00
"frequency": "10s",
"handler": 1,
2016-08-22 06:30:57 -05:00
"name": "Alert is within range",
"notifications": [],
2016-08-22 07:55:16 -05:00
"severity": "critical"
},
2016-08-22 06:30:57 -05:00
"alerting": {},
"aliasColors": {},
"bars": false,
"datasource": "${DS_GRAPHITE}",
"editable": true,
"error": false,
"fill": 1,
2016-08-22 06:30:57 -05:00
"id": 19,
"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": [
{
2016-08-22 06:30:57 -05:00
"colorMode": "critical",
"fill": true,
2016-08-22 06:30:57 -05:00
"fillColor": "rgba(234, 112, 112, 0.12)",
"line": true,
2016-08-22 06:30:57 -05:00
"lineColor": "rgba(237, 46, 24, 0.60)",
"op": "gt",
2016-08-22 06:30:57 -05:00
"value": 60
},
{
"colorMode": "critical",
"fill": true,
"fillColor": "rgba(234, 112, 112, 0.12)",
"line": true,
"lineColor": "rgba(237, 46, 24, 0.60)",
"op": "lt",
"value": 80
}
],
"timeFrom": null,
"timeShift": null,
2016-08-22 06:30:57 -05:00
"title": "Alert is within range",
"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
}
]
2016-08-22 06:30:57 -05:00
}
],
"title": "New row"
}
],
"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": [
{
"current": {
"text": "fakesite",
"value": "fakesite"
},
2016-08-22 06:30:57 -05:00
"datasource": null,
"hide": 0,
"includeAll": false,
"multi": false,
"name": "apa",
"options": [
{
"selected": true,
"text": "fakesite",
"value": "fakesite"
}
],
"query": "fakesite",
"refresh": 0,
"type": "custom"
}
]
},
"annotations": {
"list": []
},
"schemaVersion": 13,
2016-08-22 06:30:57 -05:00
"version": 15,
"links": [],
"gnetId": null
}