4 "name": "DS_PROMETHEUS",
8 "pluginId": "prometheus",
9 "pluginName": "Prometheus"
42 "datasource": "-- Grafana --",
45 "iconColor": "rgba(0, 211, 255, 1)",
46 "name": "Annotations & Alerts",
51 "description": "Nomad Jobs metrics",
56 "iteration": 1596708119930,
61 "colorBackground": false,
65 "rgba(237, 129, 40, 0.89)",
68 "datasource": "${DS_PROMETHEUS}",
70 "format": "dtdurations",
75 "thresholdLabels": false,
76 "thresholdMarkers": true
90 "name": "value to text",
94 "name": "range to text",
99 "nullPointMode": "connected",
102 "postfixFontSize": "50%",
104 "prefixFontSize": "50%",
113 "fillColor": "rgba(31, 118, 189, 0.18)",
115 "lineColor": "rgb(31, 120, 193)",
122 "expr": "max(nomad_client_uptime{instance=~\"$instance\"})",
123 "format": "time_series",
126 "rawSql": "SELECT\n UNIX_TIMESTAMP(<time_column>) as time_sec,\n <value column> as value,\n <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
132 "type": "singlestat",
133 "valueFontSize": "80%",
141 "valueName": "current"
144 "cacheTimeout": null,
145 "colorBackground": false,
146 "colorPrefix": false,
150 "rgba(237, 129, 40, 0.89)",
153 "datasource": "${DS_PROMETHEUS}",
159 "thresholdLabels": false,
160 "thresholdMarkers": true
174 "name": "value to text",
178 "name": "range to text",
182 "maxDataPoints": 100,
183 "nullPointMode": "connected",
186 "postfixFontSize": "50%",
188 "prefixFontSize": "50%",
197 "fillColor": "rgba(31, 118, 189, 0.18)",
199 "lineColor": "rgb(31, 120, 193)",
206 "expr": "count(sum(nomad_client_allocs_memory_cache) by (exported_job))",
207 "format": "time_series",
210 "rawSql": "SELECT\n UNIX_TIMESTAMP(<time_column>) as time_sec,\n <value column> as value,\n <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
216 "type": "singlestat",
217 "valueFontSize": "80%",
225 "valueName": "current"
228 "cacheTimeout": null,
229 "colorBackground": false,
230 "colorPrefix": false,
234 "rgba(237, 129, 40, 0.89)",
237 "datasource": "${DS_PROMETHEUS}",
243 "thresholdLabels": false,
244 "thresholdMarkers": true
258 "name": "value to text",
262 "name": "range to text",
266 "maxDataPoints": 100,
267 "nullPointMode": "connected",
270 "postfixFontSize": "50%",
272 "prefixFontSize": "50%",
281 "fillColor": "rgba(31, 118, 189, 0.18)",
283 "lineColor": "rgb(31, 120, 193)",
290 "expr": "sum(nomad_client_allocations_running{datacenter=\"$datacenter\",instance=~\"$instance\"})",
291 "format": "time_series",
294 "rawSql": "SELECT\n UNIX_TIMESTAMP(<time_column>) as time_sec,\n <value column> as value,\n <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
300 "type": "singlestat",
301 "valueFontSize": "80%",
309 "valueName": "current"
316 "datasource": "${DS_PROMETHEUS}",
326 "alignAsTable": true,
339 "nullPointMode": "null",
344 "seriesOverrides": [],
347 "steppedLine": false,
351 "expr": "sum(nomad_client_allocations_blocked{datacenter=\"$datacenter\",instance=~\"$instance\"})",
352 "format": "time_series",
355 "legendFormat": "Blocked",
356 "rawSql": "SELECT\n UNIX_TIMESTAMP(<time_column>) as time_sec,\n <value column> as value,\n <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
360 "expr": "sum(nomad_client_allocations_pending{datacenter=\"$datacenter\",instance=~\"$instance\"})",
361 "format": "time_series",
364 "legendFormat": "Pending",
368 "expr": "sum(nomad_client_allocations_restart{datacenter=\"$datacenter\",instance=~\"$instance\"})",
369 "format": "time_series",
372 "legendFormat": "Restart ",
379 "title": "Block/Peding/Restart",
383 "value_type": "individual"
421 "datasource": "${DS_PROMETHEUS}",
442 "nullPointMode": "null",
448 "repeatDirection": "v",
449 "seriesOverrides": [],
452 "steppedLine": false,
455 "expr": "rate(nomad_client_allocs_cpu_total_percent[5m:10s]) > 1",
456 "format": "time_series",
459 "legendFormat": "{{task}}",
466 "title": "CPU Usage Percent",
470 "value_type": "individual"
483 "format": "percentunit",
509 "datasource": "${DS_PROMETHEUS}",
530 "nullPointMode": "null",
536 "repeatDirection": "v",
537 "seriesOverrides": [],
540 "steppedLine": false,
543 "expr": "avg(nomad_client_allocs_cpu_total_ticks{instance=~\"$instance\"}) by(exported_job, task)",
544 "format": "time_series",
547 "legendFormat": "{{task}}",
554 "title": "CPU Total Ticks",
558 "value_type": "individual"
571 "format": "timeticks",
597 "datasource": "${DS_PROMETHEUS}",
618 "nullPointMode": "null",
624 "repeatDirection": "v",
625 "seriesOverrides": [],
628 "steppedLine": false,
631 "expr": "avg(nomad_client_allocs_memory_rss{instance=~\"$instance\"}) by(exported_job, task)",
632 "format": "time_series",
635 "legendFormat": "{{task}}",
646 "value_type": "individual"
659 "format": "decbytes",
685 "datasource": "${DS_PROMETHEUS}",
706 "nullPointMode": "null",
712 "repeatDirection": "v",
713 "seriesOverrides": [],
716 "steppedLine": false,
719 "expr": "avg(nomad_client_allocs_memory_cache{instance=~\"$instance\"}) by(exported_job, task)",
720 "format": "time_series",
723 "legendFormat": "{{task}}",
730 "title": "Memory Cache",
734 "value_type": "individual"
747 "format": "decbytes",
783 "label": "datasource",
785 "name": "DS_PROMETHEUS",
787 "query": "prometheus",
790 "skipUrlSync": false,
796 "datasource": "${DS_PROMETHEUS}",
801 "name": "datacenter",
803 "query": "label_values(nomad_client_uptime, datacenter)",
806 "skipUrlSync": false,
808 "tagValuesQuery": "",
817 "datasource": "${DS_PROMETHEUS}",
824 "query": "label_values(nomad_client_uptime{datacenter=~\"$datacenter\"}, instance)",
827 "skipUrlSync": false,
829 "tagValuesQuery": "",
842 "refresh_intervals": [
866 "timezone": "browser",