mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
800 lines
20 KiB
JSON
800 lines
20 KiB
JSON
{
|
|
"__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": "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": [
|
|
355
|
|
],
|
|
"type": "gt"
|
|
},
|
|
"query": {
|
|
"params": [
|
|
"A",
|
|
"5m",
|
|
"now"
|
|
]
|
|
},
|
|
"reducer": {
|
|
"params": [],
|
|
"type": "avg"
|
|
},
|
|
"type": "query"
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"frequency": "60s",
|
|
"handler": 1,
|
|
"name": "Critical alert panel",
|
|
"notifications": [],
|
|
"severity": "critical"
|
|
},
|
|
"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": 4,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)"
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"target": "aliasByNode(scale(statsd.$apa.counters.session_start.*.count, 10), 4)"
|
|
}
|
|
],
|
|
"thresholds": [
|
|
{
|
|
"colorMode": "critical",
|
|
"fill": true,
|
|
"line": true,
|
|
"op": "gt",
|
|
"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": [
|
|
20
|
|
],
|
|
"type": "gt"
|
|
},
|
|
"query": {
|
|
"params": [
|
|
"A",
|
|
"5m",
|
|
"now"
|
|
]
|
|
},
|
|
"reducer": {
|
|
"params": [],
|
|
"type": "avg"
|
|
},
|
|
"type": "query"
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"frequency": "60s",
|
|
"handler": 1,
|
|
"name": "Warning panel alert",
|
|
"notifications": [],
|
|
"severity": "warning"
|
|
},
|
|
"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": 4,
|
|
"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": [
|
|
1
|
|
],
|
|
"type": "lt"
|
|
},
|
|
"query": {
|
|
"params": [
|
|
"A",
|
|
"5m",
|
|
"now"
|
|
]
|
|
},
|
|
"reducer": {
|
|
"params": [],
|
|
"type": "count"
|
|
},
|
|
"type": "query"
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"frequency": "60s",
|
|
"handler": 1,
|
|
"name": "No datapoints",
|
|
"notifications": [],
|
|
"severity": "critical"
|
|
},
|
|
"alerting": {},
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"datasource": "${DS_GRAPHITE}",
|
|
"editable": true,
|
|
"error": false,
|
|
"fill": 1,
|
|
"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": [],
|
|
"span": 4,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)"
|
|
}
|
|
],
|
|
"thresholds": [
|
|
{
|
|
"value": 1,
|
|
"op": "lt",
|
|
"fill": true,
|
|
"line": true,
|
|
"colorMode": "critical"
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"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
|
|
],
|
|
"type": "lt"
|
|
},
|
|
"query": {
|
|
"params": [
|
|
"A",
|
|
"5m",
|
|
"now"
|
|
]
|
|
},
|
|
"reducer": {
|
|
"params": [],
|
|
"type": "avg"
|
|
},
|
|
"type": "query"
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"frequency": "60s",
|
|
"handler": 1,
|
|
"name": "Alert below value",
|
|
"notifications": [],
|
|
"severity": "critical"
|
|
},
|
|
"alerting": {},
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"datasource": "${DS_GRAPHITE}",
|
|
"editable": true,
|
|
"error": false,
|
|
"fill": 1,
|
|
"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": [
|
|
{
|
|
"colorMode": "critical",
|
|
"fill": true,
|
|
"fillColor": "rgba(234, 112, 112, 0.12)",
|
|
"line": true,
|
|
"lineColor": "rgba(237, 46, 24, 0.60)",
|
|
"op": "lt",
|
|
"value": 20
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"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": [
|
|
10,
|
|
80
|
|
],
|
|
"type": "outside_range"
|
|
},
|
|
"query": {
|
|
"params": [
|
|
"A",
|
|
"5m",
|
|
"now"
|
|
]
|
|
},
|
|
"reducer": {
|
|
"params": [],
|
|
"type": "avg"
|
|
},
|
|
"type": "query"
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"frequency": "10s",
|
|
"handler": 1,
|
|
"name": "Alert is outside range",
|
|
"notifications": [],
|
|
"severity": "critical"
|
|
},
|
|
"alerting": {},
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"datasource": "${DS_GRAPHITE}",
|
|
"editable": true,
|
|
"error": false,
|
|
"fill": 1,
|
|
"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": [
|
|
{
|
|
"colorMode": "critical",
|
|
"fill": true,
|
|
"fillColor": "rgba(234, 112, 112, 0.12)",
|
|
"line": true,
|
|
"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",
|
|
"value": 80
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"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": [
|
|
60,
|
|
80
|
|
],
|
|
"type": "within_range"
|
|
},
|
|
"query": {
|
|
"params": [
|
|
"A",
|
|
"5m",
|
|
"now"
|
|
]
|
|
},
|
|
"reducer": {
|
|
"params": [],
|
|
"type": "avg"
|
|
},
|
|
"type": "query"
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"frequency": "10s",
|
|
"handler": 1,
|
|
"name": "Alert is within range",
|
|
"notifications": [],
|
|
"severity": "critical"
|
|
},
|
|
"alerting": {},
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"datasource": "${DS_GRAPHITE}",
|
|
"editable": true,
|
|
"error": false,
|
|
"fill": 1,
|
|
"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": [
|
|
{
|
|
"colorMode": "critical",
|
|
"fill": true,
|
|
"fillColor": "rgba(234, 112, 112, 0.12)",
|
|
"line": true,
|
|
"lineColor": "rgba(237, 46, 24, 0.60)",
|
|
"op": "gt",
|
|
"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,
|
|
"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
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"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"
|
|
},
|
|
"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,
|
|
"version": 15,
|
|
"links": [],
|
|
"gnetId": null
|
|
} |