-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configurations and example dashboards for metrics
- Loading branch information
1 parent
ce97e92
commit c2a797a
Showing
2 changed files
with
349 additions
and
0 deletions.
There are no files selected for viewing
339 changes: 339 additions & 0 deletions
339
integrations/grafana_dashboards/Prometheus Nomad-1505081671359.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,339 @@ | ||
{ | ||
"__inputs": [ | ||
{ | ||
"name": "DS_PROMETHEUS-NOMAD", | ||
"label": "prometheus-nomad", | ||
"description": "", | ||
"type": "datasource", | ||
"pluginId": "prometheus", | ||
"pluginName": "Prometheus" | ||
} | ||
], | ||
"__requires": [ | ||
{ | ||
"type": "grafana", | ||
"id": "grafana", | ||
"name": "Grafana", | ||
"version": "4.4.3" | ||
}, | ||
{ | ||
"type": "panel", | ||
"id": "graph", | ||
"name": "Graph", | ||
"version": "" | ||
}, | ||
{ | ||
"type": "panel", | ||
"id": "heatmap", | ||
"name": "Heatmap", | ||
"version": "" | ||
}, | ||
{ | ||
"type": "datasource", | ||
"id": "prometheus", | ||
"name": "Prometheus", | ||
"version": "1.0.0" | ||
} | ||
], | ||
"annotations": { | ||
"list": [] | ||
}, | ||
"editMode": false, | ||
"editable": true, | ||
"gnetId": null, | ||
"graphTooltip": 0, | ||
"hideControls": false, | ||
"id": null, | ||
"links": [], | ||
"rows": [ | ||
{ | ||
"collapse": false, | ||
"height": "250px", | ||
"panels": [ | ||
{ | ||
"aliasColors": {}, | ||
"bars": true, | ||
"dashLength": 10, | ||
"dashes": false, | ||
"datasource": "${DS_PROMETHEUS-NOMAD}", | ||
"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": "null", | ||
"percentage": false, | ||
"pointradius": 5, | ||
"points": false, | ||
"renderer": "flot", | ||
"seriesOverrides": [], | ||
"spaceLength": 10, | ||
"span": 12, | ||
"stack": false, | ||
"steppedLine": false, | ||
"targets": [ | ||
{ | ||
"expr": "go_threads", | ||
"format": "time_series", | ||
"intervalFactor": 2, | ||
"metric": "go_threads", | ||
"refId": "B", | ||
"step": 20 | ||
} | ||
], | ||
"thresholds": [], | ||
"timeFrom": null, | ||
"timeShift": null, | ||
"title": "Go threads", | ||
"tooltip": { | ||
"shared": true, | ||
"sort": 0, | ||
"value_type": "individual" | ||
}, | ||
"type": "graph", | ||
"xaxis": { | ||
"buckets": null, | ||
"mode": "time", | ||
"name": null, | ||
"show": true, | ||
"values": [] | ||
}, | ||
"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 | ||
} | ||
] | ||
} | ||
], | ||
"repeat": null, | ||
"repeatIteration": null, | ||
"repeatRowId": null, | ||
"showTitle": false, | ||
"title": "Dashboard Row", | ||
"titleSize": "h6" | ||
}, | ||
{ | ||
"collapse": false, | ||
"height": 250, | ||
"panels": [ | ||
{ | ||
"aliasColors": {}, | ||
"bars": true, | ||
"dashLength": 10, | ||
"dashes": false, | ||
"datasource": "${DS_PROMETHEUS-NOMAD}", | ||
"fill": 1, | ||
"id": 2, | ||
"legend": { | ||
"avg": false, | ||
"current": false, | ||
"max": false, | ||
"min": false, | ||
"show": true, | ||
"total": false, | ||
"values": false | ||
}, | ||
"lines": true, | ||
"linewidth": 1, | ||
"links": [], | ||
"nullPointMode": "null", | ||
"percentage": false, | ||
"pointradius": 5, | ||
"points": false, | ||
"renderer": "flot", | ||
"seriesOverrides": [], | ||
"spaceLength": 10, | ||
"span": 12, | ||
"stack": false, | ||
"steppedLine": false, | ||
"targets": [ | ||
{ | ||
"expr": "process_cpu_seconds_total", | ||
"format": "time_series", | ||
"intervalFactor": 2, | ||
"metric": "process_cpu_seconds_total", | ||
"refId": "A", | ||
"step": 20 | ||
} | ||
], | ||
"thresholds": [], | ||
"timeFrom": null, | ||
"timeShift": null, | ||
"title": "Proces CPU seconds Total", | ||
"tooltip": { | ||
"shared": true, | ||
"sort": 0, | ||
"value_type": "individual" | ||
}, | ||
"type": "graph", | ||
"xaxis": { | ||
"buckets": null, | ||
"mode": "time", | ||
"name": null, | ||
"show": true, | ||
"values": [] | ||
}, | ||
"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 | ||
} | ||
] | ||
} | ||
], | ||
"repeat": null, | ||
"repeatIteration": null, | ||
"repeatRowId": null, | ||
"showTitle": false, | ||
"title": "Dashboard Row", | ||
"titleSize": "h6" | ||
}, | ||
{ | ||
"collapse": false, | ||
"height": 250, | ||
"panels": [ | ||
{ | ||
"cards": { | ||
"cardPadding": null, | ||
"cardRound": null | ||
}, | ||
"color": { | ||
"cardColor": "rgb(255, 104, 0)", | ||
"colorScale": "sqrt", | ||
"colorScheme": "interpolateReds", | ||
"exponent": 0.5, | ||
"mode": "opacity" | ||
}, | ||
"dataFormat": "timeseries", | ||
"datasource": "${DS_PROMETHEUS-NOMAD}", | ||
"heatmap": {}, | ||
"highlightCards": true, | ||
"id": 3, | ||
"links": [], | ||
"span": 12, | ||
"targets": [ | ||
{ | ||
"expr": "go_gc_duration_seconds", | ||
"format": "time_series", | ||
"intervalFactor": 2, | ||
"metric": "go_gc_duration_seconds", | ||
"refId": "A", | ||
"step": 20 | ||
} | ||
], | ||
"title": "Garbage collection seconds", | ||
"tooltip": { | ||
"show": true, | ||
"showHistogram": false | ||
}, | ||
"type": "heatmap", | ||
"xAxis": { | ||
"show": true | ||
}, | ||
"xBucketNumber": null, | ||
"xBucketSize": null, | ||
"yAxis": { | ||
"decimals": null, | ||
"format": "short", | ||
"logBase": 1, | ||
"max": null, | ||
"min": null, | ||
"show": true, | ||
"splitFactor": null | ||
}, | ||
"yBucketNumber": null, | ||
"yBucketSize": null | ||
} | ||
], | ||
"repeat": null, | ||
"repeatIteration": null, | ||
"repeatRowId": null, | ||
"showTitle": false, | ||
"title": "Dashboard Row", | ||
"titleSize": "h6" | ||
}, | ||
{ | ||
"collapse": false, | ||
"height": 250, | ||
"panels": [], | ||
"repeat": null, | ||
"repeatIteration": null, | ||
"repeatRowId": null, | ||
"showTitle": false, | ||
"title": "Dashboard Row", | ||
"titleSize": "h6" | ||
} | ||
], | ||
"schemaVersion": 14, | ||
"style": "dark", | ||
"tags": [], | ||
"templating": { | ||
"list": [] | ||
}, | ||
"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" | ||
] | ||
}, | ||
"timezone": "", | ||
"title": "Prometheus Nomad", | ||
"version": 2 | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
external_labels: | ||
monitor: 'codelab-monitor' | ||
scrape_configs: | ||
- job_name: 'nomad' | ||
scrape_interval: 5s | ||
metrics_path: /v1/metrics | ||
params: | ||
format: ['prometheus'] | ||
static_configs: | ||
- targets: ['localhost:4646'] |