Last active
September 8, 2016 12:26
-
-
Save thbkrkr/1aba407c832a378bcc0b6d6141f798ee to your computer and use it in GitHub Desktop.
Docker Compose file for Telegraf
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
| version: '2' | |
| services: | |
| telegraf: | |
| image: krkr/telegraf | |
| network_mode: host | |
| env_file: | |
| - telegraf.env | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock:ro | |
| - /usr:/rootfs/usr:ro | |
| - /var/run/utmp:/var/run/utmp | |
| restart: always | |
| command: | |
| -input-filter swap:cpu:disk:diskio:kernel:net:mem:processes:system:docker:jolokia | |
| -output-filter opentsdb_http |
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": 22, | |
| "title": "System - Overview", | |
| "originalTitle": "System - Overview", | |
| "tags": [], | |
| "style": "dark", | |
| "timezone": "browser", | |
| "editable": true, | |
| "hideControls": false, | |
| "sharedCrosshair": false, | |
| "rows": [ | |
| { | |
| "collapse": false, | |
| "editable": true, | |
| "height": "200px", | |
| "panels": [ | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": "{{datasource}}", | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 3, | |
| "isNew": true, | |
| "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": 6, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "aggregator": "avg", | |
| "currentTagKey": "", | |
| "currentTagValue": "", | |
| "downsampleAggregator": "avg", | |
| "downsampleFillPolicy": "none", | |
| "metric": "telegraf.system_load1", | |
| "refId": "A", | |
| "tags": { | |
| "host": "*" | |
| } | |
| }, | |
| { | |
| "aggregator": "avg", | |
| "currentTagKey": "", | |
| "currentTagValue": "", | |
| "downsampleAggregator": "avg", | |
| "downsampleFillPolicy": "none", | |
| "metric": "telegraf.system_load5", | |
| "refId": "B", | |
| "tags": { | |
| "host": "*" | |
| } | |
| }, | |
| { | |
| "aggregator": "avg", | |
| "currentTagKey": "", | |
| "currentTagValue": "", | |
| "downsampleAggregator": "avg", | |
| "downsampleFillPolicy": "none", | |
| "metric": "telegraf.system_load15", | |
| "refId": "C", | |
| "tags": { | |
| "host": "*" | |
| } | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "System load", | |
| "tooltip": { | |
| "msResolution": true, | |
| "shared": true, | |
| "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 | |
| } | |
| ] | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": "{{datasource}}", | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 1, | |
| "isNew": true, | |
| "legend": { | |
| "alignAsTable": true, | |
| "avg": false, | |
| "current": true, | |
| "max": true, | |
| "min": true, | |
| "show": false, | |
| "total": false, | |
| "values": true | |
| }, | |
| "lines": true, | |
| "linewidth": 2, | |
| "links": [], | |
| "nullPointMode": "connected", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "span": 6, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "aggregator": "avg", | |
| "currentTagKey": "", | |
| "currentTagValue": "", | |
| "downsampleAggregator": "avg", | |
| "downsampleFillPolicy": "none", | |
| "metric": "telegraf.cpu_usage_idle", | |
| "refId": "A", | |
| "tags": { | |
| "host": "*" | |
| } | |
| }, | |
| { | |
| "aggregator": "avg", | |
| "currentTagKey": "", | |
| "currentTagValue": "", | |
| "downsampleAggregator": "avg", | |
| "downsampleFillPolicy": "none", | |
| "metric": "telegraf.cpu_usage_system", | |
| "refId": "B", | |
| "tags": { | |
| "host": "*" | |
| } | |
| }, | |
| { | |
| "aggregator": "avg", | |
| "currentTagKey": "", | |
| "currentTagValue": "", | |
| "downsampleAggregator": "avg", | |
| "downsampleFillPolicy": "none", | |
| "metric": "telegraf.cpu_usage_iowait", | |
| "refId": "C", | |
| "tags": { | |
| "host": "*" | |
| } | |
| }, | |
| { | |
| "aggregator": "avg", | |
| "currentTagKey": "", | |
| "currentTagValue": "", | |
| "downsampleAggregator": "avg", | |
| "downsampleFillPolicy": "none", | |
| "metric": "telegraf.cpu_usage_user", | |
| "refId": "D", | |
| "tags": { | |
| "host": "*" | |
| } | |
| }, | |
| { | |
| "aggregator": "avg", | |
| "currentTagKey": "", | |
| "currentTagValue": "", | |
| "downsampleAggregator": "avg", | |
| "downsampleFillPolicy": "none", | |
| "metric": "telegraf.cpu_usage_iowait", | |
| "refId": "E", | |
| "tags": { | |
| "host": "*" | |
| } | |
| }, | |
| { | |
| "aggregator": "avg", | |
| "currentTagKey": "", | |
| "currentTagValue": "", | |
| "downsampleAggregator": "avg", | |
| "downsampleFillPolicy": "none", | |
| "metric": "telegraf.cpu_usage_guest", | |
| "refId": "F", | |
| "tags": { | |
| "host": "*" | |
| } | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "CPU usage (%)", | |
| "tooltip": { | |
| "msResolution": true, | |
| "shared": true, | |
| "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 | |
| } | |
| ] | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": "{{datasource}}", | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 4, | |
| "isNew": true, | |
| "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": 6, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "aggregator": "avg", | |
| "currentTagKey": "", | |
| "currentTagValue": "", | |
| "downsampleAggregator": "avg", | |
| "downsampleFillPolicy": "none", | |
| "metric": "telegraf.cpu_usage_iowait", | |
| "refId": "A", | |
| "tags": { | |
| "host": "*" | |
| } | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "I/O wait (%)", | |
| "tooltip": { | |
| "msResolution": true, | |
| "shared": true, | |
| "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 | |
| } | |
| ] | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": "{{datasource}}", | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 2, | |
| "isNew": true, | |
| "legend": { | |
| "alignAsTable": true, | |
| "avg": true, | |
| "current": true, | |
| "max": true, | |
| "min": true, | |
| "show": false, | |
| "total": false, | |
| "values": true | |
| }, | |
| "lines": true, | |
| "linewidth": 2, | |
| "links": [], | |
| "nullPointMode": "connected", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "span": 6, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "aggregator": "avg", | |
| "currentTagKey": "", | |
| "currentTagValue": "", | |
| "downsampleAggregator": "avg", | |
| "downsampleFillPolicy": "none", | |
| "metric": "telegraf.mem_used_percent", | |
| "refId": "A", | |
| "tags": { | |
| "host": "*" | |
| } | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "System memory", | |
| "tooltip": { | |
| "msResolution": true, | |
| "shared": true, | |
| "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 | |
| } | |
| ] | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "datasource": "{{datasource}}", | |
| "editable": true, | |
| "error": false, | |
| "fill": 1, | |
| "grid": { | |
| "threshold1": null, | |
| "threshold1Color": "rgba(216, 200, 27, 0.27)", | |
| "threshold2": null, | |
| "threshold2Color": "rgba(234, 112, 112, 0.22)" | |
| }, | |
| "id": 5, | |
| "isNew": true, | |
| "legend": { | |
| "alignAsTable": true, | |
| "avg": true, | |
| "current": true, | |
| "max": true, | |
| "min": true, | |
| "show": false, | |
| "total": false, | |
| "values": true | |
| }, | |
| "lines": true, | |
| "linewidth": 2, | |
| "links": [], | |
| "nullPointMode": "connected", | |
| "percentage": false, | |
| "pointradius": 5, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "span": 6, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "aggregator": "avg", | |
| "currentTagKey": "", | |
| "currentTagValue": "", | |
| "downsampleAggregator": "avg", | |
| "downsampleFillPolicy": "none", | |
| "hide": false, | |
| "metric": "telegraf.net_bytes_recv", | |
| "refId": "A", | |
| "tags": { | |
| "host": "*" | |
| } | |
| }, | |
| { | |
| "aggregator": "avg", | |
| "currentTagKey": "", | |
| "currentTagValue": "", | |
| "downsampleAggregator": "avg", | |
| "downsampleFillPolicy": "none", | |
| "metric": "telegraf.net_bytes_sent", | |
| "refId": "B", | |
| "tags": { | |
| "host": "*" | |
| } | |
| } | |
| ], | |
| "timeFrom": null, | |
| "timeShift": null, | |
| "title": "Network traffic (kb/s)", | |
| "tooltip": { | |
| "msResolution": true, | |
| "shared": true, | |
| "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" | |
| } | |
| ], | |
| "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": [] | |
| }, | |
| "schemaVersion": 12, | |
| "version": 13, | |
| "links": [] | |
| } |
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
| JOLOKIA_NAME=??? | |
| JOLOKIA_HOST=??? | |
| JOLOKIA_PORT=??? | |
| JOLOKIA_USERNAME=??? | |
| JOLOKIA_PASSWORD=??? | |
| OPENTSDB_HTTP_URL=??? | |
| OPENTSDB_HTTP_USER=??? | |
| OPENTSDB_HTTP_PASSWORD=??? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment