Last active
January 23, 2017 12:36
-
-
Save geunho/237e6b2b1ca0ddab6a443fa2a4a71353 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "__inputs": [ | |
| { | |
| "name": "DS_TELEGRAF", | |
| "label": "telegraf", | |
| "description": "", | |
| "type": "datasource", | |
| "pluginId": "influxdb", | |
| "pluginName": "InfluxDB" | |
| }, | |
| { | |
| "name": "DS_SERVICE", | |
| "label": "service", | |
| "description": "", | |
| "type": "datasource", | |
| "pluginId": "influxdb", | |
| "pluginName": "InfluxDB" | |
| } | |
| ], | |
| "__requires": [ | |
| { | |
| "type": "panel", | |
| "id": "graph", | |
| "name": "Graph", | |
| "version": "" | |
| }, | |
| { | |
| "type": "panel", | |
| "id": "grafana-piechart-panel", | |
| "name": "Pie Chart", | |
| "version": "1.1.4" | |
| }, | |
| { | |
| "type": "panel", | |
| "id": "alertlist", | |
| "name": "Alert List", | |
| "version": "" | |
| }, | |
| { | |
| "type": "grafana", | |
| "id": "grafana", | |
| "name": "Grafana", | |
| "version": "4.0.1" | |
| }, | |
| { | |
| "type": "datasource", | |
| "id": "influxdb", | |
| "name": "InfluxDB", | |
| "version": "1.0.0" | |
| } | |
| ], | |
| "id": null, | |
| "title": "Grafana; Influxdb; Telegraf; ì„œë²„ì˜ ê´€ì œ (Monitoring)와 알림 (Alerting), ê·¸ë¦¬ê³ ìžë™í™” 하기", | |
| "description": "https://geunhokhim.wordpress.com/2017/01/02/grafana-influxdb-telegraf-monitoring-server-alerting-automation/", | |
| "tags": [ | |
| "telegraf", | |
| "serviceA" | |
| ], | |
| "style": "dark", | |
| "timezone": "browser", | |
| "editable": true, | |
| "sharedCrosshair": false, | |
| "hideControls": false, | |
| "time": { | |
| "from": "now-1h", | |
| "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": [] | |
| }, | |
| "refresh": "30s", | |
| "schemaVersion": 13, | |
| "version": 27, | |
| "links": [ | |
| { | |
| "icon": "external link", | |
| "includeVars": false, | |
| "tags": [], | |
| "title": "Grafana; Influxdb; Telegraf; ì„œë²„ì˜ ê´€ì œ (Monitoring)와 알림 (Alerting), ê·¸ë¦¬ê³ ìžë™í™” 하기", | |
| "tooltip": "", | |
| "type": "link", | |
| "url": "https://geunhokhim.wordpress.com/2017/01/02/grafana-influxdb-telegraf-monitoring-server-alerting-automation/" | |
| }, | |
| { | |
| "icon": "external link", | |
| "tags": [], | |
| "type": "dashboards" | |
| } | |
| ], | |
| "gnetId": null, | |
| "rows": [ | |
| { | |
| "title": "Dashboard Row", | |
| "panels": [ | |
| { | |
| "alert": { | |
| "conditions": [ | |
| { | |
| "evaluator": { | |
| "params": [ | |
| 90 | |
| ], | |
| "type": "gt" | |
| }, | |
| "operator": { | |
| "type": "and" | |
| }, | |
| "query": { | |
| "datasourceId": 1, | |
| "model": { | |
| "alias": "cpu_usage_user", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "none" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "cpu", | |
| "policy": "default", | |
| "refId": "A", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "usage_user" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "mean" | |
| } | |
| ] | |
| ], | |
| "tags": [] | |
| }, | |
| "params": [ | |
| "A", | |
| "1m", | |
| "now" | |
| ] | |
| }, | |
| "reducer": { | |
| "params": [], | |
| "type": "avg" | |
| }, | |
| "type": "query" | |
| }, | |
| { | |
| "evaluator": { | |
| "params": [ | |
| 90 | |
| ], | |
| "type": "gt" | |
| }, | |
| "operator": { | |
| "type": "and" | |
| }, | |
| "query": { | |
| "datasourceId": 1, | |
| "model": { | |
| "alias": "cpu_usage_user", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "none" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "cpu", | |
| "policy": "default", | |
| "refId": "A", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "usage_user" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "mean" | |
| } | |
| ] | |
| ], | |
| "tags": [] | |
| }, | |
| "params": [ | |
| "A", | |
| "1m", | |
| "now" | |
| ] | |
| }, | |
| "reducer": { | |
| "params": [], | |
| "type": "avg" | |
| }, | |
| "type": "query" | |
| } | |
| ], | |
| "executionErrorState": "alerting", | |
| "frequency": "60s", | |
| "handler": 1, | |
| "name": "cpu 사용량 위험", | |
| "noDataState": "no_data", | |
| "notifications": [] | |
| }, | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": "${DS_TELEGRAF}", | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "id": 1, | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "show": true, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 1, | |
| "links": [], | |
| "nullPointMode": "connected", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [ | |
| { | |
| "alias": "/\\w+_bytes/i", | |
| "yaxis": 2 | |
| } | |
| ], | |
| "span": 12, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "alias": "cpu_usage_user", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "none" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "cpu", | |
| "policy": "default", | |
| "refId": "A", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "usage_user" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "mean" | |
| } | |
| ] | |
| ], | |
| "tags": [] | |
| }, | |
| { | |
| "alias": "cpu_usage_system", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "none" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "cpu", | |
| "policy": "default", | |
| "refId": "B", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "usage_system" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "mean" | |
| } | |
| ] | |
| ], | |
| "tags": [] | |
| }, | |
| { | |
| "alias": "cpu_usage_idle", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "none" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "cpu", | |
| "policy": "default", | |
| "refId": "C", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "usage_idle" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "mean" | |
| } | |
| ] | |
| ], | |
| "tags": [] | |
| }, | |
| { | |
| "alias": "mem_available_percent", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "none" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "mem", | |
| "policy": "default", | |
| "refId": "D", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "available_percent" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "mean" | |
| } | |
| ] | |
| ], | |
| "tags": [] | |
| }, | |
| { | |
| "alias": "mem_usage_percent", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "none" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "mem", | |
| "policy": "default", | |
| "refId": "E", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "used_percent" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "mean" | |
| } | |
| ] | |
| ], | |
| "tags": [] | |
| }, | |
| { | |
| "alias": "disk_used_percent", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "none" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "disk", | |
| "policy": "default", | |
| "refId": "F", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "used_percent" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "mean" | |
| } | |
| ] | |
| ], | |
| "tags": [] | |
| }, | |
| { | |
| "alias": "disk_used_bytes", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "none" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "disk", | |
| "policy": "default", | |
| "refId": "G", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "used" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "sum" | |
| } | |
| ] | |
| ], | |
| "tags": [] | |
| }, | |
| { | |
| "alias": "mem_used_bytes", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "none" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "mem", | |
| "policy": "default", | |
| "refId": "H", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "used" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "mean" | |
| } | |
| ] | |
| ], | |
| "tags": [] | |
| } | |
| ], | |
| "thresholds": [ | |
| { | |
| "colorMode": "critical", | |
| "fill": true, | |
| "line": true, | |
| "op": "gt", | |
| "value": 90 | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "localhost", | |
| "tooltip": { | |
| "msResolution": false, | |
| "shared": true, | |
| "sort": 0, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "mode": "time", | |
| "name": null, | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "format": "short", | |
| "label": "% percent", | |
| "logBase": 1, | |
| "max": "100", | |
| "min": "0", | |
| "show": true | |
| }, | |
| { | |
| "format": "decbytes", | |
| "label": "bytes", | |
| "logBase": 1, | |
| "max": null, | |
| "min": "0", | |
| "show": true | |
| } | |
| ] | |
| } | |
| ], | |
| "showTitle": false, | |
| "titleSize": "h6", | |
| "height": "250px", | |
| "repeat": null, | |
| "repeatRowId": null, | |
| "repeatIteration": null, | |
| "collapse": false | |
| }, | |
| { | |
| "title": "Dashboard Row", | |
| "panels": [ | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": "${DS_SERVICE}", | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "id": 4, | |
| "interval": ">5s", | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "show": true, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 1, | |
| "links": [], | |
| "nullPointMode": "connected", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [ | |
| { | |
| "alias": "/\\w+, num_request/i", | |
| "yaxis": 2 | |
| }, | |
| { | |
| "alias": "latency", | |
| "lines": false, | |
| "points": true | |
| } | |
| ], | |
| "span": 12, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "alias": "latency", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "null" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "serviceA", | |
| "policy": "default", | |
| "refId": "A", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "latency" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "mean" | |
| } | |
| ] | |
| ], | |
| "tags": [] | |
| }, | |
| { | |
| "alias": "/api/hello, num_request", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "0" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "serviceA", | |
| "policy": "default", | |
| "refId": "B", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "num_requests" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "count" | |
| } | |
| ] | |
| ], | |
| "tags": [ | |
| { | |
| "key": "url", | |
| "operator": "=", | |
| "value": "/api/hello" | |
| } | |
| ] | |
| }, | |
| { | |
| "alias": "/api/world, num_request", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "0" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "serviceA", | |
| "policy": "default", | |
| "refId": "C", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "num_requests" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "count" | |
| } | |
| ] | |
| ], | |
| "tags": [ | |
| { | |
| "key": "url", | |
| "operator": "=", | |
| "value": "/api/world" | |
| } | |
| ] | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "serviceA", | |
| "tooltip": { | |
| "msResolution": false, | |
| "shared": true, | |
| "sort": 0, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "mode": "time", | |
| "name": null, | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "format": "ms", | |
| "label": "", | |
| "logBase": 1, | |
| "max": null, | |
| "min": "0", | |
| "show": true | |
| }, | |
| { | |
| "format": "short", | |
| "label": "count", | |
| "logBase": 1, | |
| "max": null, | |
| "min": "0", | |
| "show": true | |
| } | |
| ] | |
| } | |
| ], | |
| "showTitle": false, | |
| "titleSize": "h6", | |
| "height": 250, | |
| "repeat": null, | |
| "repeatRowId": null, | |
| "repeatIteration": null, | |
| "collapse": false | |
| }, | |
| { | |
| "title": "Dashboard Row", | |
| "panels": [ | |
| { | |
| "aliasColors": {}, | |
| "cacheTimeout": null, | |
| "combine": { | |
| "label": "Others", | |
| "threshold": 0 | |
| }, | |
| "datasource": "${DS_TELEGRAF}", | |
| "editable": true, | |
| "error": false, | |
| "fontSize": "80%", | |
| "format": "short", | |
| "id": 2, | |
| "interval": null, | |
| "legend": { | |
| "show": true, | |
| "values": true | |
| }, | |
| "legendType": "Under graph", | |
| "links": [], | |
| "maxDataPoints": 3, | |
| "nullPointMode": "connected", | |
| "pieType": "pie", | |
| "span": 6, | |
| "strokeWidth": 1, | |
| "targets": [ | |
| { | |
| "alias": "mem_used_percent", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "null" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "mem", | |
| "policy": "default", | |
| "refId": "A", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "used_percent" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "mean" | |
| } | |
| ] | |
| ], | |
| "tags": [] | |
| }, | |
| { | |
| "alias": "mem_available_percent", | |
| "dsType": "influxdb", | |
| "groupBy": [ | |
| { | |
| "params": [ | |
| "$interval" | |
| ], | |
| "type": "time" | |
| }, | |
| { | |
| "params": [ | |
| "null" | |
| ], | |
| "type": "fill" | |
| } | |
| ], | |
| "measurement": "mem", | |
| "policy": "default", | |
| "refId": "B", | |
| "resultFormat": "time_series", | |
| "select": [ | |
| [ | |
| { | |
| "params": [ | |
| "available_percent" | |
| ], | |
| "type": "field" | |
| }, | |
| { | |
| "params": [], | |
| "type": "mean" | |
| } | |
| ] | |
| ], | |
| "tags": [] | |
| } | |
| ], | |
| "title": "memory", | |
| "type": "grafana-piechart-panel", | |
| "valueName": "current" | |
| }, | |
| { | |
| "editable": true, | |
| "error": false, | |
| "id": 3, | |
| "limit": "20", | |
| "links": [], | |
| "onlyAlertsOnDashboard": true, | |
| "show": "current", | |
| "span": 6, | |
| "stateFilter": [ | |
| "alerting", | |
| "execution_error", | |
| "no_data", | |
| "paused", | |
| "ok" | |
| ], | |
| "title": "알림 리스트", | |
| "type": "alertlist" | |
| } | |
| ], | |
| "showTitle": false, | |
| "titleSize": "h6", | |
| "height": 213, | |
| "repeat": null, | |
| "repeatRowId": null, | |
| "repeatIteration": null, | |
| "collapse": false | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment