Last active
February 16, 2016 15:30
-
-
Save mlf4aiur/8e2341ef894ad6ebcfea to your computer and use it in GitHub Desktop.
Grafana cAdvisor Templated dashboard
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
| { | |
| "id": 3, | |
| "title": "cAdvisor Templated", | |
| "originalTitle": "cAdvisor Templated", | |
| "tags": [], | |
| "style": "dark", | |
| "timezone": "browser", | |
| "editable": true, | |
| "hideControls": false, | |
| "sharedCrosshair": false, | |
| "rows": [ | |
| { | |
| "collapse": false, | |
| "editable": true, | |
| "height": "250px", | |
| "panels": [ | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": null, | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "leftLogBase": 1, | |
| "leftMax": null, | |
| "leftMin": 0, | |
| "rightLogBase": 1, | |
| "rightMax": null, | |
| "rightMin": 0, | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 6, | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "show": true, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 2, | |
| "links": [], | |
| "nullPointMode": "null", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [ | |
| { | |
| "alias": "stats.cadvisor", | |
| "yaxis": 2 | |
| }, | |
| { | |
| "alias": "Memory", | |
| "yaxis": 2 | |
| } | |
| ], | |
| "span": 12, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "alias": "CPU", | |
| "column": "cpu_cumulative_usage", | |
| "condition": "container_name='$container_name'", | |
| "function": "derivative", | |
| "groupby_field": "container_name", | |
| "hide": false, | |
| "interval": "2s", | |
| "query": "select container_name, derivative(cpu_cumulative_usage) from \"stats\" where $timeFilter and container_name='$container_name' group by time($interval), container_name order asc", | |
| "rawQuery": false, | |
| "series": "stats", | |
| "target": "" | |
| }, | |
| { | |
| "alias": "Memory", | |
| "column": "memory_usage", | |
| "condition": "container_name='$container_name'", | |
| "function": "mean", | |
| "groupby_field": "container_name", | |
| "hide": false, | |
| "interval": "2s", | |
| "query": "select container_name, mean(memory_usage) from \"stats\" where $timeFilter and container_name='$container_name' group by time($interval), container_name order asc", | |
| "rawQuery": false, | |
| "series": "stats", | |
| "target": "" | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "CPU and Memory usage", | |
| "tooltip": { | |
| "shared": true, | |
| "value_type": "cumulative" | |
| }, | |
| "type": "graph", | |
| "x-axis": true, | |
| "y-axis": true, | |
| "y_formats": [ | |
| "ns", | |
| "bytes" | |
| ], | |
| "leftYAxisLabel": "Percent divide 1000" | |
| } | |
| ], | |
| "title": "New row" | |
| }, | |
| { | |
| "collapse": false, | |
| "editable": true, | |
| "height": "250px", | |
| "panels": [ | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": null, | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "leftLogBase": 1, | |
| "leftMax": null, | |
| "leftMin": 0, | |
| "rightLogBase": 1, | |
| "rightMax": null, | |
| "rightMin": null, | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 1, | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "show": false, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 2, | |
| "links": [], | |
| "nullPointMode": "null", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "span": 12, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "column": "cpu_cumulative_usage", | |
| "condition": "container_name='$container_name'", | |
| "function": "derivative", | |
| "groupby_field": "container_name", | |
| "hide": false, | |
| "interval": "2s", | |
| "query": "select container_name, derivative(cpu_cumulative_usage) from \"stats\" where $timeFilter and container_name='$container_name' group by time($interval), container_name order asc", | |
| "rawQuery": false, | |
| "series": "stats", | |
| "target": "" | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "CPU usage", | |
| "tooltip": { | |
| "shared": true, | |
| "value_type": "cumulative" | |
| }, | |
| "type": "graph", | |
| "x-axis": true, | |
| "y-axis": true, | |
| "y_formats": [ | |
| "ns", | |
| "short" | |
| ], | |
| "leftYAxisLabel": "Percent divide 1000" | |
| } | |
| ], | |
| "title": "Row" | |
| }, | |
| { | |
| "collapse": false, | |
| "editable": true, | |
| "height": "250px", | |
| "panels": [ | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": null, | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "leftLogBase": 1, | |
| "leftMax": null, | |
| "leftMin": 0, | |
| "rightLogBase": 1, | |
| "rightMax": null, | |
| "rightMin": null, | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 2, | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "show": false, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 2, | |
| "links": [], | |
| "nullPointMode": "null", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "span": 12, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "column": "memory_usage", | |
| "condition": "container_name='$container_name'", | |
| "function": "mean", | |
| "groupby_field": "container_name", | |
| "interval": "2s", | |
| "query": "select container_name, mean(memory_usage) from \"stats\" where $timeFilter and container_name='$container_name' group by time($interval), container_name order asc", | |
| "series": "stats", | |
| "target": "" | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Memory usage", | |
| "tooltip": { | |
| "shared": true, | |
| "value_type": "cumulative" | |
| }, | |
| "type": "graph", | |
| "x-axis": true, | |
| "y-axis": true, | |
| "y_formats": [ | |
| "bytes", | |
| "short" | |
| ] | |
| } | |
| ], | |
| "title": "New row" | |
| }, | |
| { | |
| "collapse": false, | |
| "editable": true, | |
| "height": "250px", | |
| "panels": [ | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": null, | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "leftLogBase": 1, | |
| "leftMax": null, | |
| "leftMin": 0, | |
| "rightLogBase": 1, | |
| "rightMax": null, | |
| "rightMin": null, | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 5, | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "show": false, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 2, | |
| "links": [], | |
| "nullPointMode": "connected", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "span": 12, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "column": "value", | |
| "function": "mean", | |
| "hide": true, | |
| "interval": "10s", | |
| "query": "select container_name, mean(fs_usage) from \"stats\" where $timeFilter and container_name='$container_name' group by time($interval), container_name order asc", | |
| "rawQuery": true, | |
| "target": "" | |
| }, | |
| { | |
| "column": "fs_usage", | |
| "condition": "container_name='$container_name'", | |
| "function": "mean", | |
| "groupby_field": "container_name", | |
| "interval": "10s", | |
| "query": "select container_name, mean(fs_usage) from \"stats\" where $timeFilter and container_name='$container_name' group by time($interval), container_name order asc", | |
| "series": "stats", | |
| "target": "" | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Disk", | |
| "tooltip": { | |
| "shared": true, | |
| "value_type": "cumulative" | |
| }, | |
| "type": "graph", | |
| "x-axis": true, | |
| "y-axis": true, | |
| "y_formats": [ | |
| "bytes", | |
| "short" | |
| ] | |
| } | |
| ], | |
| "title": "Disk Usage" | |
| }, | |
| { | |
| "collapse": false, | |
| "editable": true, | |
| "height": "250px", | |
| "panels": [ | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": null, | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "leftLogBase": 1, | |
| "leftMax": null, | |
| "leftMin": 0, | |
| "rightLogBase": 1, | |
| "rightMax": null, | |
| "rightMin": null, | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 3, | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "show": false, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 2, | |
| "links": [], | |
| "nullPointMode": "connected", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "span": 12, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "column": "tx_bytes", | |
| "condition": "container_name='$container_name'", | |
| "function": "derivative", | |
| "groupby_field": "container_name", | |
| "interval": "2s", | |
| "query": "select container_name, derivative(tx_bytes) from \"stats\" where $timeFilter and container_name='$container_name' group by time($interval), container_name order asc", | |
| "series": "stats", | |
| "target": "" | |
| }, | |
| { | |
| "column": "rx_bytes", | |
| "condition": "container_name='$container_name'", | |
| "function": "derivative", | |
| "groupby_field": "container_name", | |
| "interval": "2s", | |
| "query": "select container_name, derivative(rx_bytes) from \"stats\" where $timeFilter and container_name='$container_name' group by time($interval), container_name order asc", | |
| "series": "stats", | |
| "target": "" | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Throughput", | |
| "tooltip": { | |
| "shared": true, | |
| "value_type": "cumulative" | |
| }, | |
| "type": "graph", | |
| "x-axis": true, | |
| "y-axis": true, | |
| "y_formats": [ | |
| "bps", | |
| "short" | |
| ] | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": null, | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "leftLogBase": 1, | |
| "leftMax": null, | |
| "leftMin": 0, | |
| "rightLogBase": 1, | |
| "rightMax": null, | |
| "rightMin": null, | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 4, | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "show": false, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 2, | |
| "links": [], | |
| "nullPointMode": "connected", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "span": 12, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "column": "tx_errors", | |
| "condition": "container_name='$container_name'", | |
| "function": "derivative", | |
| "groupby_field": "container_name", | |
| "interval": "2s", | |
| "query": "select container_name, derivative(tx_errors) from \"stats\" where $timeFilter and container_name='$container_name' group by time($interval), container_name order asc", | |
| "series": "stats", | |
| "target": "" | |
| }, | |
| { | |
| "column": "rx_errors", | |
| "condition": "container_name='$container_name'", | |
| "function": "derivative", | |
| "groupby_field": "container_name", | |
| "interval": "2s", | |
| "query": "select container_name, derivative(rx_errors) from \"stats\" where $timeFilter and container_name='$container_name' group by time($interval), container_name order asc", | |
| "series": "stats", | |
| "target": "" | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Errors", | |
| "tooltip": { | |
| "shared": true, | |
| "value_type": "cumulative" | |
| }, | |
| "type": "graph", | |
| "x-axis": true, | |
| "y-axis": true, | |
| "y_formats": [ | |
| "short", | |
| "short" | |
| ] | |
| } | |
| ], | |
| "title": "Network" | |
| } | |
| ], | |
| "nav": [ | |
| { | |
| "collapse": false, | |
| "enable": true, | |
| "notice": false, | |
| "now": true, | |
| "refresh_intervals": [ | |
| "5s", | |
| "10s", | |
| "30s", | |
| "1m", | |
| "5m", | |
| "15m", | |
| "30m", | |
| "1h", | |
| "2h", | |
| "1d" | |
| ], | |
| "status": "Stable", | |
| "time_options": [ | |
| "5m", | |
| "15m", | |
| "1h", | |
| "6h", | |
| "12h", | |
| "24h", | |
| "2d", | |
| "7d", | |
| "30d" | |
| ], | |
| "type": "timepicker" | |
| } | |
| ], | |
| "time": { | |
| "from": "now-15m", | |
| "to": "now" | |
| }, | |
| "templating": { | |
| "list": [ | |
| { | |
| "allFormat": "glob", | |
| "current": { | |
| "text": "cadvisor", | |
| "value": "cadvisor" | |
| }, | |
| "datasource": null, | |
| "includeAll": false, | |
| "multi": false, | |
| "multiFormat": "glob", | |
| "name": "container_name", | |
| "options": [ | |
| { | |
| "text": "grafana", | |
| "value": "grafana", | |
| "selected": false | |
| }, | |
| { | |
| "text": "cadvisor", | |
| "value": "cadvisor", | |
| "selected": false | |
| }, | |
| { | |
| "text": "/", | |
| "value": "/", | |
| "selected": false | |
| }, | |
| { | |
| "text": "influxdb", | |
| "value": "influxdb", | |
| "selected": false | |
| }, | |
| { | |
| "text": "cadvisor", | |
| "value": "cadvisor", | |
| "selected": true | |
| } | |
| ], | |
| "query": "select distinct(container_name) from stats where time > now()-5m and container_name !~ /^\\/.+/", | |
| "refresh": true, | |
| "refresh_on_load": false, | |
| "type": "query" | |
| } | |
| ] | |
| }, | |
| "annotations": { | |
| "list": [] | |
| }, | |
| "refresh": false, | |
| "schemaVersion": 6, | |
| "version": 12 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment