diff --git a/core/metrics/grafana/provisioning/dashboards/default/nomad.json b/core/metrics/grafana/provisioning/dashboards/default/nomad.json index c698dc8..48b426d 100644 --- a/core/metrics/grafana/provisioning/dashboards/default/nomad.json +++ b/core/metrics/grafana/provisioning/dashboards/default/nomad.json @@ -3,25 +3,37 @@ "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, "type": "dashboard" } ] }, "description": "Nomad built-in telemetry https://github.com/dereknex/nomad-grafana", "editable": true, + "fiscalYearStartMonth": 0, "gnetId": 6278, "graphTooltip": 1, - "id": 7, - "iteration": 1668453493963, "links": [], + "liveNow": false, "panels": [ { - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "gridPos": { "h": 1, "w": 24, @@ -29,33 +41,58 @@ "y": 0 }, "id": 24, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, + "refId": "A" + } + ], "title": "Allocations", "type": "row" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "Prometheus", + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "fieldConfig": { "defaults": { - "custom": {} + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" }, "overrides": [] }, - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 5, "w": 5, @@ -63,51 +100,29 @@ "y": 1 }, "id": 33, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], + "options": { + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.4", "repeat": "host", "repeatDirection": "v", - "scopedVars": { - "host": { - "selected": true, - "text": "n2", - "value": "n2" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "nomad_client_allocated_cpu{datacenter=~\"$datacenter\", host=~\"$host\"}/(nomad_client_unallocated_cpu{datacenter=~\"$datacenter\", host=~\"$host\"}+nomad_client_allocated_cpu{datacenter=~\"$datacenter\", host=~\"$host\"})", "format": "time_series", "interval": "", @@ -116,43 +131,49 @@ "refId": "A" } ], - "thresholds": "", "title": "CPU ($host)", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "gauge" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "Prometheus", + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "fieldConfig": { "defaults": { - "custom": {} + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" }, "overrides": [] }, - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 5, "w": 5, @@ -160,51 +181,29 @@ "y": 1 }, "id": 40, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], + "options": { + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.4", "repeat": "host", "repeatDirection": "v", - "scopedVars": { - "host": { - "selected": true, - "text": "n2", - "value": "n2" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "nomad_client_allocated_memory{datacenter=~\"$datacenter\", host=~\"$host\"}/(nomad_client_unallocated_memory{datacenter=~\"$datacenter\", host=~\"$host\"}+nomad_client_allocated_memory{datacenter=~\"$datacenter\", host=~\"$host\"})", "format": "time_series", "interval": "", @@ -213,44 +212,50 @@ "refId": "A" } ], - "thresholds": "", "title": "Memory ($host)", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "gauge" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "Prometheus", - "decimals": 2, + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "fieldConfig": { "defaults": { - "custom": {} + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" }, "overrides": [] }, - "format": "percentunit", - "gauge": { - "maxValue": 1, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 5, "w": 5, @@ -258,51 +263,29 @@ "y": 1 }, "id": 48, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], + "options": { + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.4", "repeat": "host", "repeatDirection": "v", - "scopedVars": { - "host": { - "selected": true, - "text": "n2", - "value": "n2" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "nomad_client_allocated_disk{datacenter=~\"$datacenter\", host=~\"$host\"}/(nomad_client_unallocated_disk{datacenter=~\"$datacenter\", host=~\"$host\"}+nomad_client_allocated_disk{datacenter=~\"$datacenter\", host=~\"$host\"})", "format": "time_series", "interval": "", @@ -311,18 +294,8 @@ "refId": "A" } ], - "thresholds": "", "title": "Disk ($host)", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "gauge" }, { "backgroundColor": "rgba(128,128,128,0.1)", @@ -333,16 +306,13 @@ } ], "crosshairColor": "#8F070C", - "datasource": "Prometheus", + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "display": "timeline", "expandFromQueryS": 0, "extendLastValue": true, - "fieldConfig": { - "defaults": { - "custom": {} - }, - "overrides": [] - }, "gridPos": { "h": 5, "w": 9, @@ -365,13 +335,6 @@ "repeat": "host", "repeatDirection": "v", "rowHeight": 24, - "scopedVars": { - "host": { - "selected": true, - "text": "n2", - "value": "n2" - } - }, "showDistinctCount": false, "showLegend": false, "showLegendNames": false, @@ -381,6 +344,10 @@ "showTransitionCount": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "nomad_client_allocations_migrating{datacenter=~\"$datacenter\", host=~\"$host\"}", "format": "time_series", "intervalFactor": 1, @@ -388,6 +355,10 @@ "refId": "A" }, { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "nomad_client_allocations_blocked{datacenter=~\"$datacenter\", host=~\"$host\"}", "format": "time_series", "intervalFactor": 1, @@ -395,6 +366,10 @@ "refId": "B" }, { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "nomad_client_allocations_pending{datacenter=~\"$datacenter\", host=~\"$host\"}", "format": "time_series", "intervalFactor": 1, @@ -402,6 +377,10 @@ "refId": "C" }, { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "nomad_client_allocations_running{datacenter=~\"$datacenter\", host=~\"$host\"}", "format": "time_series", "intervalFactor": 1, @@ -409,6 +388,10 @@ "refId": "D" }, { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "nomad_client_allocations_terminal{datacenter=~\"$datacenter\", host=~\"$host\"}", "format": "time_series", "intervalFactor": 1, @@ -475,94 +458,100 @@ "writeMetricNames": true }, { - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 6 + "y": 16 }, "id": 2, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, + "refId": "A" + } + ], "title": "Host Status", "type": "row" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "Prometheus", - "decimals": 1, + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "fieldConfig": { "defaults": { - "custom": {} + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "dtdurations" }, "overrides": [] }, - "format": "dtdurations", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 5, "w": 4, "x": 0, - "y": 7 + "y": 17 }, "id": 4, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.4", "repeat": "host", "repeatDirection": "v", - "scopedVars": { - "host": { - "selected": true, - "text": "n2", - "value": "n2" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "nomad_client_uptime{datacenter=~\"$datacenter\", host=~\"$host\"}", "format": "time_series", "interval": "", @@ -571,95 +560,83 @@ "refId": "A" } ], - "thresholds": "", "title": "Uptime ($host)", - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#cca300", - "#508642", - "#508642" - ], - "datasource": "Prometheus", + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "fieldConfig": { "defaults": { - "custom": {} + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#cca300", + "value": null + }, + { + "color": "#508642", + "value": 20 + }, + { + "color": "#508642", + "value": 80 + } + ] + }, + "unit": "percent" }, "overrides": [] }, - "format": "percent", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 5, "w": 5, "x": 4, - "y": 7 + "y": 17 }, "id": 7, - "interval": null, "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], + "options": { + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.4", "repeat": "host", "repeatDirection": "v", - "scopedVars": { - "host": { - "selected": true, - "text": "n2", - "value": "n2" - } - }, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "avg(nomad_client_host_cpu_idle{datacenter=\"$datacenter\", host=\"$host\"})", "format": "time_series", "interval": "", @@ -668,77 +645,96 @@ "refId": "A" } ], - "thresholds": "20,80", "title": "CPU Idle ($host)", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" + "type": "gauge" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "Prometheus", + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "fieldConfig": { "defaults": { - "custom": {} + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" }, "overrides": [] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 5, "w": 5, "x": 9, - "y": 7 + "y": 17 }, - "hiddenSeries": false, "id": 11, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.6", - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": "host", - "repeatDirection": "v", - "scopedVars": { - "host": { - "selected": true, - "text": "n2", - "value": "n2" + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" } }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "9.2.4", + "repeat": "host", + "repeatDirection": "v", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "nomad_client_host_memory_total{datacenter=~\"$datacenter\", host=~\"$host\"}", "format": "time_series", "interval": "", @@ -747,6 +743,10 @@ "refId": "B" }, { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "nomad_client_host_memory_free{datacenter=~\"$datacenter\", host=~\"$host\"}", "format": "time_series", "instant": false, @@ -756,6 +756,10 @@ "refId": "A" }, { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "nomad_client_host_memory_used{datacenter=~\"$datacenter\", host=~\"$host\"}", "format": "time_series", "interval": "", @@ -764,6 +768,10 @@ "refId": "C" }, { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "nomad_client_host_memory_available{datacenter=~\"$datacenter\", host=~\"$host\"}", "format": "time_series", "interval": "", @@ -772,105 +780,97 @@ "refId": "D" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Memory ($host)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "Prometheus", + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "fieldConfig": { "defaults": { - "custom": {} + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" }, "overrides": [] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 5, "w": 5, "x": 14, - "y": 7 + "y": 17 }, - "hiddenSeries": false, "id": 13, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.6", - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": "host", - "repeatDirection": "v", - "scopedVars": { - "host": { - "selected": true, - "text": "n2", - "value": "n2" + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" } }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "9.2.4", + "repeat": "host", + "repeatDirection": "v", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "max(nomad_client_host_disk_size{datacenter=~\"$datacenter\", host=~\"$host\"}) by (disk)", "format": "time_series", "interval": "", @@ -879,6 +879,10 @@ "refId": "B" }, { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "avg(nomad_client_host_disk_available{datacenter=~\"$datacenter\", host=~\"$host\"}) by (disk)", "format": "time_series", "interval": "", @@ -887,106 +891,96 @@ "refId": "A" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Disk Usage ($host)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "decbytes", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "Prometheus", + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "fieldConfig": { "defaults": { - "custom": {} + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" }, "overrides": [] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 5, "w": 5, "x": 19, - "y": 7 + "y": 17 }, - "hiddenSeries": false, "id": 15, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.3.6", - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": "host", - "repeatDirection": "v", - "scopedVars": { - "host": { - "selected": true, - "text": "n2", - "value": "n2" + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" } }, - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "9.2.4", + "repeat": "host", + "repeatDirection": "v", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "expr": "avg(nomad_client_host_disk_inodes_percent{datacenter=~\"$datacenter\", host=~\"$host\"}) by (disk)", "format": "time_series", "interval": "", @@ -995,51 +989,12 @@ "refId": "A" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Disk Inodes ($host)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percent", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" } ], "refresh": "1m", - "schemaVersion": 26, + "schemaVersion": 37, "style": "dark", "tags": [ "nomad", @@ -1049,59 +1004,65 @@ "templating": { "list": [ { - "allValue": null, "current": { "selected": false, "text": "dc1", "value": "dc1" }, - "datasource": "Prometheus", + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "definition": "", - "error": null, "hide": 0, "includeAll": false, "label": "DC", "multi": false, "name": "datacenter", "options": [], - "query": "label_values(nomad_client_uptime, datacenter)", + "query": { + "query": "label_values(nomad_client_uptime, datacenter)", + "refId": "Prometheus-datacenter-Variable-Query" + }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, "current": { "selected": true, "text": [ - "n2" + "All" ], "value": [ - "n2" + "$__all" ] }, - "datasource": "Prometheus", + "datasource": { + "type": "prometheus", + "uid": "rS2OIfv4z" + }, "definition": "", - "error": null, "hide": 0, "includeAll": true, "label": "Host", "multi": true, "name": "host", "options": [], - "query": "label_values(nomad_client_uptime{datacenter=~\"$datacenter\"}, host)", + "query": { + "query": "label_values(nomad_client_uptime{datacenter=~\"$datacenter\"}, host)", + "refId": "Prometheus-host-Variable-Query" + }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -1140,5 +1101,6 @@ "timezone": "", "title": "Nomad Cluster", "uid": "lDPoGyv4z", - "version": 4 + "version": 6, + "weekStart": "" }