From f49191f694a211954a667a54aaca70ffdae07518 Mon Sep 17 00:00:00 2001 From: hari9973 Date: Mon, 21 Jan 2019 11:53:43 +0530 Subject: [PATCH 01/13] Add files via upload --- Prometheus OS Metrics.json | 1991 ++++++++++++++++++++++++++++++++++++ 1 file changed, 1991 insertions(+) create mode 100644 Prometheus OS Metrics.json diff --git a/Prometheus OS Metrics.json b/Prometheus OS Metrics.json new file mode 100644 index 0000000..7d37a25 --- /dev/null +++ b/Prometheus OS Metrics.json @@ -0,0 +1,1991 @@ +{ + "annotations": { + "list": [] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 500, + "iteration": 1548050458536, + "links": [], + "panels": [ + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": "PromQL", + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 0, + "y": 0 + }, + "id": 2, + "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" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "expr": "count(count(node_cpu_seconds_total{mode='idle',$global_tag_filter}) by (instance))", + "format": "time_series", + "intervalFactor": 1, + "metrics": [], + "refId": "A", + "ts": { + "errors": [], + "id": "A", + "output": true, + "query": "A=fetch('node.cpu.ticks.count')$global_tag_filter.tag_filter('type==idle').downsample('[[__interval]]','max').count(by='host').count();" + }, + "type": "Query" + } + ], + "thresholds": "", + "title": "Number of instances", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "#b4ff00", + "colorScale": "sqrt", + "colorScheme": "interpolateOranges", + "exponent": 0.5, + "mode": "spectrum" + }, + "dataFormat": "timeseries", + "datasource": "PromQL", + "gridPos": { + "h": 7, + "w": 4, + "x": 4, + "y": 0 + }, + "heatmap": {}, + "highlightCards": true, + "id": 5, + "legend": { + "show": false + }, + "links": [], + "targets": [ + { + "expr": "avg(sum(avg_over_time(node_cpu_seconds_total{$global_tag_filter}[$__interval])) by (cpu,instance)) by (instance)", + "format": "time_series", + "intervalFactor": 1, + "metrics": [], + "refId": "A", + "ts": { + "errors": [], + "id": "A", + "output": true, + "query": "fetch('node.uptime.seconds.count')$global_tag_filter.downsample('[[__interval]]','avg');" + }, + "type": "Query" + } + ], + "title": "Instance uptime", + "tooltip": { + "show": true, + "showHistogram": true + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": null, + "yAxis": { + "decimals": null, + "format": "s", + "logBase": 1, + "max": null, + "min": null, + "show": true, + "splitFactor": null + }, + "yBucketBound": "auto", + "yBucketNumber": null, + "yBucketSize": null + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "#b4ff00", + "colorScale": "sqrt", + "colorScheme": "interpolateBlues", + "exponent": 0.5, + "mode": "spectrum" + }, + "dataFormat": "timeseries", + "datasource": "PromQL", + "description": "https://www.robustperception.io/understanding-machine-cpu-usage", + "gridPos": { + "h": 7, + "w": 4, + "x": 8, + "y": 0 + }, + "heatmap": {}, + "highlightCards": true, + "id": 4, + "legend": { + "show": false + }, + "links": [], + "targets": [ + { + "expr": "100 - (avg by (instance) (100 * irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))", + "format": "time_series", + "intervalFactor": 1, + "metrics": [], + "refId": "A", + "ts": { + "errors": [], + "id": "A", + "output": true, + "query": "idle=fetch('node.cpu.ticks.count', rate='true')$global_tag_filter.tag_filter(\"type==idle\").downsample(\"[[__interval]]\", \"avg\");\nused=100;\nused=used.sub(idle);" + }, + "type": "Query" + } + ], + "title": "CPU usage", + "tooltip": { + "show": true, + "showHistogram": true + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": null, + "yAxis": { + "decimals": null, + "format": "short", + "logBase": 1, + "max": "100", + "min": "0", + "show": true, + "splitFactor": null + }, + "yBucketBound": "auto", + "yBucketNumber": null, + "yBucketSize": 5 + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "#b4ff00", + "colorScale": "sqrt", + "colorScheme": "interpolateBlues", + "exponent": 0.5, + "mode": "spectrum" + }, + "dataFormat": "timeseries", + "datasource": "PromQL", + "gridPos": { + "h": 7, + "w": 4, + "x": 12, + "y": 0 + }, + "heatmap": {}, + "highlightCards": true, + "id": 7, + "legend": { + "show": false + }, + "links": [], + "targets": [ + { + "expr": "1 - (node_memory_MemFree_bytes{$global_tag_filter} / node_memory_MemTotal_bytes{$global_tag_filter})", + "format": "time_series", + "intervalFactor": 1, + "metrics": [], + "refId": "A", + "ts": { + "errors": [], + "id": "A", + "output": true, + "query": "free=fetch('node.memory.bytes')$global_tag_filter.tag_filter(\"state==free\").downsample('[[__interval]]','avg');\ntotal=fetch('node.memory.total.bytes')$global_tag_filter.downsample('[[__interval]]', 'avg');\nfree_perc = free.div(total, on=\"host\");\nusage = 1;\nusage= usage.sub(free_perc);\noutput(usage);" + }, + "type": "Query" + } + ], + "title": "Memory usage", + "tooltip": { + "show": true, + "showHistogram": true + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": null, + "yAxis": { + "decimals": null, + "format": "percentunit", + "logBase": 1, + "max": "1", + "min": "0", + "show": true, + "splitFactor": null + }, + "yBucketBound": "auto", + "yBucketNumber": null, + "yBucketSize": 0.05 + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "#b4ff00", + "colorScale": "sqrt", + "colorScheme": "interpolatePurples", + "exponent": 0.5, + "mode": "spectrum" + }, + "dataFormat": "timeseries", + "datasource": "PromQL", + "gridPos": { + "h": 7, + "w": 4, + "x": 16, + "y": 0 + }, + "heatmap": {}, + "highlightCards": true, + "id": 8, + "legend": { + "show": false + }, + "links": [], + "targets": [ + { + "expr": "((node_filesystem_size_bytes{$global_tag_filter} - node_filesystem_avail_bytes{$global_tag_filter}) / node_filesystem_size_bytes{$global_tag_filter}) * 100", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "", + "metrics": [], + "refId": "A", + "ts": { + "errors": [], + "id": "A", + "output": true, + "query": "fetch('node.disk.used.percent')$global_tag_filter.downsample('[[__interval]]', 'avg')" + }, + "type": "Query" + } + ], + "title": "Disk used", + "tooltip": { + "show": true, + "showHistogram": true + }, + "tooltipDecimals": null, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": "", + "yAxis": { + "decimals": null, + "format": "percent", + "logBase": 1, + "max": "100", + "min": "0", + "show": true, + "splitFactor": null + }, + "yBucketBound": "auto", + "yBucketNumber": null, + "yBucketSize": 5 + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "rgb(0, 30, 255)", + "colorScale": "linear", + "colorScheme": "interpolateOranges", + "exponent": 0.5, + "mode": "spectrum" + }, + "dataFormat": "timeseries", + "datasource": "PromQL", + "gridPos": { + "h": 7, + "w": 4, + "x": 20, + "y": 0 + }, + "heatmap": {}, + "highlightCards": true, + "id": 6, + "legend": { + "show": false + }, + "links": [], + "targets": [ + { + "expr": "irate(node_network_receive_bytes_total{$global_tag_filter}[$rolling_interval])", + "format": "time_series", + "intervalFactor": 1, + "metrics": [], + "refId": "A", + "ts": { + "errors": [], + "id": "A", + "output": true, + "query": "bsin=fetch('proc.net.bytes', rate='true')$global_tag_filter.tag_filter(\"direction==in\").downsample('[[__interval]]','avg');\nout=0;\nout=out.sub(fetch('proc.net.bytes', rate='true')$global_tag_filter.tag_filter(\"direction==out\").downsample('[[__interval]]','avg'));\noutput(bsin,out);" + }, + "type": "Query" + }, + { + "expr": "0 - irate(node_network_transmit_bytes_total{$global_tag_filter}[$rolling_interval])", + "format": "time_series", + "intervalFactor": 1, + "refId": "B" + } + ], + "title": "Network IO", + "tooltip": { + "show": true, + "showHistogram": true + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": null, + "yAxis": { + "decimals": null, + "format": "Bps", + "logBase": 1, + "max": null, + "min": null, + "show": true, + "splitFactor": null + }, + "yBucketBound": "auto", + "yBucketNumber": null, + "yBucketSize": null + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 6, + "x": 0, + "y": 7 + }, + "id": 9, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "none", + "downsampleAggregator": "avg", + "downsampleFillPolicy": "none", + "expr": "node_load1{$global_tag_filter}", + "format": "time_series", + "intervalFactor": 1, + "metric": "proc.loadavg.1min", + "metrics": [], + "refId": "A", + "ts": { + "errors": [], + "id": "A", + "lineStart": 1, + "numLines": 1, + "output": true, + "query": "load_avg_per_min=fetch('node.cpu.load.avg_1m')$global_tag_filter.downsample('[[__interval]]', 'avg');" + }, + "type": "Query" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Load Average [1m]", + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "proc.stat.processes{host: nook}": "#052B51" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 6, + "x": 6, + "y": 7 + }, + "id": 10, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "none", + "downsampleAggregator": "avg", + "downsampleFillPolicy": "none", + "expr": "irate(node_forks_total[$rolling_interval])", + "format": "time_series", + "intervalFactor": 1, + "metric": "proc.stat.processes", + "metrics": [], + "refId": "A", + "ts": { + "errors": [], + "id": "A", + "lineStart": 1, + "numLines": 1, + "output": true, + "query": "processes_spawn_rate=fetch('node.processes.count', rate='true')$global_tag_filter.downsample('[[__interval]]', 'avg');" + }, + "type": "Query" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Processes", + "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": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "proc.stat.ctxt{host: nook}": "#614D93" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 6, + "x": 12, + "y": 7 + }, + "id": 11, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "irate(node_context_switches_total{$global_tag_filter}[$rolling_interval])", + "format": "time_series", + "intervalFactor": 1, + "metrics": [], + "refId": "A", + "ts": { + "errors": [], + "id": "A", + "lineStart": 1, + "numLines": 1, + "output": true, + "query": "context_switch_rate=fetch('node.process.context_switches.count', rate='true')$global_tag_filter.downsample('[[__interval]]', 'avg');" + }, + "type": "Query" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Context Switches", + "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": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "proc.stat.intr{host: nook}": "#BA43A9" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 6, + "x": 18, + "y": 7 + }, + "id": 12, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "irate(node_intr_total{$global_tag_filter}[$rolling_interval])", + "format": "time_series", + "intervalFactor": 1, + "metrics": [], + "refId": "A", + "ts": { + "errors": [], + "id": "A", + "lineStart": 1, + "numLines": 1, + "output": true, + "query": "interrupt_execution_rate=fetch('node.process.interrupts.count', rate='true')$global_tag_filter.downsample('[[__interval]]', 'avg');" + }, + "type": "Query" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Interrupts", + "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": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "avg": "rgb(158, 166, 155)" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 8, + "x": 0, + "y": 14 + }, + "id": 19, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": false, + "sort": "min", + "sortDesc": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "100 - (sum(irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval])) / count(irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval])) * 100)", + "format": "time_series", + "hide": true, + "intervalFactor": 1, + "legendFormat": "", + "metrics": [], + "refId": "A", + "ts": { + "alias": "used_cpu_percent:avg; top3:$t(host)", + "errors": [], + "genMap": [], + "id": "A", + "output": true, + "query": "idle_cpu=fetch('node.cpu.ticks.count', rate='true').tag_filter('type==idle').downsample('[[__interval]]', 'avg');\ncount=idle_cpu.count();\nidle_cpu_percent=idle_cpu.sum().div(count);\nhundred=100;\nused_cpu_percent=hundred.sub(idle_cpu_percent);\ntop3 = hundred.sub(idle_cpu).top3();\noutput(top3, used_cpu_percent);" + }, + "type": "Query" + }, + { + "expr": "topk(3,100 - irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval]) *100)", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "legendFormat": "{{instance}}", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Top 3 Used CPU", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "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 + } + }, + { + "aliasColors": { + "ade-scoring-group-1-95-4wp2": "#bf1b00", + "avg": "rgb(158, 166, 155)" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 8, + "x": 8, + "y": 14 + }, + "id": 20, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "topk(3,100 - ((node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes) / (node_memory_MemTotal_bytes)) * 100)", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "{{instance}}", + "metrics": [], + "refId": "A", + "ts": { + "alias": "avg_mem_used_percent:avg; top3:$t(host)", + "errors": [], + "genMap": [], + "id": "A", + "output": true, + "query": "memtotal=fetch('node.memory.total.bytes').downsample('[[__interval]]', 'avg');\nmemfree=fetch('node.memory.bytes').tag_filter('state==free').downsample('[[__interval]]', 'avg');\nmembuffers=fetch('node.memory.bytes').tag_filter('state==buffers').downsample('[[__interval]]', 'avg');\nmemcached=fetch('node.memory.bytes').tag_filter('state==cached').downsample('[[__interval]]', 'avg');\nmemunused=memfree.add(membuffers, ignore='state').add(memcached, ignore='state');\nhundred=100;\nmem_available_percent=memunused.div(memtotal).mult(hundred);\navg_mem_available_percent=memunused.sum().div(memtotal.sum()).mult(hundred);\nmem_used_percent=hundred.sub(mem_available_percent);\navg_mem_used_percent=hundred.sub(avg_mem_available_percent);\ntop3=mem_used_percent.top3();\noutput(avg_mem_used_percent, top3);" + }, + "type": "Query" + }, + { + "expr": "100 - (sum(node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes) / sum(node_memory_MemTotal_bytes)) * 100", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "avg", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Top 3 Memory Usages", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "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 + } + }, + { + "aliasColors": { + "ade-scoring-group-1-95-4wp2": "#bf1b00", + "avg": "rgb(158, 166, 155)" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-aws-mumbai", + "fill": 1, + "gridPos": { + "h": 7, + "w": 8, + "x": 16, + "y": 14 + }, + "id": 21, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "topk(3,(sum(node_disk_io_time_seconds_total{$global_tag_filter}) by (instance) / avg(sum(node_cpu_seconds_total{$global_tag_filter}) by (instance,cpu)) by (instance)) * 100)", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "{{instance}}", + "metrics": [], + "refId": "A", + "ts": { + "alias": "avg_node_disk_utilization:avg; top3:$t(host)", + "errors": [], + "genMap": [], + "id": "A", + "output": true, + "query": "node_disk_utilization=fetch('node.disk.uptime.percent').downsample('[[__interval]]','avg');\navg_node_disk_utilization=node_disk_utilization.avg();\ntop3=node_disk_utilization.top3();\noutput(avg_node_disk_utilization, top3);" + }, + "type": "Query" + }, + { + "expr": "avg((sum(node_disk_io_time_seconds_total{$global_tag_filter}) by (instance) / avg(sum(node_cpu_seconds_total{$global_tag_filter}) by (instance,cpu)) by (instance)) * 100)", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "avg", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Top 3 Disc Utilization", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "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 + } + }, + { + "aliasColors": { + "% Idle": "#E0F9D7", + "% Used": "#E24D42" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "PromQL", + "fill": 1, + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 1, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "((sum(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval]))) / (count(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))) * 100", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "%idle", + "metrics": [], + "refId": "A", + "ts": { + "alias": "used_cpu_percent:%Used;idle_cpu_percent:%Idle", + "errors": [], + "id": "A", + "lineStart": 1, + "numLines": 6, + "output": true, + "query": "idle_cpu=fetch('node.cpu.ticks.count', rate='true')$global_tag_filter.tag_filter('type==idle').downsample('[[__interval]]', 'avg');\ncount=idle_cpu.count();\nidle_cpu_percent=idle_cpu.sum().div(count);\nhundred=100;\nused_cpu_percent=hundred.sub(idle_cpu_percent);\noutput(used_cpu_percent, idle_cpu_percent);" + }, + "type": "Query" + }, + { + "expr": "100 - (((sum(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval]))) / (count(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))) * 100)", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "%used", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "CPU Usage", + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "prometheus-aws-mumbai", + "fill": 1, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 30 + }, + "id": 3, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 1, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "((sum(node_memory_MemFree_bytes{$global_tag_filter}) + sum(node_memory_Buffers_bytes{$global_tag_filter}) + sum(node_memory_Cached_bytes{$global_tag_filter})) / (sum(node_memory_MemTotal_bytes{$global_tag_filter}))) * 100", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "Available %", + "metrics": [], + "refId": "A", + "ts": { + "alias": "mem_used_percent:Used %; mem_available_percent: Available %", + "errors": [], + "id": "A", + "lineStart": 1, + "numLines": 9, + "output": true, + "query": "memtotal=fetch('node.memory.total.bytes')$global_tag_filter.downsample('[[__interval]]', 'avg').sum();\nmemfree=fetch('node.memory.bytes')$global_tag_filter.tag_filter('state==free').downsample('[[__interval]]', 'avg').sum();\nmembuffers=fetch('node.memory.bytes')$global_tag_filter.tag_filter('state==buffers').downsample('[[__interval]]', 'avg').sum();\nmemcached=fetch('node.memory.bytes')$global_tag_filter.tag_filter('state==cached').downsample('[[__interval]]', 'avg').sum();\nmemunused=memfree.add(membuffers, ignore='state').add(memcached, ignore='state');\nhundred=100;\nmem_available_percent=memunused.div(memtotal).mult(hundred);\nmem_used_percent=hundred.sub(mem_available_percent);\noutput(mem_used_percent, mem_available_percent);" + }, + "type": "Query" + }, + { + "expr": "100 - ((sum(node_memory_MemFree_bytes{$global_tag_filter}) + sum(node_memory_Buffers_bytes{$global_tag_filter}) + sum(node_memory_Cached_bytes{$global_tag_filter})) / (sum(node_memory_MemTotal_bytes{$global_tag_filter}))) * 100", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "used %", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Memory", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "label": "", + "logBase": 1, + "max": "100", + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "PromQL", + "decimals": 2, + "fill": 1, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 37 + }, + "id": 13, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "hideEmpty": true, + "hideZero": true, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sort": null, + "sortDesc": null, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "((node_filesystem_size_bytes{$global_tag_filter} - node_filesystem_free_bytes{$global_tag_filter}) / node_filesystem_size_bytes{$global_tag_filter}) * 100", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "{{mountpoint}}", + "metrics": [], + "refId": "A", + "ts": { + "alias": "node_disk_space:$t(mount)", + "errors": [], + "id": "A", + "lineStart": 1, + "numLines": 1, + "output": true, + "query": "node_disk_space=fetch('node.disk.used.percent')$global_tag_filter.downsample('[[__interval]]','avg');" + }, + "type": "Query" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Disc Space", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 37 + }, + "id": 14, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 3, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "sum", + "downsampleAggregator": "avg", + "downsampleFillPolicy": "none", + "expr": "(node_disk_io_time_seconds_total{$global_tag_filter} / ignoring(device) group_left(instance) sum(node_cpu_seconds_total{$global_tag_filter}) without (cpu,mode)) * 100", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "", + "metrics": [], + "refId": "A", + "ts": { + "errors": [], + "id": "A", + "lineStart": 1, + "numLines": 1, + "output": true, + "query": "node_disk_utilization=fetch('node.disk.uptime.percent')$global_tag_filter.downsample('[[__interval]]','avg');" + }, + "type": "Query" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Disc Utilization", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "label": "", + "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 + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 44 + }, + "id": 15, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sort": "max", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "/^out/", + "transform": "negative-Y" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "irate(node_network_receive_bytes_total{$global_tag_filter}[$rolling_interval])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "in ({{instance}})", + "metrics": [], + "refId": "A", + "ts": { + "alias": "network_in:$t(direction)($t(host)); network_out:$t(direction)($t(host))", + "errors": [], + "id": "A", + "lineStart": 1, + "numLines": 1, + "output": true, + "query": "network_in=fetch('node.network.bytes.count', rate='true')$global_tag_filter.tag_filter(\"direction==in\").downsample('[[__interval]]', 'avg');\nnetwork_out=fetch('node.network.bytes.count', rate='true')$global_tag_filter.tag_filter(\"direction==out\").downsample('[[__interval]]', 'avg');\noutput(network_out, network_in);" + }, + "type": "Query" + }, + { + "expr": "irate(node_network_transmit_bytes_total{$global_tag_filter}[$rolling_interval])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "out ({{instance}})", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Network IO", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "Bps", + "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 + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 51 + }, + "id": 16, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null as zero", + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "(sum(node_memory_SwapTotal_bytes{$global_tag_filter}) - sum(node_memory_SwapFree_bytes{$global_tag_filter}) / sum(node_memory_SwapFree_bytes{$global_tag_filter})) * 100", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "swap_usage_percent", + "metrics": [], + "refId": "A", + "ts": { + "errors": [], + "id": "A", + "lineStart": 1, + "numLines": 6, + "output": true, + "query": "swap_free=fetch('node.swap.bytes')$global_tag_filter.tag_filter('state==free').downsample('[[__interval]]', 'avg').sum();\nswap_total=fetch('node.swap.total.bytes')$global_tag_filter.downsample('[[__interval]]', 'avg').sum();\nhundred=100;\nswap_used=swap_total.sub(swap_free, ignore='state');\nswap_usage_percent=swap_used.div(swap_total).mult(hundred);\noutput(swap_usage_percent);" + }, + "type": "Query" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Swap Usage", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "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 + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 51 + }, + "id": 17, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "/^out/", + "transform": "negative-Y" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "node_vmstat_pswpin", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "in({{instance}})", + "metrics": [], + "refId": "A", + "ts": { + "alias": "node_swap_in:in($t(host));node_swap_out:out($t(host))", + "errors": [], + "id": "A", + "lineStart": 1, + "numLines": 1, + "output": true, + "query": "node_swap_in=fetch('node.swap.bytes_per_second')$global_tag_filter.tag_filter(\"direction==in\").downsample('[[__interval]]','avg');\nnode_swap_out=fetch('node.swap.bytes_per_second')$global_tag_filter.tag_filter(\"direction==out\").downsample('[[__interval]]','avg');\noutput(node_swap_in, node_swap_out);" + }, + "type": "Query" + }, + { + "expr": "node_vmstat_pswpout", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "out({{instance}})", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Swap IO", + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "refresh": false, + "schemaVersion": 16, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "allValue": ".*", + "current": { + "text": "All", + "value": "$__all" + }, + "datasource": "PromQL", + "definition": "", + "hide": 0, + "includeAll": true, + "label": "host", + "multi": false, + "name": "host", + "options": [], + "query": "label_values(node_cpu_seconds_total,instance)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "text": "instance=~\".*\"", + "value": "instance=~\".*\"" + }, + "hide": 2, + "label": "global_tag_filter", + "name": "global_tag_filter", + "options": [ + { + "selected": true, + "text": "instance=~\".*\"", + "value": "instance=~\".*\"" + } + ], + "query": "instance=~\"$host\"", + "skipUrlSync": false, + "type": "constant" + }, + { + "current": { + "text": "10m", + "value": "10m" + }, + "hide": 2, + "label": "rolling_interval", + "name": "rolling_interval", + "options": [ + { + "selected": true, + "text": "10m", + "value": "10m" + } + ], + "query": "10m", + "skipUrlSync": false, + "type": "constant" + } + ] + }, + "time": { + "from": "now-2d", + "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 OS Metrics", + "uid": "5yJpuYxir", + "version": 74 +} \ No newline at end of file From be82d01dff317161979d19705cff0c4de0c5959d Mon Sep 17 00:00:00 2001 From: hari9973 Date: Mon, 21 Jan 2019 12:50:04 +0530 Subject: [PATCH 02/13] Update Prometheus OS Metrics.json removed the apptuit datasource keys --- Prometheus OS Metrics.json | 155 +------------------------------------ 1 file changed, 1 insertion(+), 154 deletions(-) diff --git a/Prometheus OS Metrics.json b/Prometheus OS Metrics.json index 7d37a25..5622260 100644 --- a/Prometheus OS Metrics.json +++ b/Prometheus OS Metrics.json @@ -75,12 +75,6 @@ "intervalFactor": 1, "metrics": [], "refId": "A", - "ts": { - "errors": [], - "id": "A", - "output": true, - "query": "A=fetch('node.cpu.ticks.count')$global_tag_filter.tag_filter('type==idle').downsample('[[__interval]]','max').count(by='host').count();" - }, "type": "Query" } ], @@ -131,12 +125,6 @@ "intervalFactor": 1, "metrics": [], "refId": "A", - "ts": { - "errors": [], - "id": "A", - "output": true, - "query": "fetch('node.uptime.seconds.count')$global_tag_filter.downsample('[[__interval]]','avg');" - }, "type": "Query" } ], @@ -199,12 +187,6 @@ "intervalFactor": 1, "metrics": [], "refId": "A", - "ts": { - "errors": [], - "id": "A", - "output": true, - "query": "idle=fetch('node.cpu.ticks.count', rate='true')$global_tag_filter.tag_filter(\"type==idle\").downsample(\"[[__interval]]\", \"avg\");\nused=100;\nused=used.sub(idle);" - }, "type": "Query" } ], @@ -266,12 +248,6 @@ "intervalFactor": 1, "metrics": [], "refId": "A", - "ts": { - "errors": [], - "id": "A", - "output": true, - "query": "free=fetch('node.memory.bytes')$global_tag_filter.tag_filter(\"state==free\").downsample('[[__interval]]','avg');\ntotal=fetch('node.memory.total.bytes')$global_tag_filter.downsample('[[__interval]]', 'avg');\nfree_perc = free.div(total, on=\"host\");\nusage = 1;\nusage= usage.sub(free_perc);\noutput(usage);" - }, "type": "Query" } ], @@ -334,12 +310,6 @@ "legendFormat": "", "metrics": [], "refId": "A", - "ts": { - "errors": [], - "id": "A", - "output": true, - "query": "fetch('node.disk.used.percent')$global_tag_filter.downsample('[[__interval]]', 'avg')" - }, "type": "Query" } ], @@ -402,12 +372,6 @@ "intervalFactor": 1, "metrics": [], "refId": "A", - "ts": { - "errors": [], - "id": "A", - "output": true, - "query": "bsin=fetch('proc.net.bytes', rate='true')$global_tag_filter.tag_filter(\"direction==in\").downsample('[[__interval]]','avg');\nout=0;\nout=out.sub(fetch('proc.net.bytes', rate='true')$global_tag_filter.tag_filter(\"direction==out\").downsample('[[__interval]]','avg'));\noutput(bsin,out);" - }, "type": "Query" }, { @@ -487,14 +451,6 @@ "metric": "proc.loadavg.1min", "metrics": [], "refId": "A", - "ts": { - "errors": [], - "id": "A", - "lineStart": 1, - "numLines": 1, - "output": true, - "query": "load_avg_per_min=fetch('node.cpu.load.avg_1m')$global_tag_filter.downsample('[[__interval]]', 'avg');" - }, "type": "Query" } ], @@ -587,14 +543,6 @@ "metric": "proc.stat.processes", "metrics": [], "refId": "A", - "ts": { - "errors": [], - "id": "A", - "lineStart": 1, - "numLines": 1, - "output": true, - "query": "processes_spawn_rate=fetch('node.processes.count', rate='true')$global_tag_filter.downsample('[[__interval]]', 'avg');" - }, "type": "Query" } ], @@ -683,14 +631,6 @@ "intervalFactor": 1, "metrics": [], "refId": "A", - "ts": { - "errors": [], - "id": "A", - "lineStart": 1, - "numLines": 1, - "output": true, - "query": "context_switch_rate=fetch('node.process.context_switches.count', rate='true')$global_tag_filter.downsample('[[__interval]]', 'avg');" - }, "type": "Query" } ], @@ -779,14 +719,6 @@ "intervalFactor": 1, "metrics": [], "refId": "A", - "ts": { - "errors": [], - "id": "A", - "lineStart": 1, - "numLines": 1, - "output": true, - "query": "interrupt_execution_rate=fetch('node.process.interrupts.count', rate='true')$global_tag_filter.downsample('[[__interval]]', 'avg');" - }, "type": "Query" } ], @@ -881,14 +813,6 @@ "legendFormat": "", "metrics": [], "refId": "A", - "ts": { - "alias": "used_cpu_percent:avg; top3:$t(host)", - "errors": [], - "genMap": [], - "id": "A", - "output": true, - "query": "idle_cpu=fetch('node.cpu.ticks.count', rate='true').tag_filter('type==idle').downsample('[[__interval]]', 'avg');\ncount=idle_cpu.count();\nidle_cpu_percent=idle_cpu.sum().div(count);\nhundred=100;\nused_cpu_percent=hundred.sub(idle_cpu_percent);\ntop3 = hundred.sub(idle_cpu).top3();\noutput(top3, used_cpu_percent);" - }, "type": "Query" }, { @@ -987,14 +911,6 @@ "legendFormat": "{{instance}}", "metrics": [], "refId": "A", - "ts": { - "alias": "avg_mem_used_percent:avg; top3:$t(host)", - "errors": [], - "genMap": [], - "id": "A", - "output": true, - "query": "memtotal=fetch('node.memory.total.bytes').downsample('[[__interval]]', 'avg');\nmemfree=fetch('node.memory.bytes').tag_filter('state==free').downsample('[[__interval]]', 'avg');\nmembuffers=fetch('node.memory.bytes').tag_filter('state==buffers').downsample('[[__interval]]', 'avg');\nmemcached=fetch('node.memory.bytes').tag_filter('state==cached').downsample('[[__interval]]', 'avg');\nmemunused=memfree.add(membuffers, ignore='state').add(memcached, ignore='state');\nhundred=100;\nmem_available_percent=memunused.div(memtotal).mult(hundred);\navg_mem_available_percent=memunused.sum().div(memtotal.sum()).mult(hundred);\nmem_used_percent=hundred.sub(mem_available_percent);\navg_mem_used_percent=hundred.sub(avg_mem_available_percent);\ntop3=mem_used_percent.top3();\noutput(avg_mem_used_percent, top3);" - }, "type": "Query" }, { @@ -1092,14 +1008,6 @@ "legendFormat": "{{instance}}", "metrics": [], "refId": "A", - "ts": { - "alias": "avg_node_disk_utilization:avg; top3:$t(host)", - "errors": [], - "genMap": [], - "id": "A", - "output": true, - "query": "node_disk_utilization=fetch('node.disk.uptime.percent').downsample('[[__interval]]','avg');\navg_node_disk_utilization=node_disk_utilization.avg();\ntop3=node_disk_utilization.top3();\noutput(avg_node_disk_utilization, top3);" - }, "type": "Query" }, { @@ -1199,15 +1107,6 @@ "legendFormat": "%idle", "metrics": [], "refId": "A", - "ts": { - "alias": "used_cpu_percent:%Used;idle_cpu_percent:%Idle", - "errors": [], - "id": "A", - "lineStart": 1, - "numLines": 6, - "output": true, - "query": "idle_cpu=fetch('node.cpu.ticks.count', rate='true')$global_tag_filter.tag_filter('type==idle').downsample('[[__interval]]', 'avg');\ncount=idle_cpu.count();\nidle_cpu_percent=idle_cpu.sum().div(count);\nhundred=100;\nused_cpu_percent=hundred.sub(idle_cpu_percent);\noutput(used_cpu_percent, idle_cpu_percent);" - }, "type": "Query" }, { @@ -1304,15 +1203,6 @@ "legendFormat": "Available %", "metrics": [], "refId": "A", - "ts": { - "alias": "mem_used_percent:Used %; mem_available_percent: Available %", - "errors": [], - "id": "A", - "lineStart": 1, - "numLines": 9, - "output": true, - "query": "memtotal=fetch('node.memory.total.bytes')$global_tag_filter.downsample('[[__interval]]', 'avg').sum();\nmemfree=fetch('node.memory.bytes')$global_tag_filter.tag_filter('state==free').downsample('[[__interval]]', 'avg').sum();\nmembuffers=fetch('node.memory.bytes')$global_tag_filter.tag_filter('state==buffers').downsample('[[__interval]]', 'avg').sum();\nmemcached=fetch('node.memory.bytes')$global_tag_filter.tag_filter('state==cached').downsample('[[__interval]]', 'avg').sum();\nmemunused=memfree.add(membuffers, ignore='state').add(memcached, ignore='state');\nhundred=100;\nmem_available_percent=memunused.div(memtotal).mult(hundred);\nmem_used_percent=hundred.sub(mem_available_percent);\noutput(mem_used_percent, mem_available_percent);" - }, "type": "Query" }, { @@ -1414,15 +1304,6 @@ "legendFormat": "{{mountpoint}}", "metrics": [], "refId": "A", - "ts": { - "alias": "node_disk_space:$t(mount)", - "errors": [], - "id": "A", - "lineStart": 1, - "numLines": 1, - "output": true, - "query": "node_disk_space=fetch('node.disk.used.percent')$global_tag_filter.downsample('[[__interval]]','avg');" - }, "type": "Query" } ], @@ -1514,14 +1395,6 @@ "legendFormat": "", "metrics": [], "refId": "A", - "ts": { - "errors": [], - "id": "A", - "lineStart": 1, - "numLines": 1, - "output": true, - "query": "node_disk_utilization=fetch('node.disk.uptime.percent')$global_tag_filter.downsample('[[__interval]]','avg');" - }, "type": "Query" } ], @@ -1618,15 +1491,6 @@ "legendFormat": "in ({{instance}})", "metrics": [], "refId": "A", - "ts": { - "alias": "network_in:$t(direction)($t(host)); network_out:$t(direction)($t(host))", - "errors": [], - "id": "A", - "lineStart": 1, - "numLines": 1, - "output": true, - "query": "network_in=fetch('node.network.bytes.count', rate='true')$global_tag_filter.tag_filter(\"direction==in\").downsample('[[__interval]]', 'avg');\nnetwork_out=fetch('node.network.bytes.count', rate='true')$global_tag_filter.tag_filter(\"direction==out\").downsample('[[__interval]]', 'avg');\noutput(network_out, network_in);" - }, "type": "Query" }, { @@ -1721,14 +1585,6 @@ "legendFormat": "swap_usage_percent", "metrics": [], "refId": "A", - "ts": { - "errors": [], - "id": "A", - "lineStart": 1, - "numLines": 6, - "output": true, - "query": "swap_free=fetch('node.swap.bytes')$global_tag_filter.tag_filter('state==free').downsample('[[__interval]]', 'avg').sum();\nswap_total=fetch('node.swap.total.bytes')$global_tag_filter.downsample('[[__interval]]', 'avg').sum();\nhundred=100;\nswap_used=swap_total.sub(swap_free, ignore='state');\nswap_usage_percent=swap_used.div(swap_total).mult(hundred);\noutput(swap_usage_percent);" - }, "type": "Query" } ], @@ -1823,15 +1679,6 @@ "legendFormat": "in({{instance}})", "metrics": [], "refId": "A", - "ts": { - "alias": "node_swap_in:in($t(host));node_swap_out:out($t(host))", - "errors": [], - "id": "A", - "lineStart": 1, - "numLines": 1, - "output": true, - "query": "node_swap_in=fetch('node.swap.bytes_per_second')$global_tag_filter.tag_filter(\"direction==in\").downsample('[[__interval]]','avg');\nnode_swap_out=fetch('node.swap.bytes_per_second')$global_tag_filter.tag_filter(\"direction==out\").downsample('[[__interval]]','avg');\noutput(node_swap_in, node_swap_out);" - }, "type": "Query" }, { @@ -1988,4 +1835,4 @@ "title": "Prometheus OS Metrics", "uid": "5yJpuYxir", "version": 74 -} \ No newline at end of file +} From 78f468a8e8e43b42161db9f0b21e99f29723f501 Mon Sep 17 00:00:00 2001 From: hari9973 Date: Mon, 21 Jan 2019 14:51:23 +0530 Subject: [PATCH 03/13] modified datasource Modified datasource to PromQL for some panals --- Prometheus OS Metrics.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Prometheus OS Metrics.json b/Prometheus OS Metrics.json index 5622260..ecb81cf 100644 --- a/Prometheus OS Metrics.json +++ b/Prometheus OS Metrics.json @@ -970,7 +970,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus-aws-mumbai", + "datasource": "PromQL", "fill": 1, "gridPos": { "h": 7, @@ -1163,7 +1163,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "prometheus-aws-mumbai", + "datasource": "PromQL", "fill": 1, "gridPos": { "h": 7, From d6a3e691b16aa0be525447a84e287c543be842d7 Mon Sep 17 00:00:00 2001 From: hari9973 Date: Mon, 21 Jan 2019 15:25:44 +0530 Subject: [PATCH 04/13] Removed host names from aliasColors --- Prometheus OS Metrics.json | 4176 ++++++++++++++++++++---------------- 1 file changed, 2371 insertions(+), 1805 deletions(-) diff --git a/Prometheus OS Metrics.json b/Prometheus OS Metrics.json index ecb81cf..5446ce1 100644 --- a/Prometheus OS Metrics.json +++ b/Prometheus OS Metrics.json @@ -1,1838 +1,2404 @@ { - "annotations": { - "list": [] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 500, - "iteration": 1548050458536, - "links": [], - "panels": [ - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "PromQL", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 7, - "w": 4, - "x": 0, - "y": 0 - }, - "id": 2, - "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" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "expr": "count(count(node_cpu_seconds_total{mode='idle',$global_tag_filter}) by (instance))", - "format": "time_series", - "intervalFactor": 1, - "metrics": [], - "refId": "A", - "type": "Query" - } - ], - "thresholds": "", - "title": "Number of instances", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cards": { - "cardPadding": null, - "cardRound": null - }, - "color": { - "cardColor": "#b4ff00", - "colorScale": "sqrt", - "colorScheme": "interpolateOranges", - "exponent": 0.5, - "mode": "spectrum" - }, - "dataFormat": "timeseries", - "datasource": "PromQL", - "gridPos": { - "h": 7, - "w": 4, - "x": 4, - "y": 0 - }, - "heatmap": {}, - "highlightCards": true, - "id": 5, - "legend": { - "show": false - }, - "links": [], - "targets": [ - { - "expr": "avg(sum(avg_over_time(node_cpu_seconds_total{$global_tag_filter}[$__interval])) by (cpu,instance)) by (instance)", - "format": "time_series", - "intervalFactor": 1, - "metrics": [], - "refId": "A", - "type": "Query" - } - ], - "title": "Instance uptime", - "tooltip": { - "show": true, - "showHistogram": true - }, - "type": "heatmap", - "xAxis": { - "show": true - }, - "xBucketNumber": null, - "xBucketSize": null, - "yAxis": { - "decimals": null, - "format": "s", - "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null - }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": null - }, - { - "cards": { - "cardPadding": null, - "cardRound": null - }, - "color": { - "cardColor": "#b4ff00", - "colorScale": "sqrt", - "colorScheme": "interpolateBlues", - "exponent": 0.5, - "mode": "spectrum" - }, - "dataFormat": "timeseries", - "datasource": "PromQL", - "description": "https://www.robustperception.io/understanding-machine-cpu-usage", - "gridPos": { - "h": 7, - "w": 4, - "x": 8, - "y": 0 - }, - "heatmap": {}, - "highlightCards": true, - "id": 4, - "legend": { - "show": false - }, - "links": [], - "targets": [ - { - "expr": "100 - (avg by (instance) (100 * irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))", - "format": "time_series", - "intervalFactor": 1, - "metrics": [], - "refId": "A", - "type": "Query" - } - ], - "title": "CPU usage", - "tooltip": { - "show": true, - "showHistogram": true - }, - "type": "heatmap", - "xAxis": { - "show": true - }, - "xBucketNumber": null, - "xBucketSize": null, - "yAxis": { - "decimals": null, - "format": "short", - "logBase": 1, - "max": "100", - "min": "0", - "show": true, - "splitFactor": null - }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": 5 - }, - { - "cards": { - "cardPadding": null, - "cardRound": null - }, - "color": { - "cardColor": "#b4ff00", - "colorScale": "sqrt", - "colorScheme": "interpolateBlues", - "exponent": 0.5, - "mode": "spectrum" - }, - "dataFormat": "timeseries", - "datasource": "PromQL", - "gridPos": { - "h": 7, - "w": 4, - "x": 12, - "y": 0 - }, - "heatmap": {}, - "highlightCards": true, - "id": 7, - "legend": { - "show": false - }, - "links": [], - "targets": [ - { - "expr": "1 - (node_memory_MemFree_bytes{$global_tag_filter} / node_memory_MemTotal_bytes{$global_tag_filter})", - "format": "time_series", - "intervalFactor": 1, - "metrics": [], - "refId": "A", - "type": "Query" - } - ], - "title": "Memory usage", - "tooltip": { - "show": true, - "showHistogram": true - }, - "type": "heatmap", - "xAxis": { - "show": true - }, - "xBucketNumber": null, - "xBucketSize": null, - "yAxis": { - "decimals": null, - "format": "percentunit", - "logBase": 1, - "max": "1", - "min": "0", - "show": true, - "splitFactor": null - }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": 0.05 - }, - { - "cards": { - "cardPadding": null, - "cardRound": null - }, - "color": { - "cardColor": "#b4ff00", - "colorScale": "sqrt", - "colorScheme": "interpolatePurples", - "exponent": 0.5, - "mode": "spectrum" - }, - "dataFormat": "timeseries", - "datasource": "PromQL", - "gridPos": { - "h": 7, - "w": 4, - "x": 16, - "y": 0 - }, - "heatmap": {}, - "highlightCards": true, - "id": 8, - "legend": { - "show": false - }, - "links": [], - "targets": [ - { - "expr": "((node_filesystem_size_bytes{$global_tag_filter} - node_filesystem_avail_bytes{$global_tag_filter}) / node_filesystem_size_bytes{$global_tag_filter}) * 100", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "", - "metrics": [], - "refId": "A", - "type": "Query" - } - ], - "title": "Disk used", - "tooltip": { - "show": true, - "showHistogram": true - }, - "tooltipDecimals": null, - "type": "heatmap", - "xAxis": { - "show": true - }, - "xBucketNumber": null, - "xBucketSize": "", - "yAxis": { - "decimals": null, - "format": "percent", - "logBase": 1, - "max": "100", - "min": "0", - "show": true, - "splitFactor": null - }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": 5 - }, - { - "cards": { - "cardPadding": null, - "cardRound": null - }, - "color": { - "cardColor": "rgb(0, 30, 255)", - "colorScale": "linear", - "colorScheme": "interpolateOranges", - "exponent": 0.5, - "mode": "spectrum" - }, - "dataFormat": "timeseries", - "datasource": "PromQL", - "gridPos": { - "h": 7, - "w": 4, - "x": 20, - "y": 0 - }, - "heatmap": {}, - "highlightCards": true, - "id": 6, - "legend": { - "show": false - }, - "links": [], - "targets": [ - { - "expr": "irate(node_network_receive_bytes_total{$global_tag_filter}[$rolling_interval])", - "format": "time_series", - "intervalFactor": 1, - "metrics": [], - "refId": "A", - "type": "Query" - }, - { - "expr": "0 - irate(node_network_transmit_bytes_total{$global_tag_filter}[$rolling_interval])", - "format": "time_series", - "intervalFactor": 1, - "refId": "B" - } - ], - "title": "Network IO", - "tooltip": { - "show": true, - "showHistogram": true - }, - "type": "heatmap", - "xAxis": { - "show": true - }, - "xBucketNumber": null, - "xBucketSize": null, - "yAxis": { - "decimals": null, - "format": "Bps", - "logBase": 1, - "max": null, - "min": null, - "show": true, - "splitFactor": null - }, - "yBucketBound": "auto", - "yBucketNumber": null, - "yBucketSize": null - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PromQL", - "fill": 1, - "gridPos": { - "h": 7, - "w": 6, - "x": 0, - "y": 7 - }, - "id": 9, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "aggregator": "none", - "downsampleAggregator": "avg", - "downsampleFillPolicy": "none", - "expr": "node_load1{$global_tag_filter}", - "format": "time_series", - "intervalFactor": 1, - "metric": "proc.loadavg.1min", - "metrics": [], - "refId": "A", - "type": "Query" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Load Average [1m]", - "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 - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "proc.stat.processes{host: nook}": "#052B51" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PromQL", - "fill": 1, - "gridPos": { - "h": 7, - "w": 6, - "x": 6, - "y": 7 - }, - "id": 10, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "aggregator": "none", - "downsampleAggregator": "avg", - "downsampleFillPolicy": "none", - "expr": "irate(node_forks_total[$rolling_interval])", - "format": "time_series", - "intervalFactor": 1, - "metric": "proc.stat.processes", - "metrics": [], - "refId": "A", - "type": "Query" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Processes", - "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": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "proc.stat.ctxt{host: nook}": "#614D93" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PromQL", - "fill": 1, - "gridPos": { - "h": 7, - "w": 6, - "x": 12, - "y": 7 - }, - "id": 11, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "irate(node_context_switches_total{$global_tag_filter}[$rolling_interval])", - "format": "time_series", - "intervalFactor": 1, - "metrics": [], - "refId": "A", - "type": "Query" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Context Switches", - "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": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "proc.stat.intr{host: nook}": "#BA43A9" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PromQL", - "fill": 1, - "gridPos": { - "h": 7, - "w": 6, - "x": 18, - "y": 7 - }, - "id": 12, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "irate(node_intr_total{$global_tag_filter}[$rolling_interval])", - "format": "time_series", - "intervalFactor": 1, - "metrics": [], - "refId": "A", - "type": "Query" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Interrupts", - "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": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "avg": "rgb(158, 166, 155)" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PromQL", - "fill": 1, - "gridPos": { - "h": 7, - "w": 8, - "x": 0, - "y": 14 - }, - "id": 19, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": false, - "sort": "min", - "sortDesc": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "100 - (sum(irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval])) / count(irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval])) * 100)", - "format": "time_series", - "hide": true, - "intervalFactor": 1, - "legendFormat": "", - "metrics": [], - "refId": "A", - "type": "Query" - }, - { - "expr": "topk(3,100 - irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval]) *100)", - "format": "time_series", - "hide": false, - "intervalFactor": 1, - "legendFormat": "{{instance}}", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Top 3 Used CPU", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "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 - } - }, - { - "aliasColors": { - "ade-scoring-group-1-95-4wp2": "#bf1b00", - "avg": "rgb(158, 166, 155)" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PromQL", - "fill": 1, - "gridPos": { - "h": 7, - "w": 8, - "x": 8, - "y": 14 - }, - "id": 20, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "topk(3,100 - ((node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes) / (node_memory_MemTotal_bytes)) * 100)", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "{{instance}}", - "metrics": [], - "refId": "A", - "type": "Query" - }, - { - "expr": "100 - (sum(node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes) / sum(node_memory_MemTotal_bytes)) * 100", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "avg", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Top 3 Memory Usages", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "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 - } - }, - { - "aliasColors": { - "ade-scoring-group-1-95-4wp2": "#bf1b00", - "avg": "rgb(158, 166, 155)" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PromQL", - "fill": 1, - "gridPos": { - "h": 7, - "w": 8, - "x": 16, - "y": 14 - }, - "id": 21, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "topk(3,(sum(node_disk_io_time_seconds_total{$global_tag_filter}) by (instance) / avg(sum(node_cpu_seconds_total{$global_tag_filter}) by (instance,cpu)) by (instance)) * 100)", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "{{instance}}", - "metrics": [], - "refId": "A", - "type": "Query" - }, - { - "expr": "avg((sum(node_disk_io_time_seconds_total{$global_tag_filter}) by (instance) / avg(sum(node_cpu_seconds_total{$global_tag_filter}) by (instance,cpu)) by (instance)) * 100)", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "avg", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Top 3 Disc Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "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 - } - }, - { - "aliasColors": { - "% Idle": "#E0F9D7", - "% Used": "#E24D42" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PromQL", - "fill": 1, - "gridPos": { - "h": 9, - "w": 24, - "x": 0, - "y": 21 - }, - "id": 1, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "((sum(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval]))) / (count(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))) * 100", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "%idle", - "metrics": [], - "refId": "A", - "type": "Query" - }, - { - "expr": "100 - (((sum(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval]))) / (count(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))) * 100)", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "%used", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" + "__inputs":[ + { + "name":"DS_PROMQL", + "label":"PromQL", + "description":"", + "type":"datasource", + "pluginId":"prometheus", + "pluginName":"Prometheus" }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] + { + "name":"VAR_GLOBAL_TAG_FILTER", + "type":"constant", + "label":"global_tag_filter", + "value":"instance=~\".*\"", + "description":"" }, - "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 - } - ], - "yaxis": { - "align": false, - "alignLevel": null + { + "name":"VAR_ROLLING_INTERVAL", + "type":"constant", + "label":"rolling_interval", + "value":"10m", + "description":"" } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PromQL", - "fill": 1, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 30 + ], + "__requires":[ + { + "type":"grafana", + "id":"grafana", + "name":"Grafana", + "version":"5.2.5" }, - "id": 3, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "total": false, - "values": true + { + "type":"panel", + "id":"graph", + "name":"Graph", + "version":"5.0.0" }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 1, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "((sum(node_memory_MemFree_bytes{$global_tag_filter}) + sum(node_memory_Buffers_bytes{$global_tag_filter}) + sum(node_memory_Cached_bytes{$global_tag_filter})) / (sum(node_memory_MemTotal_bytes{$global_tag_filter}))) * 100", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "Available %", - "metrics": [], - "refId": "A", - "type": "Query" - }, - { - "expr": "100 - ((sum(node_memory_MemFree_bytes{$global_tag_filter}) + sum(node_memory_Buffers_bytes{$global_tag_filter}) + sum(node_memory_Cached_bytes{$global_tag_filter})) / (sum(node_memory_MemTotal_bytes{$global_tag_filter}))) * 100", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "used %", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" + { + "type":"panel", + "id":"heatmap", + "name":"Heatmap", + "version":"5.0.0" }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] + { + "type":"datasource", + "id":"prometheus", + "name":"Prometheus", + "version":"5.0.0" }, - "yaxes": [ - { - "format": "percent", - "label": "", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null + { + "type":"panel", + "id":"singlestat", + "name":"Singlestat", + "version":"5.0.0" } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PromQL", - "decimals": 2, - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 37 - }, - "id": 13, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": null, - "sortDesc": null, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "((node_filesystem_size_bytes{$global_tag_filter} - node_filesystem_free_bytes{$global_tag_filter}) / node_filesystem_size_bytes{$global_tag_filter}) * 100", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "{{mountpoint}}", - "metrics": [], - "refId": "A", - "type": "Query" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disc Space", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] + ], + "annotations":{ + "list":[ + + ] + }, + "editable":true, + "gnetId":null, + "graphTooltip":0, + "id":null, + "iteration":1548063339298, + "links":[ + + ], + "panels":[ + { + "cacheTimeout":null, + "colorBackground":false, + "colorValue":false, + "colors":[ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource":"${DS_PROMQL}", + "format":"none", + "gauge":{ + "maxValue":100, + "minValue":0, + "show":false, + "thresholdLabels":false, + "thresholdMarkers":true + }, + "gridPos":{ + "h":7, + "w":4, + "x":0, + "y":0 + }, + "id":2, + "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" + } + ], + "sparkline":{ + "fillColor":"rgba(31, 118, 189, 0.18)", + "full":false, + "lineColor":"rgb(31, 120, 193)", + "show":true + }, + "tableColumn":"", + "targets":[ + { + "expr":"count(count(node_cpu_seconds_total{mode='idle',$global_tag_filter}) by (instance))", + "format":"time_series", + "intervalFactor":1, + "refId":"A", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"A", + "rate":false + }, + "type":"Time Series" + } + ], + "thresholds":"", + "title":"Number of instances", + "type":"singlestat", + "valueFontSize":"80%", + "valueMaps":[ + { + "op":"=", + "text":"N/A", + "value":"null" + } + ], + "valueName":"current" }, - "yaxes": [ - { - "format": "percent", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PromQL", - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 37 + { + "cards":{ + "cardPadding":null, + "cardRound":null + }, + "color":{ + "cardColor":"#b4ff00", + "colorScale":"sqrt", + "colorScheme":"interpolateOranges", + "exponent":0.5, + "mode":"spectrum" + }, + "dataFormat":"timeseries", + "datasource":"${DS_PROMQL}", + "gridPos":{ + "h":7, + "w":4, + "x":4, + "y":0 + }, + "heatmap":{ + + }, + "highlightCards":true, + "id":5, + "legend":{ + "show":false + }, + "links":[ + + ], + "targets":[ + { + "expr":"avg(sum(avg_over_time(node_cpu_seconds_total{$global_tag_filter}[$__interval])) by (cpu,instance)) by (instance)", + "format":"time_series", + "intervalFactor":1, + "refId":"A" + } + ], + "title":"Instance uptime", + "tooltip":{ + "show":true, + "showHistogram":true + }, + "type":"heatmap", + "xAxis":{ + "show":true + }, + "xBucketNumber":null, + "xBucketSize":null, + "yAxis":{ + "decimals":null, + "format":"s", + "logBase":1, + "max":null, + "min":null, + "show":true, + "splitFactor":null + }, + "yBucketBound":"auto", + "yBucketNumber":null, + "yBucketSize":null }, - "id": 14, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false + { + "cards":{ + "cardPadding":null, + "cardRound":null + }, + "color":{ + "cardColor":"#b4ff00", + "colorScale":"sqrt", + "colorScheme":"interpolateBlues", + "exponent":0.5, + "mode":"spectrum" + }, + "dataFormat":"timeseries", + "datasource":"${DS_PROMQL}", + "description":"https://www.robustperception.io/understanding-machine-cpu-usage", + "gridPos":{ + "h":7, + "w":4, + "x":8, + "y":0 + }, + "heatmap":{ + + }, + "highlightCards":true, + "id":4, + "legend":{ + "show":false + }, + "links":[ + + ], + "targets":[ + { + "expr":"100 - (avg by (instance) (100 * irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))", + "format":"time_series", + "intervalFactor":1, + "refId":"A" + } + ], + "title":"CPU usage", + "tooltip":{ + "show":true, + "showHistogram":true + }, + "type":"heatmap", + "xAxis":{ + "show":true + }, + "xBucketNumber":null, + "xBucketSize":null, + "yAxis":{ + "decimals":null, + "format":"short", + "logBase":1, + "max":"100", + "min":"0", + "show":true, + "splitFactor":null + }, + "yBucketBound":"auto", + "yBucketNumber":null, + "yBucketSize":5 }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 3, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "aggregator": "sum", - "downsampleAggregator": "avg", - "downsampleFillPolicy": "none", - "expr": "(node_disk_io_time_seconds_total{$global_tag_filter} / ignoring(device) group_left(instance) sum(node_cpu_seconds_total{$global_tag_filter}) without (cpu,mode)) * 100", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "", - "metrics": [], - "refId": "A", - "type": "Query" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Disc Utilization", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" + { + "cards":{ + "cardPadding":null, + "cardRound":null + }, + "color":{ + "cardColor":"#b4ff00", + "colorScale":"sqrt", + "colorScheme":"interpolateBlues", + "exponent":0.5, + "mode":"spectrum" + }, + "dataFormat":"timeseries", + "datasource":"${DS_PROMQL}", + "gridPos":{ + "h":7, + "w":4, + "x":12, + "y":0 + }, + "heatmap":{ + + }, + "highlightCards":true, + "id":7, + "legend":{ + "show":false + }, + "links":[ + + ], + "targets":[ + { + "expr":"1 - (node_memory_MemFree_bytes{$global_tag_filter} / node_memory_MemTotal_bytes{$global_tag_filter})", + "format":"time_series", + "intervalFactor":1, + "refId":"A" + } + ], + "title":"Memory usage", + "tooltip":{ + "show":true, + "showHistogram":true + }, + "type":"heatmap", + "xAxis":{ + "show":true + }, + "xBucketNumber":null, + "xBucketSize":null, + "yAxis":{ + "decimals":null, + "format":"percentunit", + "logBase":1, + "max":"1", + "min":"0", + "show":true, + "splitFactor":null + }, + "yBucketBound":"auto", + "yBucketNumber":null, + "yBucketSize":0.05 }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] + { + "cards":{ + "cardPadding":null, + "cardRound":null + }, + "color":{ + "cardColor":"#b4ff00", + "colorScale":"sqrt", + "colorScheme":"interpolatePurples", + "exponent":0.5, + "mode":"spectrum" + }, + "dataFormat":"timeseries", + "datasource":"${DS_PROMQL}", + "gridPos":{ + "h":7, + "w":4, + "x":16, + "y":0 + }, + "heatmap":{ + + }, + "highlightCards":true, + "id":8, + "legend":{ + "show":false + }, + "links":[ + + ], + "targets":[ + { + "expr":"((node_filesystem_size_bytes{$global_tag_filter} - node_filesystem_avail_bytes{$global_tag_filter}) / node_filesystem_size_bytes{$global_tag_filter}) * 100", + "format":"time_series", + "intervalFactor":1, + "refId":"A" + } + ], + "title":"Disk used", + "tooltip":{ + "show":true, + "showHistogram":true + }, + "tooltipDecimals":null, + "type":"heatmap", + "xAxis":{ + "show":true + }, + "xBucketNumber":null, + "xBucketSize":"", + "yAxis":{ + "decimals":null, + "format":"percent", + "logBase":1, + "max":"100", + "min":"0", + "show":true, + "splitFactor":null + }, + "yBucketBound":"auto", + "yBucketNumber":null, + "yBucketSize":5 }, - "yaxes": [ - { - "format": "percent", - "label": "", - "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 - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PromQL", - "fill": 1, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 44 + { + "cards":{ + "cardPadding":null, + "cardRound":null + }, + "color":{ + "cardColor":"rgb(0, 30, 255)", + "colorScale":"linear", + "colorScheme":"interpolateOranges", + "exponent":0.5, + "mode":"spectrum" + }, + "dataFormat":"timeseries", + "datasource":"${DS_PROMQL}", + "gridPos":{ + "h":7, + "w":4, + "x":20, + "y":0 + }, + "heatmap":{ + + }, + "highlightCards":true, + "id":6, + "legend":{ + "show":false + }, + "links":[ + + ], + "targets":[ + { + "expr":"irate(node_network_receive_bytes_total{$global_tag_filter}[$rolling_interval])", + "format":"time_series", + "intervalFactor":1, + "refId":"A" + }, + { + "expr":"0 - irate(node_network_transmit_bytes_total{$global_tag_filter}[$rolling_interval])", + "format":"time_series", + "intervalFactor":1, + "refId":"B" + } + ], + "title":"Network IO", + "tooltip":{ + "show":true, + "showHistogram":true + }, + "type":"heatmap", + "xAxis":{ + "show":true + }, + "xBucketNumber":null, + "xBucketSize":null, + "yAxis":{ + "decimals":null, + "format":"Bps", + "logBase":1, + "max":null, + "min":null, + "show":true, + "splitFactor":null + }, + "yBucketBound":"auto", + "yBucketNumber":null, + "yBucketSize":null }, - "id": 15, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "max", - "sortDesc": true, - "total": false, - "values": true + { + "aliasColors":{ + + }, + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":"${DS_PROMQL}", + "fill":1, + "gridPos":{ + "h":7, + "w":6, + "x":0, + "y":7 + }, + "id":9, + "legend":{ + "avg":false, + "current":false, + "max":false, + "min":false, + "show":false, + "total":false, + "values":false + }, + "lines":true, + "linewidth":1, + "links":[ + + ], + "nullPointMode":"null", + "percentage":false, + "pointradius":5, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + + ], + "spaceLength":10, + "stack":false, + "steppedLine":false, + "targets":[ + { + "expr":"node_load1{$global_tag_filter}", + "format":"time_series", + "intervalFactor":1, + "refId":"A" + } + ], + "thresholds":[ + + ], + "timeFrom":null, + "timeRegions":[ + + ], + "timeShift":null, + "title":"Load Average [1m]", + "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 + } + ], + "yaxis":{ + "align":false, + "alignLevel":null + } }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/^out/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "irate(node_network_receive_bytes_total{$global_tag_filter}[$rolling_interval])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "in ({{instance}})", - "metrics": [], - "refId": "A", - "type": "Query" - }, - { - "expr": "irate(node_network_transmit_bytes_total{$global_tag_filter}[$rolling_interval])", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "out ({{instance}})", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Network IO", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" + { + "aliasColors":{ + + }, + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":"${DS_PROMQL}", + "fill":1, + "gridPos":{ + "h":7, + "w":6, + "x":6, + "y":7 + }, + "id":10, + "legend":{ + "avg":false, + "current":false, + "max":false, + "min":false, + "show":false, + "total":false, + "values":false + }, + "lines":true, + "linewidth":1, + "links":[ + + ], + "nullPointMode":"null", + "percentage":false, + "pointradius":5, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + + ], + "spaceLength":10, + "stack":false, + "steppedLine":false, + "targets":[ + { + "expr":"irate(node_forks_total[$rolling_interval])", + "format":"time_series", + "intervalFactor":1, + "refId":"A", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"A", + "rate":false + }, + "type":"Time Series" + } + ], + "thresholds":[ + + ], + "timeFrom":null, + "timeRegions":[ + + ], + "timeShift":null, + "title":"Processes", + "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":"0", + "show":true + }, + { + "format":"short", + "label":null, + "logBase":1, + "max":null, + "min":null, + "show":true + } + ], + "yaxis":{ + "align":false, + "alignLevel":null + } }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] + { + "aliasColors":{ + + }, + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":"${DS_PROMQL}", + "fill":1, + "gridPos":{ + "h":7, + "w":6, + "x":12, + "y":7 + }, + "id":11, + "legend":{ + "avg":false, + "current":false, + "max":false, + "min":false, + "show":false, + "total":false, + "values":false + }, + "lines":true, + "linewidth":1, + "links":[ + + ], + "nullPointMode":"null", + "percentage":false, + "pointradius":5, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + + ], + "spaceLength":10, + "stack":false, + "steppedLine":false, + "targets":[ + { + "expr":"irate(node_context_switches_total{$global_tag_filter}[$rolling_interval])", + "format":"time_series", + "intervalFactor":1, + "refId":"A", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"A", + "rate":false + }, + "type":"Time Series" + } + ], + "thresholds":[ + + ], + "timeFrom":null, + "timeRegions":[ + + ], + "timeShift":null, + "title":"Context Switches", + "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":"0", + "show":true + }, + { + "format":"short", + "label":null, + "logBase":1, + "max":null, + "min":null, + "show":true + } + ], + "yaxis":{ + "align":false, + "alignLevel":null + } }, - "yaxes": [ - { - "format": "Bps", - "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 - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PromQL", - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 51 + { + "aliasColors":{ + + }, + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":"${DS_PROMQL}", + "fill":1, + "gridPos":{ + "h":7, + "w":6, + "x":18, + "y":7 + }, + "id":12, + "legend":{ + "avg":false, + "current":false, + "max":false, + "min":false, + "show":false, + "total":false, + "values":false + }, + "lines":true, + "linewidth":1, + "links":[ + + ], + "nullPointMode":"connected", + "percentage":false, + "pointradius":5, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + + ], + "spaceLength":10, + "stack":false, + "steppedLine":false, + "targets":[ + { + "expr":"irate(node_intr_total{$global_tag_filter}[$rolling_interval])", + "format":"time_series", + "intervalFactor":1, + "refId":"A", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"A", + "rate":false + }, + "type":"Time Series" + } + ], + "thresholds":[ + + ], + "timeFrom":null, + "timeRegions":[ + + ], + "timeShift":null, + "title":"Interrupts", + "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":"0", + "show":true + }, + { + "format":"short", + "label":null, + "logBase":1, + "max":null, + "min":null, + "show":true + } + ], + "yaxis":{ + "align":false, + "alignLevel":null + } }, - "id": 16, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false + { + "aliasColors":{ + "avg":"rgb(158, 166, 155)" + }, + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":"${DS_PROMQL}", + "fill":1, + "gridPos":{ + "h":7, + "w":8, + "x":0, + "y":14 + }, + "id":19, + "legend":{ + "alignAsTable":false, + "avg":false, + "current":false, + "max":false, + "min":false, + "rightSide":false, + "show":false, + "sort":"min", + "sortDesc":false, + "total":false, + "values":false + }, + "lines":true, + "linewidth":1, + "links":[ + + ], + "nullPointMode":"null", + "percentage":false, + "pointradius":5, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + + ], + "spaceLength":10, + "stack":false, + "steppedLine":false, + "targets":[ + { + "expr":"100 - (sum(irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval])) / count(irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval])) * 100) ", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"avg", + "refId":"A", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"A", + "rate":false + }, + "type":"Time Series" + }, + { + "expr":"topk(3,100 - irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval]) *100)", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"{{instance}}", + "refId":"B", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"B", + "rate":false + }, + "type":"Time Series" + } + ], + "thresholds":[ + + ], + "timeFrom":null, + "timeRegions":[ + + ], + "timeShift":null, + "title":"Top 3 Used CPU", + "tooltip":{ + "shared":true, + "sort":0, + "value_type":"individual" + }, + "type":"graph", + "xaxis":{ + "buckets":null, + "mode":"time", + "name":null, + "show":true, + "values":[ + + ] + }, + "yaxes":[ + { + "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 + } }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null as zero", - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "(sum(node_memory_SwapTotal_bytes{$global_tag_filter}) - sum(node_memory_SwapFree_bytes{$global_tag_filter}) / sum(node_memory_SwapFree_bytes{$global_tag_filter})) * 100", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "swap_usage_percent", - "metrics": [], - "refId": "A", - "type": "Query" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Swap Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" + { + "aliasColors":{ + "avg":"rgb(158, 166, 155)" + }, + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":"${DS_PROMQL}", + "fill":1, + "gridPos":{ + "h":7, + "w":8, + "x":8, + "y":14 + }, + "id":20, + "legend":{ + "avg":false, + "current":false, + "max":false, + "min":false, + "show":false, + "total":false, + "values":false + }, + "lines":true, + "linewidth":1, + "links":[ + + ], + "nullPointMode":"null", + "percentage":false, + "pointradius":5, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + + ], + "spaceLength":10, + "stack":false, + "steppedLine":false, + "targets":[ + { + "expr":"topk(3,100 - ((node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes) / (node_memory_MemTotal_bytes)) * 100)", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"{{instance}}", + "metrics":[ + + ], + "refId":"A", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"A", + "rate":false + }, + "type":"Time Series" + }, + { + "expr":"100 - (sum(node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes) / sum(node_memory_MemTotal_bytes)) * 100", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"avg", + "refId":"B", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"B", + "rate":false + }, + "type":"Time Series" + } + ], + "thresholds":[ + + ], + "timeFrom":null, + "timeRegions":[ + + ], + "timeShift":null, + "title":"Top 3 Memory Usages", + "tooltip":{ + "shared":true, + "sort":0, + "value_type":"individual" + }, + "type":"graph", + "xaxis":{ + "buckets":null, + "mode":"time", + "name":null, + "show":true, + "values":[ + + ] + }, + "yaxes":[ + { + "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": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] + { + "aliasColors":{ + "avg":"rgb(158, 166, 155)" + }, + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":"${DS_PROMQL}", + "fill":1, + "gridPos":{ + "h":7, + "w":8, + "x":16, + "y":14 + }, + "id":21, + "legend":{ + "avg":false, + "current":false, + "max":false, + "min":false, + "show":false, + "total":false, + "values":false + }, + "lines":true, + "linewidth":1, + "links":[ + + ], + "nullPointMode":"null", + "percentage":false, + "pointradius":5, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + + ], + "spaceLength":10, + "stack":false, + "steppedLine":false, + "targets":[ + { + "expr":"topk(3,(sum(node_disk_io_time_seconds_total{$global_tag_filter}) by (instance) / avg(sum(node_cpu_seconds_total{$global_tag_filter}) by (instance,cpu)) by (instance)) * 100)", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"{{instance}}", + "metrics":[ + + ], + "refId":"A", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"A", + "rate":false + }, + "type":"Time Series" + }, + { + "expr":"avg((sum(node_disk_io_time_seconds_total{$global_tag_filter}) by (instance) / avg(sum(node_cpu_seconds_total{$global_tag_filter}) by (instance,cpu)) by (instance)) * 100)", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"avg", + "refId":"B", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"B", + "rate":false + }, + "type":"Time Series" + } + ], + "thresholds":[ + + ], + "timeFrom":null, + "timeRegions":[ + + ], + "timeShift":null, + "title":"Top 3 Disc Utilization", + "tooltip":{ + "shared":true, + "sort":0, + "value_type":"individual" + }, + "type":"graph", + "xaxis":{ + "buckets":null, + "mode":"time", + "name":null, + "show":true, + "values":[ + + ] + }, + "yaxes":[ + { + "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 + } }, - "yaxes": [ - { - "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 - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PromQL", - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 51 + { + "aliasColors":{ + "% Idle":"#E0F9D7", + "% Used":"#E24D42" + }, + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":"${DS_PROMQL}", + "fill":1, + "gridPos":{ + "h":9, + "w":24, + "x":0, + "y":21 + }, + "id":1, + "legend":{ + "alignAsTable":true, + "avg":false, + "current":false, + "max":true, + "min":true, + "rightSide":true, + "show":true, + "total":false, + "values":true + }, + "lines":true, + "linewidth":1, + "links":[ + + ], + "nullPointMode":"null", + "percentage":false, + "pointradius":5, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + + ], + "spaceLength":10, + "stack":true, + "steppedLine":false, + "targets":[ + { + "expr":"((sum(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval]))) / (count(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))) * 100", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"%idle", + "metrics":[ + + ], + "refId":"A", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"A", + "rate":false + }, + "type":"Time Series" + }, + { + "expr":"100 - (((sum(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval]))) / (count(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))) * 100)", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"%used", + "refId":"B", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"B", + "rate":false + }, + "type":"Time Series" + } + ], + "thresholds":[ + + ], + "timeFrom":null, + "timeRegions":[ + + ], + "timeShift":null, + "title":"CPU Usage", + "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 + } + ], + "yaxis":{ + "align":false, + "alignLevel":null + } }, - "id": 17, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "total": false, - "values": true + { + "aliasColors":{ + + }, + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":"${DS_PROMQL}", + "fill":1, + "gridPos":{ + "h":7, + "w":24, + "x":0, + "y":30 + }, + "id":3, + "legend":{ + "alignAsTable":true, + "avg":false, + "current":false, + "max":true, + "min":true, + "rightSide":true, + "show":true, + "total":false, + "values":true + }, + "lines":true, + "linewidth":1, + "links":[ + + ], + "nullPointMode":"null", + "percentage":false, + "pointradius":1, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + + ], + "spaceLength":10, + "stack":true, + "steppedLine":false, + "targets":[ + { + "expr":"((sum(node_memory_MemFree_bytes{$global_tag_filter}) + sum(node_memory_Buffers_bytes{$global_tag_filter}) + sum(node_memory_Cached_bytes{$global_tag_filter})) / (sum(node_memory_MemTotal_bytes{$global_tag_filter}))) * 100", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"Available %", + "metrics":[ + + ], + "refId":"A", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"A", + "rate":false + }, + "type":"Time Series" + }, + { + "expr":"100 - ((sum(node_memory_MemFree_bytes{$global_tag_filter}) + sum(node_memory_Buffers_bytes{$global_tag_filter}) + sum(node_memory_Cached_bytes{$global_tag_filter})) / (sum(node_memory_MemTotal_bytes{$global_tag_filter}))) * 100", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"used %", + "refId":"B", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"B", + "rate":false + }, + "type":"Time Series" + } + ], + "thresholds":[ + + ], + "timeFrom":null, + "timeRegions":[ + + ], + "timeShift":null, + "title":"Memory", + "tooltip":{ + "shared":true, + "sort":0, + "value_type":"individual" + }, + "type":"graph", + "xaxis":{ + "buckets":null, + "mode":"time", + "name":null, + "show":true, + "values":[ + + ] + }, + "yaxes":[ + { + "format":"percent", + "label":"", + "logBase":1, + "max":"100", + "min":"0", + "show":true + }, + { + "format":"short", + "label":null, + "logBase":1, + "max":null, + "min":null, + "show":true + } + ], + "yaxis":{ + "align":false, + "alignLevel":null + } }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/^out/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "node_vmstat_pswpin", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "in({{instance}})", - "metrics": [], - "refId": "A", - "type": "Query" - }, - { - "expr": "node_vmstat_pswpout", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "out({{instance}})", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Swap IO", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" + { + "aliasColors":{ + + }, + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":"${DS_PROMQL}", + "decimals":2, + "fill":1, + "gridPos":{ + "h":7, + "w":12, + "x":0, + "y":37 + }, + "id":13, + "legend":{ + "alignAsTable":true, + "avg":false, + "current":false, + "hideEmpty":true, + "hideZero":true, + "max":true, + "min":true, + "rightSide":true, + "show":true, + "sort":null, + "sortDesc":null, + "total":false, + "values":true + }, + "lines":true, + "linewidth":1, + "links":[ + + ], + "nullPointMode":"null", + "percentage":false, + "pointradius":2, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + + ], + "spaceLength":10, + "stack":false, + "steppedLine":false, + "targets":[ + { + "expr":"((node_filesystem_size_bytes{$global_tag_filter} - node_filesystem_free_bytes{$global_tag_filter}) / node_filesystem_size_bytes{$global_tag_filter}) * 100", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"{{mountpoint}}", + "metrics":[ + + ], + "refId":"A", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"A", + "rate":false + }, + "type":"Time Series" + } + ], + "thresholds":[ + + ], + "timeFrom":null, + "timeRegions":[ + + ], + "timeShift":null, + "title":"Disc Space", + "tooltip":{ + "shared":true, + "sort":0, + "value_type":"individual" + }, + "type":"graph", + "xaxis":{ + "buckets":null, + "mode":"time", + "name":null, + "show":true, + "values":[ + + ] + }, + "yaxes":[ + { + "format":"percent", + "label":null, + "logBase":1, + "max":null, + "min":"0", + "show":true + }, + { + "format":"short", + "label":null, + "logBase":1, + "max":null, + "min":null, + "show":true + } + ], + "yaxis":{ + "align":false, + "alignLevel":null + } }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] + { + "aliasColors":{ + + }, + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":"${DS_PROMQL}", + "fill":1, + "gridPos":{ + "h":7, + "w":12, + "x":12, + "y":37 + }, + "id":14, + "legend":{ + "avg":false, + "current":false, + "max":false, + "min":false, + "show":false, + "total":false, + "values":false + }, + "lines":true, + "linewidth":1, + "links":[ + + ], + "nullPointMode":"null", + "percentage":false, + "pointradius":3, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + + ], + "spaceLength":10, + "stack":false, + "steppedLine":false, + "targets":[ + { + "aggregator":"sum", + "downsampleAggregator":"avg", + "downsampleFillPolicy":"none", + "expr":"(node_disk_io_time_seconds_total{$global_tag_filter} / ignoring(device) group_left(instance) sum(node_cpu_seconds_total{$global_tag_filter}) without (cpu,mode)) * 100", + "format":"time_series", + "interval":"", + "intervalFactor":1, + "legendFormat":"", + "metrics":[ + + ], + "refId":"A", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"A", + "rate":false + }, + "type":"Time Series" + } + ], + "thresholds":[ + + ], + "timeFrom":null, + "timeRegions":[ + + ], + "timeShift":null, + "title":"Disc Utilization", + "tooltip":{ + "shared":true, + "sort":0, + "value_type":"individual" + }, + "type":"graph", + "xaxis":{ + "buckets":null, + "mode":"time", + "name":null, + "show":true, + "values":[ + + ] + }, + "yaxes":[ + { + "format":"percent", + "label":"", + "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 + } }, - "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 - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - } - ], - "refresh": false, - "schemaVersion": 16, - "style": "dark", - "tags": [], - "templating": { - "list": [ { - "allValue": ".*", - "current": { - "text": "All", - "value": "$__all" - }, - "datasource": "PromQL", - "definition": "", - "hide": 0, - "includeAll": true, - "label": "host", - "multi": false, - "name": "host", - "options": [], - "query": "label_values(node_cpu_seconds_total,instance)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false + "aliasColors":{ + + }, + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":"${DS_PROMQL}", + "fill":1, + "gridPos":{ + "h":7, + "w":24, + "x":0, + "y":44 + }, + "id":15, + "legend":{ + "alignAsTable":true, + "avg":false, + "current":false, + "max":true, + "min":true, + "rightSide":true, + "show":true, + "sort":"max", + "sortDesc":true, + "total":false, + "values":true + }, + "lines":true, + "linewidth":1, + "links":[ + + ], + "nullPointMode":"connected", + "percentage":false, + "pointradius":5, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + { + "alias":"/^out/", + "transform":"negative-Y" + } + ], + "spaceLength":10, + "stack":false, + "steppedLine":false, + "targets":[ + { + "expr":"irate(node_network_receive_bytes_total{$global_tag_filter}[$rolling_interval])", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"in ({{instance}})", + "metrics":[ + + ], + "refId":"A", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"A", + "rate":false + }, + "type":"Time Series" + }, + { + "expr":"irate(node_network_transmit_bytes_total{$global_tag_filter}[$rolling_interval])", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"out ({{instance}})", + "refId":"B", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"B", + "rate":false + }, + "type":"Time Series" + } + ], + "thresholds":[ + + ], + "timeFrom":null, + "timeRegions":[ + + ], + "timeShift":null, + "title":"Network IO", + "tooltip":{ + "shared":true, + "sort":0, + "value_type":"individual" + }, + "type":"graph", + "xaxis":{ + "buckets":null, + "mode":"time", + "name":null, + "show":true, + "values":[ + + ] + }, + "yaxes":[ + { + "format":"Bps", + "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 + } }, { - "current": { - "text": "instance=~\".*\"", - "value": "instance=~\".*\"" - }, - "hide": 2, - "label": "global_tag_filter", - "name": "global_tag_filter", - "options": [ - { - "selected": true, - "text": "instance=~\".*\"", - "value": "instance=~\".*\"" - } - ], - "query": "instance=~\"$host\"", - "skipUrlSync": false, - "type": "constant" + "aliasColors":{ + + }, + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":"${DS_PROMQL}", + "fill":1, + "gridPos":{ + "h":7, + "w":12, + "x":0, + "y":51 + }, + "id":16, + "legend":{ + "avg":false, + "current":false, + "max":false, + "min":false, + "show":false, + "total":false, + "values":false + }, + "lines":true, + "linewidth":1, + "links":[ + + ], + "nullPointMode":"null as zero", + "percentage":false, + "pointradius":2, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + + ], + "spaceLength":10, + "stack":false, + "steppedLine":false, + "targets":[ + { + "expr":"(sum(node_memory_SwapTotal_bytes{$global_tag_filter}) - sum(node_memory_SwapFree_bytes{$global_tag_filter}) / sum(node_memory_SwapFree_bytes{$global_tag_filter})) * 100", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"swap_usage_percent", + "metrics":[ + + ], + "refId":"A", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"A", + "rate":false + }, + "type":"Time Series" + } + ], + "thresholds":[ + + ], + "timeFrom":null, + "timeRegions":[ + + ], + "timeShift":null, + "title":"Swap Usage", + "tooltip":{ + "shared":true, + "sort":0, + "value_type":"individual" + }, + "type":"graph", + "xaxis":{ + "buckets":null, + "mode":"time", + "name":null, + "show":true, + "values":[ + + ] + }, + "yaxes":[ + { + "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 + } }, { - "current": { - "text": "10m", - "value": "10m" - }, - "hide": 2, - "label": "rolling_interval", - "name": "rolling_interval", - "options": [ - { - "selected": true, - "text": "10m", - "value": "10m" - } - ], - "query": "10m", - "skipUrlSync": false, - "type": "constant" + "aliasColors":{ + + }, + "bars":false, + "dashLength":10, + "dashes":false, + "datasource":"${DS_PROMQL}", + "fill":1, + "gridPos":{ + "h":7, + "w":12, + "x":12, + "y":51 + }, + "id":17, + "legend":{ + "alignAsTable":true, + "avg":false, + "current":false, + "max":true, + "min":true, + "rightSide":true, + "show":true, + "total":false, + "values":true + }, + "lines":true, + "linewidth":1, + "links":[ + + ], + "nullPointMode":"connected", + "percentage":false, + "pointradius":2, + "points":false, + "renderer":"flot", + "seriesOverrides":[ + { + "alias":"/^out/", + "transform":"negative-Y" + } + ], + "spaceLength":10, + "stack":false, + "steppedLine":false, + "targets":[ + { + "expr":"node_vmstat_pswpin", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"in({{instance}})", + "metrics":[ + + ], + "refId":"A", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"A", + "rate":false + }, + "type":"Time Series" + }, + { + "expr":"node_vmstat_pswpout", + "format":"time_series", + "intervalFactor":1, + "legendFormat":"out({{instance}})", + "refId":"B", + "ts":{ + "agg":"sum", + "dsDisable":false, + "dsFn":"avg", + "errors":[ + + ], + "filters":[ + + ], + "genMap":[ + + ], + "id":"B", + "rate":false + }, + "type":"Time Series" + } + ], + "thresholds":[ + + ], + "timeFrom":null, + "timeRegions":[ + + ], + "timeShift":null, + "title":"Swap IO", + "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 + } + ], + "yaxis":{ + "align":false, + "alignLevel":null + } } - ] - }, - "time": { - "from": "now-2d", - "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 OS Metrics", - "uid": "5yJpuYxir", - "version": 74 + ], + "refresh":false, + "schemaVersion":16, + "style":"dark", + "tags":[ + + ], + "templating":{ + "list":[ + { + "allValue":".*", + "current":{ + + }, + "datasource":"${DS_PROMQL}", + "definition":"", + "hide":0, + "includeAll":true, + "label":"host", + "multi":false, + "name":"host", + "options":[ + + ], + "query":"label_values(node_cpu_seconds_total,instance)", + "refresh":1, + "regex":"", + "skipUrlSync":false, + "sort":0, + "tagValuesQuery":"", + "tags":[ + + ], + "tagsQuery":"", + "type":"query", + "useTags":false + }, + { + "current":{ + "value":"${VAR_GLOBAL_TAG_FILTER}", + "text":"${VAR_GLOBAL_TAG_FILTER}" + }, + "hide":2, + "label":"global_tag_filter", + "name":"global_tag_filter", + "options":[ + { + "value":"${VAR_GLOBAL_TAG_FILTER}", + "text":"${VAR_GLOBAL_TAG_FILTER}" + } + ], + "query":"${VAR_GLOBAL_TAG_FILTER}", + "skipUrlSync":false, + "type":"constant" + }, + { + "current":{ + "value":"${VAR_ROLLING_INTERVAL}", + "text":"${VAR_ROLLING_INTERVAL}" + }, + "hide":2, + "label":"rolling_interval", + "name":"rolling_interval", + "options":[ + { + "value":"${VAR_ROLLING_INTERVAL}", + "text":"${VAR_ROLLING_INTERVAL}" + } + ], + "query":"${VAR_ROLLING_INTERVAL}", + "skipUrlSync":false, + "type":"constant" + } + ] + }, + "time":{ + "from":"now-2d", + "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 OS Metrics", + "uid":"5yJpuYxir", + "version":79 } From fcea8c0805fb9e362a1e11e77e8bdc276b7489de Mon Sep 17 00:00:00 2001 From: hari9973 Date: Mon, 21 Jan 2019 15:58:59 +0530 Subject: [PATCH 05/13] Modified the timeseries value --- Prometheus OS Metrics.json | 323 +++---------------------------------- 1 file changed, 19 insertions(+), 304 deletions(-) diff --git a/Prometheus OS Metrics.json b/Prometheus OS Metrics.json index 5446ce1..57b1ee5 100644 --- a/Prometheus OS Metrics.json +++ b/Prometheus OS Metrics.json @@ -136,22 +136,7 @@ "format":"time_series", "intervalFactor":1, "refId":"A", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"A", - "rate":false - }, + "ts":{}, "type":"Time Series" } ], @@ -634,22 +619,7 @@ "format":"time_series", "intervalFactor":1, "refId":"A", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"A", - "rate":false - }, + "ts":{}, "type":"Time Series" } ], @@ -747,22 +717,7 @@ "format":"time_series", "intervalFactor":1, "refId":"A", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"A", - "rate":false - }, + "ts":{}, "type":"Time Series" } ], @@ -860,22 +815,7 @@ "format":"time_series", "intervalFactor":1, "refId":"A", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"A", - "rate":false - }, + "ts":{}, "type":"Time Series" } ], @@ -978,22 +918,7 @@ "intervalFactor":1, "legendFormat":"avg", "refId":"A", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"A", - "rate":false - }, + "ts":{}, "type":"Time Series" }, { @@ -1002,22 +927,7 @@ "intervalFactor":1, "legendFormat":"{{instance}}", "refId":"B", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"B", - "rate":false - }, + "ts":{}, "type":"Time Series" } ], @@ -1119,22 +1029,7 @@ ], "refId":"A", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"A", - "rate":false - }, + "ts":{}, "type":"Time Series" }, { @@ -1143,22 +1038,7 @@ "intervalFactor":1, "legendFormat":"avg", "refId":"B", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"B", - "rate":false - }, + "ts":{}, "type":"Time Series" } ], @@ -1260,22 +1140,7 @@ ], "refId":"A", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"A", - "rate":false - }, + "ts":{}, "type":"Time Series" }, { @@ -1284,22 +1149,7 @@ "intervalFactor":1, "legendFormat":"avg", "refId":"B", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"B", - "rate":false - }, + "ts":{}, "type":"Time Series" } ], @@ -1404,22 +1254,7 @@ ], "refId":"A", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"A", - "rate":false - }, + "ts":{}, "type":"Time Series" }, { @@ -1547,22 +1382,7 @@ ], "refId":"A", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"A", - "rate":false - }, + "ts":{}, "type":"Time Series" }, { @@ -1571,22 +1391,7 @@ "intervalFactor":1, "legendFormat":"used %", "refId":"B", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"B", - "rate":false - }, + "ts":{}, "type":"Time Series" } ], @@ -1695,22 +1500,7 @@ ], "refId":"A", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"A", - "rate":false - }, + "ts":{}, "type":"Time Series" } ], @@ -1816,22 +1606,7 @@ ], "refId":"A", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"A", - "rate":false - }, + "ts":{}, "type":"Time Series" } ], @@ -1940,22 +1715,7 @@ ], "refId":"A", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"A", - "rate":false - }, + "ts":{}, "type":"Time Series" }, { @@ -2081,22 +1841,7 @@ ], "refId":"A", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"A", - "rate":false - }, + "ts":{}, "type":"Time Series" } ], @@ -2203,22 +1948,7 @@ ], "refId":"A", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"A", - "rate":false - }, + "ts":{}, "type":"Time Series" }, { @@ -2227,22 +1957,7 @@ "intervalFactor":1, "legendFormat":"out({{instance}})", "refId":"B", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"B", - "rate":false - }, + "ts":{}, "type":"Time Series" } ], From d9446d73004f02e9e1fd4ddf594de38b61d6ab1d Mon Sep 17 00:00:00 2001 From: hari9973 Date: Mon, 21 Jan 2019 18:11:54 +0530 Subject: [PATCH 06/13] Update Prometheus OS Metrics.json --- Prometheus OS Metrics.json | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/Prometheus OS Metrics.json b/Prometheus OS Metrics.json index 57b1ee5..dda227b 100644 --- a/Prometheus OS Metrics.json +++ b/Prometheus OS Metrics.json @@ -1263,22 +1263,7 @@ "intervalFactor":1, "legendFormat":"%used", "refId":"B", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"B", - "rate":false - }, + "ts":{}, "type":"Time Series" } ], @@ -1724,22 +1709,7 @@ "intervalFactor":1, "legendFormat":"out ({{instance}})", "refId":"B", - "ts":{ - "agg":"sum", - "dsDisable":false, - "dsFn":"avg", - "errors":[ - - ], - "filters":[ - - ], - "genMap":[ - - ], - "id":"B", - "rate":false - }, + "ts":{}, "type":"Time Series" } ], From 32546dd8300df0873b8014699be5808fa5950483 Mon Sep 17 00:00:00 2001 From: hari9973 Date: Tue, 22 Jan 2019 10:07:58 +0530 Subject: [PATCH 07/13] Add files via upload --- Prometheus Memcache Metrics.json | 1307 ++++++++++++++++++++++++++++++ 1 file changed, 1307 insertions(+) create mode 100644 Prometheus Memcache Metrics.json diff --git a/Prometheus Memcache Metrics.json b/Prometheus Memcache Metrics.json new file mode 100644 index 0000000..f2f202b --- /dev/null +++ b/Prometheus Memcache Metrics.json @@ -0,0 +1,1307 @@ +{ + "__inputs": [ + { + "name": "DS_PROMQL", + "label": "PromQL", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + }, + { + "name": "DS_APPTUIT", + "label": "Apptuit", + "description": "", + "type": "datasource", + "pluginId": "apptuit", + "pluginName": "Apptuit" + }, + { + "name": "VAR_GLOBAL_TAG_FILTER", + "type": "constant", + "label": "global_tag_filter", + "value": "instance=~\".*\"", + "description": "" + } + ], + "__requires": [ + { + "type": "datasource", + "id": "apptuit", + "name": "Apptuit", + "version": "1.0.0" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "5.2.5" + }, + { + "type": "panel", + "id": "graph", + "name": "Graph", + "version": "5.0.0" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "5.0.0" + }, + { + "type": "panel", + "id": "singlestat", + "name": "Singlestat", + "version": "5.0.0" + } + ], + "annotations": { + "list": [] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": null, + "iteration": 1548130092001, + "links": [], + "panels": [ + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": "${DS_PROMQL}", + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 0, + "y": 0 + }, + "id": 2, + "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" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "expr": "sum(memcached_current_connections{$global_tag_filter})", + "format": "time_series", + "intervalFactor": 1, + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Query" + } + ], + "thresholds": "", + "title": "Connections", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + }, + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": "${DS_PROMQL}", + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 4, + "y": 0 + }, + "id": 3, + "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" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "expr": "sum(memcached_current_items{$global_tag_filter})", + "format": "time_series", + "intervalFactor": 1, + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Query" + } + ], + "thresholds": "", + "title": "# Items", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + }, + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": "${DS_PROMQL}", + "format": "percentunit", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 8, + "y": 0 + }, + "id": 6, + "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" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "expr": "avg(sum(irate(memcached_commands_total{status='hit',$global_tag_filter}[$__interval])) without (command) / ignoring(status) (sum(irate(memcached_commands_total{status='hit',$global_tag_filter}[$__interval])) without (command) + ignoring(status) sum(memcached_commands_total{status='miss',$global_tag_filter}) without (command)))", + "format": "time_series", + "intervalFactor": 1, + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Query" + } + ], + "thresholds": "", + "title": "Hit Ratio", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + }, + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": "${DS_PROMQL}", + "format": "percentunit", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 12, + "y": 0 + }, + "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" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "expr": "sum(irate(memcached_commands_total{command='get',$global_tag_filter}[$__interval])) without (status) / ignoring(command) (sum(irate(memcached_commands_total{command='get',$global_tag_filter}[$__interval])) without (status) + ignoring(command) sum(irate(memcached_commands_total{command=~'set|incr|decr',$global_tag_filter}[$__interval])) without (status,command))", + "format": "time_series", + "intervalFactor": 1, + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Query" + } + ], + "thresholds": "", + "title": "Get/Set Ratio", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + }, + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": "${DS_PROMQL}", + "format": "percentunit", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 16, + "y": 0 + }, + "id": 9, + "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" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "expr": "sum(memcached_current_bytes{$global_tag_filter}) / sum(memcached_limit_bytes{$global_tag_filter})", + "format": "time_series", + "intervalFactor": 1, + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Query" + } + ], + "thresholds": "", + "title": "Fill %", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + }, + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": "${DS_PROMQL}", + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 20, + "y": 0 + }, + "id": 11, + "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" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "expr": "sum(irate(memcached_items_evicted_total{$global_tag_filter}[$__interval]))", + "format": "time_series", + "intervalFactor": 1, + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Query" + } + ], + "thresholds": "", + "title": "Eviction Rate", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "${DS_PROMQL}", + "fill": 1, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 7 + }, + "id": 1, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "avg(sum(memcached_commands_total{status='hit',$global_tag_filter}) without (command) / ignoring(status) (sum(memcached_commands_total{status='hit',$global_tag_filter}) without (command) + ignoring(status) sum(memcached_commands_total{status='miss',$global_tag_filter}) without (command)))", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "hit ratio", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Query" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Hit Ratio", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percentunit", + "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 + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "${DS_PROMQL}", + "fill": 1, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 14 + }, + "id": 5, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "sum(irate(memcached_commands_total{command='get',$global_tag_filter}[$__interval])) without (status) / ignoring(command) (sum(irate(memcached_commands_total{command='get',$global_tag_filter}[$__interval])) without (status) + ignoring(command) sum(irate(memcached_commands_total{command=~'set|incr|decr',$global_tag_filter}[$__interval])) without (status,command))", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "memcache_get_ratio", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Query" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Get/Set Ratio", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percentunit", + "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 + } + }, + { + "aliasColors": { + "Limit": "#F4D598" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "${DS_PROMQL}", + "fill": 1, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 7, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Items in memory", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "sum(memcached_current_bytes{$global_tag_filter}) / sum(memcached_limit_bytes{$global_tag_filter})", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "memcached_current_bytes / memcached_limit_bytes", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Query" + }, + { + "expr": "sum(memcached_current_items{$global_tag_filter})", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "memcache_current_items", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Memory Usage", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percentunit", + "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 + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "${DS_PROMQL}", + "fill": 1, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 28 + }, + "id": 8, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "irate(memcached_read_bytes_total{$global_tag_filter}[$__interval])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "memcache_bytes_in", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Query" + }, + { + "expr": "0 - irate(memcached_written_bytes_total{$global_tag_filter}[$__interval])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "memcache_bytes_out", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Network IO", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "Bps", + "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 + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "${DS_PROMQL}", + "fill": 1, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 35 + }, + "id": 10, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "sum(irate(memcached_items_evicted_total{$global_tag_filter}[$__interval]))", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "memcache_evictions", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Query" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Eviction Rate", + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "yields": "#967302" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "${DS_PROMQL}", + "fill": 1, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 42 + }, + "id": 12, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "memcache.listen_disabled_num{dataset: default, host: centos6}", + "yaxis": 2 + }, + { + "alias": "memcache.conn_yields{dataset: default, host: centos6}", + "yaxis": 2 + }, + { + "alias": "listen_disabled", + "yaxis": 2 + }, + { + "alias": "yields", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "max_over_time(memcached_connections_total{$global_tag_filter}[$__interval])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "memcache_curr_connections:{{instance}}-connections", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Query" + }, + { + "expr": "max_over_time(memcached_connections_listener_disabled_total{$global_tag_filter}[$__interval])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "memcache_conn_errors:{{instance}}", + "refId": "B" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Connections", + "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": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "system": "#EF843C", + "user": "#7EB26D" + }, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "${DS_PROMQL}", + "fill": 1, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 49 + }, + "id": 13, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "sum(irate(node_cpu_seconds_total{mode=~'user|system'}[$__interval])) by (instance,mode)", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "{{instance}}-{{mode}}", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Query" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Memcached CPU Usage", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percentunit", + "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 + } + } + ], + "refresh": false, + "schemaVersion": 16, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "allValue": ".*", + "current": {}, + "datasource": "${DS_APPTUIT}", + "hide": 0, + "includeAll": true, + "label": "host", + "multi": false, + "name": "host", + "options": [], + "query": "label_values(memcached_connections_total,instance)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "value": "${VAR_GLOBAL_TAG_FILTER}", + "text": "${VAR_GLOBAL_TAG_FILTER}" + }, + "hide": 2, + "label": "global_tag_filter", + "name": "global_tag_filter", + "options": [ + { + "value": "${VAR_GLOBAL_TAG_FILTER}", + "text": "${VAR_GLOBAL_TAG_FILTER}" + } + ], + "query": "${VAR_GLOBAL_TAG_FILTER}", + "skipUrlSync": false, + "type": "constant" + } + ] + }, + "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" + ] + }, + "timezone": "", + "title": "Prometheus Memcache Metrics", + "uid": "kTd5uLxmG", + "version": 8 +} From 21642ddabcf1c4330ffed930a014c8244f96d74e Mon Sep 17 00:00:00 2001 From: hari9973 Date: Tue, 29 Jan 2019 18:28:25 +0530 Subject: [PATCH 08/13] updated the Datasourcs --- Prometheus OS Metrics.json | 3851 +++++++++++++++++------------------- 1 file changed, 1795 insertions(+), 2056 deletions(-) diff --git a/Prometheus OS Metrics.json b/Prometheus OS Metrics.json index dda227b..d5de707 100644 --- a/Prometheus OS Metrics.json +++ b/Prometheus OS Metrics.json @@ -1,2089 +1,1828 @@ { - "__inputs":[ - { - "name":"DS_PROMQL", - "label":"PromQL", - "description":"", - "type":"datasource", - "pluginId":"prometheus", - "pluginName":"Prometheus" + "annotations": { + "list": [] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 537, + "iteration": 1548766449165, + "links": [], + "panels": [ + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": "Apptuit-PromQL", + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true }, - { - "name":"VAR_GLOBAL_TAG_FILTER", - "type":"constant", - "label":"global_tag_filter", - "value":"instance=~\".*\"", - "description":"" + "gridPos": { + "h": 7, + "w": 4, + "x": 0, + "y": 0 }, - { - "name":"VAR_ROLLING_INTERVAL", - "type":"constant", - "label":"rolling_interval", - "value":"10m", - "description":"" + "id": 2, + "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" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "expr": "count(count(node_cpu_seconds_total{mode='idle',$global_tag_filter}) by (instance))", + "format": "time_series", + "intervalFactor": 1, + "refId": "A", + "ts": {}, + "type": "Time Series" + } + ], + "thresholds": "", + "title": "Number of instances", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "#b4ff00", + "colorScale": "sqrt", + "colorScheme": "interpolateOranges", + "exponent": 0.5, + "mode": "spectrum" + }, + "dataFormat": "timeseries", + "datasource": "Apptuit-PromQL", + "gridPos": { + "h": 7, + "w": 4, + "x": 4, + "y": 0 + }, + "heatmap": {}, + "highlightCards": true, + "id": 5, + "legend": { + "show": false + }, + "links": [], + "targets": [ + { + "expr": "avg(sum(avg_over_time(node_cpu_seconds_total{$global_tag_filter}[$__interval])) by (cpu,instance)) by (instance)", + "format": "time_series", + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Instance uptime", + "tooltip": { + "show": true, + "showHistogram": true + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": null, + "yAxis": { + "decimals": null, + "format": "s", + "logBase": 1, + "max": null, + "min": null, + "show": true, + "splitFactor": null + }, + "yBucketBound": "auto", + "yBucketNumber": null, + "yBucketSize": null + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "#b4ff00", + "colorScale": "sqrt", + "colorScheme": "interpolateBlues", + "exponent": 0.5, + "mode": "spectrum" + }, + "dataFormat": "timeseries", + "datasource": "Apptuit-PromQL", + "description": "https://www.robustperception.io/understanding-machine-cpu-usage", + "gridPos": { + "h": 7, + "w": 4, + "x": 8, + "y": 0 + }, + "heatmap": {}, + "highlightCards": true, + "id": 4, + "legend": { + "show": false + }, + "links": [], + "targets": [ + { + "expr": "100 - (avg by (instance) (100 * irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))", + "format": "time_series", + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "CPU usage", + "tooltip": { + "show": true, + "showHistogram": true + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": null, + "yAxis": { + "decimals": null, + "format": "short", + "logBase": 1, + "max": "100", + "min": "0", + "show": true, + "splitFactor": null + }, + "yBucketBound": "auto", + "yBucketNumber": null, + "yBucketSize": 5 + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "#b4ff00", + "colorScale": "sqrt", + "colorScheme": "interpolateBlues", + "exponent": 0.5, + "mode": "spectrum" + }, + "dataFormat": "timeseries", + "datasource": "Apptuit-PromQL", + "gridPos": { + "h": 7, + "w": 4, + "x": 12, + "y": 0 + }, + "heatmap": {}, + "highlightCards": true, + "id": 7, + "legend": { + "show": false + }, + "links": [], + "targets": [ + { + "expr": "1 - (node_memory_MemFree_bytes{$global_tag_filter} / node_memory_MemTotal_bytes{$global_tag_filter})", + "format": "time_series", + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Memory usage", + "tooltip": { + "show": true, + "showHistogram": true + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": null, + "yAxis": { + "decimals": null, + "format": "percentunit", + "logBase": 1, + "max": "1", + "min": "0", + "show": true, + "splitFactor": null + }, + "yBucketBound": "auto", + "yBucketNumber": null, + "yBucketSize": 0.05 + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "#b4ff00", + "colorScale": "sqrt", + "colorScheme": "interpolatePurples", + "exponent": 0.5, + "mode": "spectrum" + }, + "dataFormat": "timeseries", + "datasource": "Apptuit-PromQL", + "gridPos": { + "h": 7, + "w": 4, + "x": 16, + "y": 0 + }, + "heatmap": {}, + "highlightCards": true, + "id": 8, + "legend": { + "show": false + }, + "links": [], + "targets": [ + { + "expr": "((node_filesystem_size_bytes{$global_tag_filter} - node_filesystem_avail_bytes{$global_tag_filter}) / node_filesystem_size_bytes{$global_tag_filter}) * 100", + "format": "time_series", + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Disk used", + "tooltip": { + "show": true, + "showHistogram": true + }, + "tooltipDecimals": null, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": "", + "yAxis": { + "decimals": null, + "format": "percent", + "logBase": 1, + "max": "100", + "min": "0", + "show": true, + "splitFactor": null + }, + "yBucketBound": "auto", + "yBucketNumber": null, + "yBucketSize": 5 + }, + { + "cards": { + "cardPadding": null, + "cardRound": null + }, + "color": { + "cardColor": "rgb(0, 30, 255)", + "colorScale": "linear", + "colorScheme": "interpolateOranges", + "exponent": 0.5, + "mode": "spectrum" + }, + "dataFormat": "timeseries", + "datasource": "Apptuit-PromQL", + "gridPos": { + "h": 7, + "w": 4, + "x": 20, + "y": 0 + }, + "heatmap": {}, + "highlightCards": true, + "id": 6, + "legend": { + "show": false + }, + "links": [], + "targets": [ + { + "expr": "irate(node_network_receive_bytes_total{$global_tag_filter}[$rolling_interval])", + "format": "time_series", + "intervalFactor": 1, + "refId": "A" + }, + { + "expr": "0 - irate(node_network_transmit_bytes_total{$global_tag_filter}[$rolling_interval])", + "format": "time_series", + "intervalFactor": 1, + "refId": "B" + } + ], + "title": "Network IO", + "tooltip": { + "show": true, + "showHistogram": true + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "xBucketNumber": null, + "xBucketSize": null, + "yAxis": { + "decimals": null, + "format": "Bps", + "logBase": 1, + "max": null, + "min": null, + "show": true, + "splitFactor": null + }, + "yBucketBound": "auto", + "yBucketNumber": null, + "yBucketSize": null + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Apptuit-PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 6, + "x": 0, + "y": 7 + }, + "id": 9, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "node_load1{$global_tag_filter}", + "format": "time_series", + "intervalFactor": 1, + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Load Average [1m]", + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null } - ], - "__requires":[ - { - "type":"grafana", - "id":"grafana", - "name":"Grafana", - "version":"5.2.5" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Apptuit-PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 6, + "x": 6, + "y": 7 }, - { - "type":"panel", - "id":"graph", - "name":"Graph", - "version":"5.0.0" + "id": 10, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false }, - { - "type":"panel", - "id":"heatmap", - "name":"Heatmap", - "version":"5.0.0" + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "irate(node_forks_total[$rolling_interval])", + "format": "time_series", + "intervalFactor": 1, + "refId": "A", + "ts": {}, + "type": "Time Series" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Processes", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" }, - { - "type":"datasource", - "id":"prometheus", - "name":"Prometheus", - "version":"5.0.0" + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] }, - { - "type":"panel", - "id":"singlestat", - "name":"Singlestat", - "version":"5.0.0" + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null } - ], - "annotations":{ - "list":[ - - ] - }, - "editable":true, - "gnetId":null, - "graphTooltip":0, - "id":null, - "iteration":1548063339298, - "links":[ - - ], - "panels":[ - { - "cacheTimeout":null, - "colorBackground":false, - "colorValue":false, - "colors":[ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource":"${DS_PROMQL}", - "format":"none", - "gauge":{ - "maxValue":100, - "minValue":0, - "show":false, - "thresholdLabels":false, - "thresholdMarkers":true - }, - "gridPos":{ - "h":7, - "w":4, - "x":0, - "y":0 - }, - "id":2, - "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" - } - ], - "sparkline":{ - "fillColor":"rgba(31, 118, 189, 0.18)", - "full":false, - "lineColor":"rgb(31, 120, 193)", - "show":true - }, - "tableColumn":"", - "targets":[ - { - "expr":"count(count(node_cpu_seconds_total{mode='idle',$global_tag_filter}) by (instance))", - "format":"time_series", - "intervalFactor":1, - "refId":"A", - "ts":{}, - "type":"Time Series" - } - ], - "thresholds":"", - "title":"Number of instances", - "type":"singlestat", - "valueFontSize":"80%", - "valueMaps":[ - { - "op":"=", - "text":"N/A", - "value":"null" - } - ], - "valueName":"current" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Apptuit-PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 6, + "x": 12, + "y": 7 }, - { - "cards":{ - "cardPadding":null, - "cardRound":null - }, - "color":{ - "cardColor":"#b4ff00", - "colorScale":"sqrt", - "colorScheme":"interpolateOranges", - "exponent":0.5, - "mode":"spectrum" - }, - "dataFormat":"timeseries", - "datasource":"${DS_PROMQL}", - "gridPos":{ - "h":7, - "w":4, - "x":4, - "y":0 - }, - "heatmap":{ - - }, - "highlightCards":true, - "id":5, - "legend":{ - "show":false - }, - "links":[ - - ], - "targets":[ - { - "expr":"avg(sum(avg_over_time(node_cpu_seconds_total{$global_tag_filter}[$__interval])) by (cpu,instance)) by (instance)", - "format":"time_series", - "intervalFactor":1, - "refId":"A" - } - ], - "title":"Instance uptime", - "tooltip":{ - "show":true, - "showHistogram":true - }, - "type":"heatmap", - "xAxis":{ - "show":true - }, - "xBucketNumber":null, - "xBucketSize":null, - "yAxis":{ - "decimals":null, - "format":"s", - "logBase":1, - "max":null, - "min":null, - "show":true, - "splitFactor":null - }, - "yBucketBound":"auto", - "yBucketNumber":null, - "yBucketSize":null + "id": 11, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false }, - { - "cards":{ - "cardPadding":null, - "cardRound":null - }, - "color":{ - "cardColor":"#b4ff00", - "colorScale":"sqrt", - "colorScheme":"interpolateBlues", - "exponent":0.5, - "mode":"spectrum" - }, - "dataFormat":"timeseries", - "datasource":"${DS_PROMQL}", - "description":"https://www.robustperception.io/understanding-machine-cpu-usage", - "gridPos":{ - "h":7, - "w":4, - "x":8, - "y":0 - }, - "heatmap":{ - - }, - "highlightCards":true, - "id":4, - "legend":{ - "show":false - }, - "links":[ - - ], - "targets":[ - { - "expr":"100 - (avg by (instance) (100 * irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))", - "format":"time_series", - "intervalFactor":1, - "refId":"A" - } - ], - "title":"CPU usage", - "tooltip":{ - "show":true, - "showHistogram":true - }, - "type":"heatmap", - "xAxis":{ - "show":true - }, - "xBucketNumber":null, - "xBucketSize":null, - "yAxis":{ - "decimals":null, - "format":"short", - "logBase":1, - "max":"100", - "min":"0", - "show":true, - "splitFactor":null - }, - "yBucketBound":"auto", - "yBucketNumber":null, - "yBucketSize":5 + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "irate(node_context_switches_total{$global_tag_filter}[$rolling_interval])", + "format": "time_series", + "intervalFactor": 1, + "refId": "A", + "ts": {}, + "type": "Time Series" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Context Switches", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" }, - { - "cards":{ - "cardPadding":null, - "cardRound":null - }, - "color":{ - "cardColor":"#b4ff00", - "colorScale":"sqrt", - "colorScheme":"interpolateBlues", - "exponent":0.5, - "mode":"spectrum" - }, - "dataFormat":"timeseries", - "datasource":"${DS_PROMQL}", - "gridPos":{ - "h":7, - "w":4, - "x":12, - "y":0 - }, - "heatmap":{ - - }, - "highlightCards":true, - "id":7, - "legend":{ - "show":false - }, - "links":[ - - ], - "targets":[ - { - "expr":"1 - (node_memory_MemFree_bytes{$global_tag_filter} / node_memory_MemTotal_bytes{$global_tag_filter})", - "format":"time_series", - "intervalFactor":1, - "refId":"A" - } - ], - "title":"Memory usage", - "tooltip":{ - "show":true, - "showHistogram":true - }, - "type":"heatmap", - "xAxis":{ - "show":true - }, - "xBucketNumber":null, - "xBucketSize":null, - "yAxis":{ - "decimals":null, - "format":"percentunit", - "logBase":1, - "max":"1", - "min":"0", - "show":true, - "splitFactor":null - }, - "yBucketBound":"auto", - "yBucketNumber":null, - "yBucketSize":0.05 + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] }, - { - "cards":{ - "cardPadding":null, - "cardRound":null - }, - "color":{ - "cardColor":"#b4ff00", - "colorScale":"sqrt", - "colorScheme":"interpolatePurples", - "exponent":0.5, - "mode":"spectrum" - }, - "dataFormat":"timeseries", - "datasource":"${DS_PROMQL}", - "gridPos":{ - "h":7, - "w":4, - "x":16, - "y":0 - }, - "heatmap":{ - - }, - "highlightCards":true, - "id":8, - "legend":{ - "show":false - }, - "links":[ - - ], - "targets":[ - { - "expr":"((node_filesystem_size_bytes{$global_tag_filter} - node_filesystem_avail_bytes{$global_tag_filter}) / node_filesystem_size_bytes{$global_tag_filter}) * 100", - "format":"time_series", - "intervalFactor":1, - "refId":"A" - } - ], - "title":"Disk used", - "tooltip":{ - "show":true, - "showHistogram":true - }, - "tooltipDecimals":null, - "type":"heatmap", - "xAxis":{ - "show":true - }, - "xBucketNumber":null, - "xBucketSize":"", - "yAxis":{ - "decimals":null, - "format":"percent", - "logBase":1, - "max":"100", - "min":"0", - "show":true, - "splitFactor":null - }, - "yBucketBound":"auto", - "yBucketNumber":null, - "yBucketSize":5 + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Apptuit-PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 6, + "x": 18, + "y": 7 }, - { - "cards":{ - "cardPadding":null, - "cardRound":null - }, - "color":{ - "cardColor":"rgb(0, 30, 255)", - "colorScale":"linear", - "colorScheme":"interpolateOranges", - "exponent":0.5, - "mode":"spectrum" - }, - "dataFormat":"timeseries", - "datasource":"${DS_PROMQL}", - "gridPos":{ - "h":7, - "w":4, - "x":20, - "y":0 - }, - "heatmap":{ - - }, - "highlightCards":true, - "id":6, - "legend":{ - "show":false - }, - "links":[ - - ], - "targets":[ - { - "expr":"irate(node_network_receive_bytes_total{$global_tag_filter}[$rolling_interval])", - "format":"time_series", - "intervalFactor":1, - "refId":"A" - }, - { - "expr":"0 - irate(node_network_transmit_bytes_total{$global_tag_filter}[$rolling_interval])", - "format":"time_series", - "intervalFactor":1, - "refId":"B" - } - ], - "title":"Network IO", - "tooltip":{ - "show":true, - "showHistogram":true - }, - "type":"heatmap", - "xAxis":{ - "show":true - }, - "xBucketNumber":null, - "xBucketSize":null, - "yAxis":{ - "decimals":null, - "format":"Bps", - "logBase":1, - "max":null, - "min":null, - "show":true, - "splitFactor":null - }, - "yBucketBound":"auto", - "yBucketNumber":null, - "yBucketSize":null + "id": 12, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false }, - { - "aliasColors":{ - - }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":"${DS_PROMQL}", - "fill":1, - "gridPos":{ - "h":7, - "w":6, - "x":0, - "y":7 - }, - "id":9, - "legend":{ - "avg":false, - "current":false, - "max":false, - "min":false, - "show":false, - "total":false, - "values":false - }, - "lines":true, - "linewidth":1, - "links":[ - - ], - "nullPointMode":"null", - "percentage":false, - "pointradius":5, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - - ], - "spaceLength":10, - "stack":false, - "steppedLine":false, - "targets":[ - { - "expr":"node_load1{$global_tag_filter}", - "format":"time_series", - "intervalFactor":1, - "refId":"A" - } - ], - "thresholds":[ - - ], - "timeFrom":null, - "timeRegions":[ - - ], - "timeShift":null, - "title":"Load Average [1m]", - "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 - } - ], - "yaxis":{ - "align":false, - "alignLevel":null - } + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "irate(node_intr_total{$global_tag_filter}[$rolling_interval])", + "format": "time_series", + "intervalFactor": 1, + "refId": "A", + "ts": {}, + "type": "Time Series" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Interrupts", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" }, - { - "aliasColors":{ - - }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":"${DS_PROMQL}", - "fill":1, - "gridPos":{ - "h":7, - "w":6, - "x":6, - "y":7 - }, - "id":10, - "legend":{ - "avg":false, - "current":false, - "max":false, - "min":false, - "show":false, - "total":false, - "values":false - }, - "lines":true, - "linewidth":1, - "links":[ - - ], - "nullPointMode":"null", - "percentage":false, - "pointradius":5, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - - ], - "spaceLength":10, - "stack":false, - "steppedLine":false, - "targets":[ - { - "expr":"irate(node_forks_total[$rolling_interval])", - "format":"time_series", - "intervalFactor":1, - "refId":"A", - "ts":{}, - "type":"Time Series" - } - ], - "thresholds":[ - - ], - "timeFrom":null, - "timeRegions":[ - - ], - "timeShift":null, - "title":"Processes", - "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":"0", - "show":true - }, - { - "format":"short", - "label":null, - "logBase":1, - "max":null, - "min":null, - "show":true - } - ], - "yaxis":{ - "align":false, - "alignLevel":null - } + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] }, - { - "aliasColors":{ - - }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":"${DS_PROMQL}", - "fill":1, - "gridPos":{ - "h":7, - "w":6, - "x":12, - "y":7 - }, - "id":11, - "legend":{ - "avg":false, - "current":false, - "max":false, - "min":false, - "show":false, - "total":false, - "values":false - }, - "lines":true, - "linewidth":1, - "links":[ - - ], - "nullPointMode":"null", - "percentage":false, - "pointradius":5, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - - ], - "spaceLength":10, - "stack":false, - "steppedLine":false, - "targets":[ - { - "expr":"irate(node_context_switches_total{$global_tag_filter}[$rolling_interval])", - "format":"time_series", - "intervalFactor":1, - "refId":"A", - "ts":{}, - "type":"Time Series" - } - ], - "thresholds":[ - - ], - "timeFrom":null, - "timeRegions":[ - - ], - "timeShift":null, - "title":"Context Switches", - "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":"0", - "show":true - }, - { - "format":"short", - "label":null, - "logBase":1, - "max":null, - "min":null, - "show":true - } - ], - "yaxis":{ - "align":false, - "alignLevel":null - } + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "avg": "rgb(158, 166, 155)" }, - { - "aliasColors":{ - - }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":"${DS_PROMQL}", - "fill":1, - "gridPos":{ - "h":7, - "w":6, - "x":18, - "y":7 - }, - "id":12, - "legend":{ - "avg":false, - "current":false, - "max":false, - "min":false, - "show":false, - "total":false, - "values":false - }, - "lines":true, - "linewidth":1, - "links":[ - - ], - "nullPointMode":"connected", - "percentage":false, - "pointradius":5, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - - ], - "spaceLength":10, - "stack":false, - "steppedLine":false, - "targets":[ - { - "expr":"irate(node_intr_total{$global_tag_filter}[$rolling_interval])", - "format":"time_series", - "intervalFactor":1, - "refId":"A", - "ts":{}, - "type":"Time Series" - } - ], - "thresholds":[ - - ], - "timeFrom":null, - "timeRegions":[ - - ], - "timeShift":null, - "title":"Interrupts", - "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":"0", - "show":true - }, - { - "format":"short", - "label":null, - "logBase":1, - "max":null, - "min":null, - "show":true - } - ], - "yaxis":{ - "align":false, - "alignLevel":null - } + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Apptuit-PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 8, + "x": 0, + "y": 14 }, - { - "aliasColors":{ - "avg":"rgb(158, 166, 155)" - }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":"${DS_PROMQL}", - "fill":1, - "gridPos":{ - "h":7, - "w":8, - "x":0, - "y":14 - }, - "id":19, - "legend":{ - "alignAsTable":false, - "avg":false, - "current":false, - "max":false, - "min":false, - "rightSide":false, - "show":false, - "sort":"min", - "sortDesc":false, - "total":false, - "values":false - }, - "lines":true, - "linewidth":1, - "links":[ - - ], - "nullPointMode":"null", - "percentage":false, - "pointradius":5, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - - ], - "spaceLength":10, - "stack":false, - "steppedLine":false, - "targets":[ - { - "expr":"100 - (sum(irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval])) / count(irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval])) * 100) ", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"avg", - "refId":"A", - "ts":{}, - "type":"Time Series" - }, - { - "expr":"topk(3,100 - irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval]) *100)", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"{{instance}}", - "refId":"B", - "ts":{}, - "type":"Time Series" - } - ], - "thresholds":[ - - ], - "timeFrom":null, - "timeRegions":[ - - ], - "timeShift":null, - "title":"Top 3 Used CPU", - "tooltip":{ - "shared":true, - "sort":0, - "value_type":"individual" - }, - "type":"graph", - "xaxis":{ - "buckets":null, - "mode":"time", - "name":null, - "show":true, - "values":[ - - ] - }, - "yaxes":[ - { - "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 - } + "id": 19, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": false, + "sort": "min", + "sortDesc": false, + "total": false, + "values": false }, - { - "aliasColors":{ - "avg":"rgb(158, 166, 155)" - }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":"${DS_PROMQL}", - "fill":1, - "gridPos":{ - "h":7, - "w":8, - "x":8, - "y":14 - }, - "id":20, - "legend":{ - "avg":false, - "current":false, - "max":false, - "min":false, - "show":false, - "total":false, - "values":false - }, - "lines":true, - "linewidth":1, - "links":[ - - ], - "nullPointMode":"null", - "percentage":false, - "pointradius":5, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - - ], - "spaceLength":10, - "stack":false, - "steppedLine":false, - "targets":[ - { - "expr":"topk(3,100 - ((node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes) / (node_memory_MemTotal_bytes)) * 100)", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"{{instance}}", - "metrics":[ - - ], - "refId":"A", - "ts":{}, - "type":"Time Series" - }, - { - "expr":"100 - (sum(node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes) / sum(node_memory_MemTotal_bytes)) * 100", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"avg", - "refId":"B", - "ts":{}, - "type":"Time Series" - } - ], - "thresholds":[ - - ], - "timeFrom":null, - "timeRegions":[ - - ], - "timeShift":null, - "title":"Top 3 Memory Usages", - "tooltip":{ - "shared":true, - "sort":0, - "value_type":"individual" - }, - "type":"graph", - "xaxis":{ - "buckets":null, - "mode":"time", - "name":null, - "show":true, - "values":[ - - ] - }, - "yaxes":[ - { - "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 - } + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "100 - (sum(irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval])) / count(irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval])) * 100) ", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "avg", + "refId": "A", + "ts": {}, + "type": "Time Series" + }, + { + "expr": "topk(3,100 - irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval]) *100)", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "{{instance}}", + "refId": "B", + "ts": {}, + "type": "Time Series" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Top 3 Used CPU", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" }, - { - "aliasColors":{ - "avg":"rgb(158, 166, 155)" - }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":"${DS_PROMQL}", - "fill":1, - "gridPos":{ - "h":7, - "w":8, - "x":16, - "y":14 - }, - "id":21, - "legend":{ - "avg":false, - "current":false, - "max":false, - "min":false, - "show":false, - "total":false, - "values":false - }, - "lines":true, - "linewidth":1, - "links":[ - - ], - "nullPointMode":"null", - "percentage":false, - "pointradius":5, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - - ], - "spaceLength":10, - "stack":false, - "steppedLine":false, - "targets":[ - { - "expr":"topk(3,(sum(node_disk_io_time_seconds_total{$global_tag_filter}) by (instance) / avg(sum(node_cpu_seconds_total{$global_tag_filter}) by (instance,cpu)) by (instance)) * 100)", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"{{instance}}", - "metrics":[ - - ], - "refId":"A", - "ts":{}, - "type":"Time Series" - }, - { - "expr":"avg((sum(node_disk_io_time_seconds_total{$global_tag_filter}) by (instance) / avg(sum(node_cpu_seconds_total{$global_tag_filter}) by (instance,cpu)) by (instance)) * 100)", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"avg", - "refId":"B", - "ts":{}, - "type":"Time Series" - } - ], - "thresholds":[ - - ], - "timeFrom":null, - "timeRegions":[ - - ], - "timeShift":null, - "title":"Top 3 Disc Utilization", - "tooltip":{ - "shared":true, - "sort":0, - "value_type":"individual" - }, - "type":"graph", - "xaxis":{ - "buckets":null, - "mode":"time", - "name":null, - "show":true, - "values":[ - - ] - }, - "yaxes":[ - { - "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": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] }, - { - "aliasColors":{ - "% Idle":"#E0F9D7", - "% Used":"#E24D42" - }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":"${DS_PROMQL}", - "fill":1, - "gridPos":{ - "h":9, - "w":24, - "x":0, - "y":21 - }, - "id":1, - "legend":{ - "alignAsTable":true, - "avg":false, - "current":false, - "max":true, - "min":true, - "rightSide":true, - "show":true, - "total":false, - "values":true - }, - "lines":true, - "linewidth":1, - "links":[ - - ], - "nullPointMode":"null", - "percentage":false, - "pointradius":5, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - - ], - "spaceLength":10, - "stack":true, - "steppedLine":false, - "targets":[ - { - "expr":"((sum(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval]))) / (count(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))) * 100", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"%idle", - "metrics":[ - - ], - "refId":"A", - "ts":{}, - "type":"Time Series" - }, - { - "expr":"100 - (((sum(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval]))) / (count(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))) * 100)", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"%used", - "refId":"B", - "ts":{}, - "type":"Time Series" - } - ], - "thresholds":[ - - ], - "timeFrom":null, - "timeRegions":[ - - ], - "timeShift":null, - "title":"CPU Usage", - "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 - } - ], - "yaxis":{ - "align":false, - "alignLevel":null - } + "yaxes": [ + { + "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 + } + }, + { + "aliasColors": { + "avg": "rgb(158, 166, 155)" }, - { - "aliasColors":{ - - }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":"${DS_PROMQL}", - "fill":1, - "gridPos":{ - "h":7, - "w":24, - "x":0, - "y":30 - }, - "id":3, - "legend":{ - "alignAsTable":true, - "avg":false, - "current":false, - "max":true, - "min":true, - "rightSide":true, - "show":true, - "total":false, - "values":true - }, - "lines":true, - "linewidth":1, - "links":[ - - ], - "nullPointMode":"null", - "percentage":false, - "pointradius":1, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - - ], - "spaceLength":10, - "stack":true, - "steppedLine":false, - "targets":[ - { - "expr":"((sum(node_memory_MemFree_bytes{$global_tag_filter}) + sum(node_memory_Buffers_bytes{$global_tag_filter}) + sum(node_memory_Cached_bytes{$global_tag_filter})) / (sum(node_memory_MemTotal_bytes{$global_tag_filter}))) * 100", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"Available %", - "metrics":[ - - ], - "refId":"A", - "ts":{}, - "type":"Time Series" - }, - { - "expr":"100 - ((sum(node_memory_MemFree_bytes{$global_tag_filter}) + sum(node_memory_Buffers_bytes{$global_tag_filter}) + sum(node_memory_Cached_bytes{$global_tag_filter})) / (sum(node_memory_MemTotal_bytes{$global_tag_filter}))) * 100", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"used %", - "refId":"B", - "ts":{}, - "type":"Time Series" - } - ], - "thresholds":[ - - ], - "timeFrom":null, - "timeRegions":[ - - ], - "timeShift":null, - "title":"Memory", - "tooltip":{ - "shared":true, - "sort":0, - "value_type":"individual" - }, - "type":"graph", - "xaxis":{ - "buckets":null, - "mode":"time", - "name":null, - "show":true, - "values":[ - - ] - }, - "yaxes":[ - { - "format":"percent", - "label":"", - "logBase":1, - "max":"100", - "min":"0", - "show":true - }, - { - "format":"short", - "label":null, - "logBase":1, - "max":null, - "min":null, - "show":true - } - ], - "yaxis":{ - "align":false, - "alignLevel":null - } + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Apptuit-PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 8, + "x": 8, + "y": 14 }, - { - "aliasColors":{ - - }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":"${DS_PROMQL}", - "decimals":2, - "fill":1, - "gridPos":{ - "h":7, - "w":12, - "x":0, - "y":37 - }, - "id":13, - "legend":{ - "alignAsTable":true, - "avg":false, - "current":false, - "hideEmpty":true, - "hideZero":true, - "max":true, - "min":true, - "rightSide":true, - "show":true, - "sort":null, - "sortDesc":null, - "total":false, - "values":true - }, - "lines":true, - "linewidth":1, - "links":[ - - ], - "nullPointMode":"null", - "percentage":false, - "pointradius":2, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - - ], - "spaceLength":10, - "stack":false, - "steppedLine":false, - "targets":[ - { - "expr":"((node_filesystem_size_bytes{$global_tag_filter} - node_filesystem_free_bytes{$global_tag_filter}) / node_filesystem_size_bytes{$global_tag_filter}) * 100", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"{{mountpoint}}", - "metrics":[ - - ], - "refId":"A", - "ts":{}, - "type":"Time Series" - } - ], - "thresholds":[ - - ], - "timeFrom":null, - "timeRegions":[ - - ], - "timeShift":null, - "title":"Disc Space", - "tooltip":{ - "shared":true, - "sort":0, - "value_type":"individual" - }, - "type":"graph", - "xaxis":{ - "buckets":null, - "mode":"time", - "name":null, - "show":true, - "values":[ - - ] - }, - "yaxes":[ - { - "format":"percent", - "label":null, - "logBase":1, - "max":null, - "min":"0", - "show":true - }, - { - "format":"short", - "label":null, - "logBase":1, - "max":null, - "min":null, - "show":true - } - ], - "yaxis":{ - "align":false, - "alignLevel":null - } + "id": 20, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false }, - { - "aliasColors":{ - - }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":"${DS_PROMQL}", - "fill":1, - "gridPos":{ - "h":7, - "w":12, - "x":12, - "y":37 - }, - "id":14, - "legend":{ - "avg":false, - "current":false, - "max":false, - "min":false, - "show":false, - "total":false, - "values":false - }, - "lines":true, - "linewidth":1, - "links":[ - - ], - "nullPointMode":"null", - "percentage":false, - "pointradius":3, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - - ], - "spaceLength":10, - "stack":false, - "steppedLine":false, - "targets":[ - { - "aggregator":"sum", - "downsampleAggregator":"avg", - "downsampleFillPolicy":"none", - "expr":"(node_disk_io_time_seconds_total{$global_tag_filter} / ignoring(device) group_left(instance) sum(node_cpu_seconds_total{$global_tag_filter}) without (cpu,mode)) * 100", - "format":"time_series", - "interval":"", - "intervalFactor":1, - "legendFormat":"", - "metrics":[ - - ], - "refId":"A", - "ts":{}, - "type":"Time Series" - } - ], - "thresholds":[ - - ], - "timeFrom":null, - "timeRegions":[ - - ], - "timeShift":null, - "title":"Disc Utilization", - "tooltip":{ - "shared":true, - "sort":0, - "value_type":"individual" - }, - "type":"graph", - "xaxis":{ - "buckets":null, - "mode":"time", - "name":null, - "show":true, - "values":[ - - ] - }, - "yaxes":[ - { - "format":"percent", - "label":"", - "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 - } + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "topk(3,100 - ((node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes) / (node_memory_MemTotal_bytes)) * 100)", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "{{instance}}", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Time Series" + }, + { + "expr": "100 - (sum(node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes) / sum(node_memory_MemTotal_bytes)) * 100", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "avg", + "refId": "B", + "ts": {}, + "type": "Time Series" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Top 3 Memory Usages", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "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 + } + }, + { + "aliasColors": { + "avg": "rgb(158, 166, 155)" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Apptuit-PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 8, + "x": 16, + "y": 14 + }, + "id": 21, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "topk(3,(sum(node_disk_io_time_seconds_total{$global_tag_filter}) by (instance) / avg(sum(node_cpu_seconds_total{$global_tag_filter}) by (instance,cpu)) by (instance)) * 100)", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "{{instance}}", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Time Series" + }, + { + "expr": "avg((sum(node_disk_io_time_seconds_total{$global_tag_filter}) by (instance) / avg(sum(node_cpu_seconds_total{$global_tag_filter}) by (instance,cpu)) by (instance)) * 100)", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "avg", + "refId": "B", + "ts": {}, + "type": "Time Series" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Top 3 Disc Utilization", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "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 + } + }, + { + "aliasColors": { + "% Idle": "#E0F9D7", + "% Used": "#E24D42" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Apptuit-PromQL", + "fill": 1, + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 1, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "((sum(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval]))) / (count(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))) * 100", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "%idle", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Time Series" + }, + { + "expr": "100 - (((sum(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval]))) / (count(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))) * 100)", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "%used", + "refId": "B", + "ts": {}, + "type": "Time Series" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "CPU Usage", + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Apptuit-PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 30 + }, + "id": 3, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 1, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "((sum(node_memory_MemFree_bytes{$global_tag_filter}) + sum(node_memory_Buffers_bytes{$global_tag_filter}) + sum(node_memory_Cached_bytes{$global_tag_filter})) / (sum(node_memory_MemTotal_bytes{$global_tag_filter}))) * 100", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "Available %", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Time Series" + }, + { + "expr": "100 - ((sum(node_memory_MemFree_bytes{$global_tag_filter}) + sum(node_memory_Buffers_bytes{$global_tag_filter}) + sum(node_memory_Cached_bytes{$global_tag_filter})) / (sum(node_memory_MemTotal_bytes{$global_tag_filter}))) * 100", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "used %", + "refId": "B", + "ts": {}, + "type": "Time Series" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Memory", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "label": "", + "logBase": 1, + "max": "100", + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Apptuit-PromQL", + "decimals": 2, + "fill": 1, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 37 + }, + "id": 13, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "hideEmpty": true, + "hideZero": true, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sort": null, + "sortDesc": null, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "((node_filesystem_size_bytes{$global_tag_filter} - node_filesystem_free_bytes{$global_tag_filter}) / node_filesystem_size_bytes{$global_tag_filter}) * 100", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "{{mountpoint}}", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Time Series" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Disc Space", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Apptuit-PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 37 + }, + "id": 14, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 3, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "aggregator": "sum", + "downsampleAggregator": "avg", + "downsampleFillPolicy": "none", + "expr": "(node_disk_io_time_seconds_total{$global_tag_filter} / ignoring(device) group_left(instance) sum(node_cpu_seconds_total{$global_tag_filter}) without (cpu,mode)) * 100", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Time Series" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Disc Utilization", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "label": "", + "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 + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Apptuit-PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 44 + }, + "id": 15, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sort": "max", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "/^out/", + "transform": "negative-Y" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "irate(node_network_receive_bytes_total{$global_tag_filter}[$rolling_interval])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "in ({{instance}})", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Time Series" + }, + { + "expr": "irate(node_network_transmit_bytes_total{$global_tag_filter}[$rolling_interval])", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "out ({{instance}})", + "refId": "B", + "ts": {}, + "type": "Time Series" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Network IO", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "Bps", + "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 + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Apptuit-PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 51 + }, + "id": 16, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null as zero", + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "(sum(node_memory_SwapTotal_bytes{$global_tag_filter}) - sum(node_memory_SwapFree_bytes{$global_tag_filter}) / sum(node_memory_SwapFree_bytes{$global_tag_filter})) * 100", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "swap_usage_percent", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Time Series" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Swap Usage", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "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 + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Apptuit-PromQL", + "fill": 1, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 51 + }, + "id": 17, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "/^out/", + "transform": "negative-Y" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "node_vmstat_pswpin", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "in({{instance}})", + "metrics": [], + "refId": "A", + "ts": {}, + "type": "Time Series" + }, + { + "expr": "node_vmstat_pswpout", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "out({{instance}})", + "refId": "B", + "ts": {}, + "type": "Time Series" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Swap IO", + "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 + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "refresh": false, + "schemaVersion": 16, + "style": "dark", + "tags": [], + "templating": { + "list": [ { - "aliasColors":{ - - }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":"${DS_PROMQL}", - "fill":1, - "gridPos":{ - "h":7, - "w":24, - "x":0, - "y":44 - }, - "id":15, - "legend":{ - "alignAsTable":true, - "avg":false, - "current":false, - "max":true, - "min":true, - "rightSide":true, - "show":true, - "sort":"max", - "sortDesc":true, - "total":false, - "values":true - }, - "lines":true, - "linewidth":1, - "links":[ - - ], - "nullPointMode":"connected", - "percentage":false, - "pointradius":5, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - { - "alias":"/^out/", - "transform":"negative-Y" - } - ], - "spaceLength":10, - "stack":false, - "steppedLine":false, - "targets":[ - { - "expr":"irate(node_network_receive_bytes_total{$global_tag_filter}[$rolling_interval])", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"in ({{instance}})", - "metrics":[ - - ], - "refId":"A", - "ts":{}, - "type":"Time Series" - }, - { - "expr":"irate(node_network_transmit_bytes_total{$global_tag_filter}[$rolling_interval])", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"out ({{instance}})", - "refId":"B", - "ts":{}, - "type":"Time Series" - } - ], - "thresholds":[ - - ], - "timeFrom":null, - "timeRegions":[ - - ], - "timeShift":null, - "title":"Network IO", - "tooltip":{ - "shared":true, - "sort":0, - "value_type":"individual" - }, - "type":"graph", - "xaxis":{ - "buckets":null, - "mode":"time", - "name":null, - "show":true, - "values":[ - - ] - }, - "yaxes":[ - { - "format":"Bps", - "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 - } + "allValue": ".*", + "current": { + "text": "All", + "value": "$__all" + }, + "datasource": "Apptuit-PromQL", + "definition": "", + "hide": 0, + "includeAll": true, + "label": "host", + "multi": false, + "name": "host", + "options": [], + "query": "label_values(node_cpu_seconds_total,instance)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false }, { - "aliasColors":{ - - }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":"${DS_PROMQL}", - "fill":1, - "gridPos":{ - "h":7, - "w":12, - "x":0, - "y":51 - }, - "id":16, - "legend":{ - "avg":false, - "current":false, - "max":false, - "min":false, - "show":false, - "total":false, - "values":false - }, - "lines":true, - "linewidth":1, - "links":[ - - ], - "nullPointMode":"null as zero", - "percentage":false, - "pointradius":2, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - - ], - "spaceLength":10, - "stack":false, - "steppedLine":false, - "targets":[ - { - "expr":"(sum(node_memory_SwapTotal_bytes{$global_tag_filter}) - sum(node_memory_SwapFree_bytes{$global_tag_filter}) / sum(node_memory_SwapFree_bytes{$global_tag_filter})) * 100", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"swap_usage_percent", - "metrics":[ - - ], - "refId":"A", - "ts":{}, - "type":"Time Series" - } - ], - "thresholds":[ - - ], - "timeFrom":null, - "timeRegions":[ - - ], - "timeShift":null, - "title":"Swap Usage", - "tooltip":{ - "shared":true, - "sort":0, - "value_type":"individual" - }, - "type":"graph", - "xaxis":{ - "buckets":null, - "mode":"time", - "name":null, - "show":true, - "values":[ - - ] - }, - "yaxes":[ - { - "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 - } + "current": { + "text": "instance=~\".*\"", + "value": "instance=~\".*\"" + }, + "hide": 2, + "label": "global_tag_filter", + "name": "global_tag_filter", + "options": [ + { + "text": "instance=~\".*\"", + "value": "instance=~\".*\"" + } + ], + "query": "instance=~\".*\"", + "skipUrlSync": false, + "type": "constant" }, { - "aliasColors":{ - - }, - "bars":false, - "dashLength":10, - "dashes":false, - "datasource":"${DS_PROMQL}", - "fill":1, - "gridPos":{ - "h":7, - "w":12, - "x":12, - "y":51 - }, - "id":17, - "legend":{ - "alignAsTable":true, - "avg":false, - "current":false, - "max":true, - "min":true, - "rightSide":true, - "show":true, - "total":false, - "values":true - }, - "lines":true, - "linewidth":1, - "links":[ - - ], - "nullPointMode":"connected", - "percentage":false, - "pointradius":2, - "points":false, - "renderer":"flot", - "seriesOverrides":[ - { - "alias":"/^out/", - "transform":"negative-Y" - } - ], - "spaceLength":10, - "stack":false, - "steppedLine":false, - "targets":[ - { - "expr":"node_vmstat_pswpin", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"in({{instance}})", - "metrics":[ - - ], - "refId":"A", - "ts":{}, - "type":"Time Series" - }, - { - "expr":"node_vmstat_pswpout", - "format":"time_series", - "intervalFactor":1, - "legendFormat":"out({{instance}})", - "refId":"B", - "ts":{}, - "type":"Time Series" - } - ], - "thresholds":[ - - ], - "timeFrom":null, - "timeRegions":[ - - ], - "timeShift":null, - "title":"Swap IO", - "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 - } - ], - "yaxis":{ - "align":false, - "alignLevel":null - } + "current": { + "text": "10m", + "value": "10m" + }, + "hide": 2, + "label": "rolling_interval", + "name": "rolling_interval", + "options": [ + { + "text": "10m", + "value": "10m" + } + ], + "query": "10m", + "skipUrlSync": false, + "type": "constant" } - ], - "refresh":false, - "schemaVersion":16, - "style":"dark", - "tags":[ - - ], - "templating":{ - "list":[ - { - "allValue":".*", - "current":{ - - }, - "datasource":"${DS_PROMQL}", - "definition":"", - "hide":0, - "includeAll":true, - "label":"host", - "multi":false, - "name":"host", - "options":[ - - ], - "query":"label_values(node_cpu_seconds_total,instance)", - "refresh":1, - "regex":"", - "skipUrlSync":false, - "sort":0, - "tagValuesQuery":"", - "tags":[ - - ], - "tagsQuery":"", - "type":"query", - "useTags":false - }, - { - "current":{ - "value":"${VAR_GLOBAL_TAG_FILTER}", - "text":"${VAR_GLOBAL_TAG_FILTER}" - }, - "hide":2, - "label":"global_tag_filter", - "name":"global_tag_filter", - "options":[ - { - "value":"${VAR_GLOBAL_TAG_FILTER}", - "text":"${VAR_GLOBAL_TAG_FILTER}" - } - ], - "query":"${VAR_GLOBAL_TAG_FILTER}", - "skipUrlSync":false, - "type":"constant" - }, - { - "current":{ - "value":"${VAR_ROLLING_INTERVAL}", - "text":"${VAR_ROLLING_INTERVAL}" - }, - "hide":2, - "label":"rolling_interval", - "name":"rolling_interval", - "options":[ - { - "value":"${VAR_ROLLING_INTERVAL}", - "text":"${VAR_ROLLING_INTERVAL}" - } - ], - "query":"${VAR_ROLLING_INTERVAL}", - "skipUrlSync":false, - "type":"constant" - } - ] - }, - "time":{ - "from":"now-2d", - "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 OS Metrics", - "uid":"5yJpuYxir", - "version":79 + ] + }, + "time": { + "from": "now-2d", + "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 OS Metrics", + "uid": "5yJpuYxir", + "version": 2 } From 2f23b7811987406b1c374eb80c318aef4a849fbe Mon Sep 17 00:00:00 2001 From: hari9973 Date: Tue, 29 Jan 2019 18:30:21 +0530 Subject: [PATCH 09/13] Updated the Datasource --- Prometheus Memcache Metrics.json | 116 ++++++++++--------------------- 1 file changed, 35 insertions(+), 81 deletions(-) diff --git a/Prometheus Memcache Metrics.json b/Prometheus Memcache Metrics.json index f2f202b..7764b09 100644 --- a/Prometheus Memcache Metrics.json +++ b/Prometheus Memcache Metrics.json @@ -1,69 +1,12 @@ { - "__inputs": [ - { - "name": "DS_PROMQL", - "label": "PromQL", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - }, - { - "name": "DS_APPTUIT", - "label": "Apptuit", - "description": "", - "type": "datasource", - "pluginId": "apptuit", - "pluginName": "Apptuit" - }, - { - "name": "VAR_GLOBAL_TAG_FILTER", - "type": "constant", - "label": "global_tag_filter", - "value": "instance=~\".*\"", - "description": "" - } - ], - "__requires": [ - { - "type": "datasource", - "id": "apptuit", - "name": "Apptuit", - "version": "1.0.0" - }, - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "5.2.5" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "5.0.0" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "5.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "5.0.0" - } - ], "annotations": { "list": [] }, "editable": true, "gnetId": null, "graphTooltip": 0, - "id": null, - "iteration": 1548130092001, + "id": 538, + "iteration": 1548766250919, "links": [], "panels": [ { @@ -75,7 +18,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": "${DS_PROMQL}", + "datasource": "Apptuit-PromQL", "format": "none", "gauge": { "maxValue": 100, @@ -158,7 +101,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": "${DS_PROMQL}", + "datasource": "Apptuit-PromQL", "format": "none", "gauge": { "maxValue": 100, @@ -241,7 +184,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": "${DS_PROMQL}", + "datasource": "Apptuit-PromQL", "format": "percentunit", "gauge": { "maxValue": 100, @@ -324,7 +267,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": "${DS_PROMQL}", + "datasource": "Apptuit-PromQL", "format": "percentunit", "gauge": { "maxValue": 100, @@ -407,7 +350,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": "${DS_PROMQL}", + "datasource": "Apptuit-PromQL", "format": "percentunit", "gauge": { "maxValue": 100, @@ -490,7 +433,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": "${DS_PROMQL}", + "datasource": "Apptuit-PromQL", "format": "none", "gauge": { "maxValue": 100, @@ -569,7 +512,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${DS_PROMQL}", + "datasource": "Apptuit-PromQL", "fill": 1, "gridPos": { "h": 7, @@ -613,6 +556,7 @@ ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, "title": "Hit Ratio", "tooltip": { @@ -656,7 +600,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${DS_PROMQL}", + "datasource": "Apptuit-PromQL", "fill": 1, "gridPos": { "h": 7, @@ -700,6 +644,7 @@ ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, "title": "Get/Set Ratio", "tooltip": { @@ -745,7 +690,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${DS_PROMQL}", + "datasource": "Apptuit-PromQL", "fill": 1, "gridPos": { "h": 7, @@ -801,6 +746,7 @@ ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, "title": "Memory Usage", "tooltip": { @@ -844,7 +790,7 @@ "bars": true, "dashLength": 10, "dashes": false, - "datasource": "${DS_PROMQL}", + "datasource": "Apptuit-PromQL", "fill": 1, "gridPos": { "h": 7, @@ -895,6 +841,7 @@ ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, "title": "Network IO", "tooltip": { @@ -938,7 +885,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${DS_PROMQL}", + "datasource": "Apptuit-PromQL", "fill": 1, "gridPos": { "h": 7, @@ -982,6 +929,7 @@ ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, "title": "Eviction Rate", "tooltip": { @@ -1027,7 +975,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${DS_PROMQL}", + "datasource": "Apptuit-PromQL", "fill": 1, "gridPos": { "h": 7, @@ -1095,6 +1043,7 @@ ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, "title": "Connections", "tooltip": { @@ -1141,7 +1090,7 @@ "bars": true, "dashLength": 10, "dashes": false, - "datasource": "${DS_PROMQL}", + "datasource": "Apptuit-PromQL", "fill": 1, "gridPos": { "h": 7, @@ -1185,6 +1134,7 @@ ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, "title": "Memcached CPU Usage", "tooltip": { @@ -1232,15 +1182,19 @@ "list": [ { "allValue": ".*", - "current": {}, - "datasource": "${DS_APPTUIT}", + "current": { + "text": "All", + "value": "$__all" + }, + "datasource": "Apptuit-PromQL", + "definition": "", "hide": 0, "includeAll": true, "label": "host", "multi": false, "name": "host", "options": [], - "query": "label_values(memcached_connections_total,instance)", + "query": "", "refresh": 1, "regex": "", "skipUrlSync": false, @@ -1253,19 +1207,19 @@ }, { "current": { - "value": "${VAR_GLOBAL_TAG_FILTER}", - "text": "${VAR_GLOBAL_TAG_FILTER}" + "text": "instance=~\".*\"", + "value": "instance=~\".*\"" }, "hide": 2, "label": "global_tag_filter", "name": "global_tag_filter", "options": [ { - "value": "${VAR_GLOBAL_TAG_FILTER}", - "text": "${VAR_GLOBAL_TAG_FILTER}" + "text": "instance=~\".*\"", + "value": "instance=~\".*\"" } ], - "query": "${VAR_GLOBAL_TAG_FILTER}", + "query": "instance=~\".*\"", "skipUrlSync": false, "type": "constant" } @@ -1303,5 +1257,5 @@ "timezone": "", "title": "Prometheus Memcache Metrics", "uid": "kTd5uLxmG", - "version": 8 + "version": 2 } From 6332a0914e81025ec82ead611a82cb2346bc3662 Mon Sep 17 00:00:00 2001 From: hari9973 Date: Tue, 29 Jan 2019 18:49:28 +0530 Subject: [PATCH 10/13] modified the datasource and added input object --- Prometheus OS Metrics.json | 127 ++++++++++++++++++++++++++----------- 1 file changed, 90 insertions(+), 37 deletions(-) diff --git a/Prometheus OS Metrics.json b/Prometheus OS Metrics.json index d5de707..518c252 100644 --- a/Prometheus OS Metrics.json +++ b/Prometheus OS Metrics.json @@ -1,12 +1,68 @@ { + "__inputs": [ + { + "name": "DS_APPTUIT-PROMQL", + "label": "Apptuit-PromQL", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + }, + { + "name": "VAR_GLOBAL_TAG_FILTER", + "type": "constant", + "label": "global_tag_filter", + "value": "instance=~\".*\"", + "description": "" + }, + { + "name": "VAR_ROLLING_INTERVAL", + "type": "constant", + "label": "rolling_interval", + "value": "10m", + "description": "" + } + ], + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "5.4.3" + }, + { + "type": "panel", + "id": "graph", + "name": "Graph", + "version": "5.0.0" + }, + { + "type": "panel", + "id": "heatmap", + "name": "Heatmap", + "version": "5.0.0" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "5.0.0" + }, + { + "type": "panel", + "id": "singlestat", + "name": "Singlestat", + "version": "5.0.0" + } + ], "annotations": { "list": [] }, "editable": true, "gnetId": null, "graphTooltip": 0, - "id": 537, - "iteration": 1548766449165, + "id": null, + "iteration": 1548766449166, "links": [], "panels": [ { @@ -18,7 +74,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "format": "none", "gauge": { "maxValue": 100, @@ -104,7 +160,7 @@ "mode": "spectrum" }, "dataFormat": "timeseries", - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "gridPos": { "h": 7, "w": 4, @@ -163,7 +219,7 @@ "mode": "spectrum" }, "dataFormat": "timeseries", - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "description": "https://www.robustperception.io/understanding-machine-cpu-usage", "gridPos": { "h": 7, @@ -223,7 +279,7 @@ "mode": "spectrum" }, "dataFormat": "timeseries", - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "gridPos": { "h": 7, "w": 4, @@ -282,7 +338,7 @@ "mode": "spectrum" }, "dataFormat": "timeseries", - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "gridPos": { "h": 7, "w": 4, @@ -342,7 +398,7 @@ "mode": "spectrum" }, "dataFormat": "timeseries", - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "gridPos": { "h": 7, "w": 4, @@ -399,7 +455,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -483,7 +539,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -569,7 +625,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -655,7 +711,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -743,7 +799,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -845,7 +901,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -944,7 +1000,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -1044,7 +1100,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 9, @@ -1143,7 +1199,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -1242,7 +1298,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "decimals": 2, "fill": 1, "gridPos": { @@ -1337,7 +1393,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -1429,7 +1485,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -1535,7 +1591,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -1623,7 +1679,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -1731,11 +1787,8 @@ "list": [ { "allValue": ".*", - "current": { - "text": "All", - "value": "$__all" - }, - "datasource": "Apptuit-PromQL", + "current": {}, + "datasource": "${DS_APPTUIT-PROMQL}", "definition": "", "hide": 0, "includeAll": true, @@ -1756,37 +1809,37 @@ }, { "current": { - "text": "instance=~\".*\"", - "value": "instance=~\".*\"" + "value": "${VAR_GLOBAL_TAG_FILTER}", + "text": "${VAR_GLOBAL_TAG_FILTER}" }, "hide": 2, "label": "global_tag_filter", "name": "global_tag_filter", "options": [ { - "text": "instance=~\".*\"", - "value": "instance=~\".*\"" + "value": "${VAR_GLOBAL_TAG_FILTER}", + "text": "${VAR_GLOBAL_TAG_FILTER}" } ], - "query": "instance=~\".*\"", + "query": "${VAR_GLOBAL_TAG_FILTER}", "skipUrlSync": false, "type": "constant" }, { "current": { - "text": "10m", - "value": "10m" + "value": "${VAR_ROLLING_INTERVAL}", + "text": "${VAR_ROLLING_INTERVAL}" }, "hide": 2, "label": "rolling_interval", "name": "rolling_interval", "options": [ { - "text": "10m", - "value": "10m" + "value": "${VAR_ROLLING_INTERVAL}", + "text": "${VAR_ROLLING_INTERVAL}" } ], - "query": "10m", + "query": "${VAR_ROLLING_INTERVAL}", "skipUrlSync": false, "type": "constant" } From 262b170e8d392622b6788e4abf3a0ea0e038820e Mon Sep 17 00:00:00 2001 From: hari9973 Date: Tue, 29 Jan 2019 18:50:32 +0530 Subject: [PATCH 11/13] modified datasource and added input object --- Prometheus Memcache Metrics.json | 90 +++++++++++++++++++++++--------- 1 file changed, 65 insertions(+), 25 deletions(-) diff --git a/Prometheus Memcache Metrics.json b/Prometheus Memcache Metrics.json index 7764b09..df1206e 100644 --- a/Prometheus Memcache Metrics.json +++ b/Prometheus Memcache Metrics.json @@ -1,12 +1,55 @@ { + "__inputs": [ + { + "name": "DS_APPTUIT-PROMQL", + "label": "Apptuit-PromQL", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + }, + { + "name": "VAR_GLOBAL_TAG_FILTER", + "type": "constant", + "label": "global_tag_filter", + "value": "instance=~\".*\"", + "description": "" + } + ], + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "5.4.3" + }, + { + "type": "panel", + "id": "graph", + "name": "Graph", + "version": "5.0.0" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "5.0.0" + }, + { + "type": "panel", + "id": "singlestat", + "name": "Singlestat", + "version": "5.0.0" + } + ], "annotations": { "list": [] }, "editable": true, "gnetId": null, "graphTooltip": 0, - "id": 538, - "iteration": 1548766250919, + "id": null, + "iteration": 1548766250920, "links": [], "panels": [ { @@ -18,7 +61,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "format": "none", "gauge": { "maxValue": 100, @@ -101,7 +144,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "format": "none", "gauge": { "maxValue": 100, @@ -184,7 +227,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "format": "percentunit", "gauge": { "maxValue": 100, @@ -267,7 +310,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "format": "percentunit", "gauge": { "maxValue": 100, @@ -350,7 +393,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "format": "percentunit", "gauge": { "maxValue": 100, @@ -433,7 +476,7 @@ "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "format": "none", "gauge": { "maxValue": 100, @@ -512,7 +555,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -600,7 +643,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -690,7 +733,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -790,7 +833,7 @@ "bars": true, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -885,7 +928,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -975,7 +1018,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -1090,7 +1133,7 @@ "bars": true, "dashLength": 10, "dashes": false, - "datasource": "Apptuit-PromQL", + "datasource": "${DS_APPTUIT-PROMQL}", "fill": 1, "gridPos": { "h": 7, @@ -1182,11 +1225,8 @@ "list": [ { "allValue": ".*", - "current": { - "text": "All", - "value": "$__all" - }, - "datasource": "Apptuit-PromQL", + "current": {}, + "datasource": "${DS_APPTUIT-PROMQL}", "definition": "", "hide": 0, "includeAll": true, @@ -1207,19 +1247,19 @@ }, { "current": { - "text": "instance=~\".*\"", - "value": "instance=~\".*\"" + "value": "${VAR_GLOBAL_TAG_FILTER}", + "text": "${VAR_GLOBAL_TAG_FILTER}" }, "hide": 2, "label": "global_tag_filter", "name": "global_tag_filter", "options": [ { - "text": "instance=~\".*\"", - "value": "instance=~\".*\"" + "value": "${VAR_GLOBAL_TAG_FILTER}", + "text": "${VAR_GLOBAL_TAG_FILTER}" } ], - "query": "instance=~\".*\"", + "query": "${VAR_GLOBAL_TAG_FILTER}", "skipUrlSync": false, "type": "constant" } From 8978c8893380588579d45987246a896931d00ec9 Mon Sep 17 00:00:00 2001 From: hari9973 Date: Mon, 4 Feb 2019 09:23:34 +0530 Subject: [PATCH 12/13] changed the disk panals query --- Prometheus OS Metrics.json | 109 ++++++++++++++++++++++--------------- 1 file changed, 64 insertions(+), 45 deletions(-) diff --git a/Prometheus OS Metrics.json b/Prometheus OS Metrics.json index 518c252..eb7ef65 100644 --- a/Prometheus OS Metrics.json +++ b/Prometheus OS Metrics.json @@ -9,17 +9,17 @@ "pluginName": "Prometheus" }, { - "name": "VAR_GLOBAL_TAG_FILTER", + "name": "VAR_SCRAPE_FREQUENCY", "type": "constant", - "label": "global_tag_filter", - "value": "instance=~\".*\"", + "label": "scrape_frequency", + "value": "2m", "description": "" }, { - "name": "VAR_ROLLING_INTERVAL", + "name": "VAR_GLOBAL_TAG_FILTER", "type": "constant", - "label": "rolling_interval", - "value": "10m", + "label": "global_tag_filter", + "value": "instance=~\".*\"", "description": "" } ], @@ -62,7 +62,7 @@ "gnetId": null, "graphTooltip": 0, "id": null, - "iteration": 1548766449166, + "iteration": 1549251680367, "links": [], "panels": [ { @@ -90,7 +90,7 @@ "y": 0 }, "id": 2, - "interval": null, + "interval": "$scrape_frequency", "links": [], "mappingType": 1, "mappingTypes": [ @@ -170,6 +170,7 @@ "heatmap": {}, "highlightCards": true, "id": 5, + "interval": "$scrape_frequency", "legend": { "show": false }, @@ -230,13 +231,14 @@ "heatmap": {}, "highlightCards": true, "id": 4, + "interval": "$scrape_frequency", "legend": { "show": false }, "links": [], "targets": [ { - "expr": "100 - (avg by (instance) (100 * irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))", + "expr": "100 - (100 * irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$__interval]))", "format": "time_series", "intervalFactor": 1, "refId": "A" @@ -289,6 +291,7 @@ "heatmap": {}, "highlightCards": true, "id": 7, + "interval": "$scrape_frequency", "legend": { "show": false }, @@ -348,6 +351,7 @@ "heatmap": {}, "highlightCards": true, "id": 8, + "interval": "$scrape_frequency", "legend": { "show": false }, @@ -408,19 +412,20 @@ "heatmap": {}, "highlightCards": true, "id": 6, + "interval": "$scrape_frequency", "legend": { "show": false }, "links": [], "targets": [ { - "expr": "irate(node_network_receive_bytes_total{$global_tag_filter}[$rolling_interval])", + "expr": "irate(node_network_receive_bytes_total{$global_tag_filter}[$__interval])", "format": "time_series", "intervalFactor": 1, "refId": "A" }, { - "expr": "0 - irate(node_network_transmit_bytes_total{$global_tag_filter}[$rolling_interval])", + "expr": "0 - irate(node_network_transmit_bytes_total{$global_tag_filter}[$__interval])", "format": "time_series", "intervalFactor": 1, "refId": "B" @@ -464,6 +469,7 @@ "y": 7 }, "id": 9, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -548,6 +554,7 @@ "y": 7 }, "id": 10, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -571,7 +578,7 @@ "steppedLine": false, "targets": [ { - "expr": "irate(node_forks_total[$rolling_interval])", + "expr": "irate(node_forks_total[$__interval])", "format": "time_series", "intervalFactor": 1, "refId": "A", @@ -634,6 +641,7 @@ "y": 7 }, "id": 11, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -657,7 +665,7 @@ "steppedLine": false, "targets": [ { - "expr": "irate(node_context_switches_total{$global_tag_filter}[$rolling_interval])", + "expr": "irate(node_context_switches_total{$global_tag_filter}[$__interval])", "format": "time_series", "intervalFactor": 1, "refId": "A", @@ -720,6 +728,7 @@ "y": 7 }, "id": 12, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -743,7 +752,7 @@ "steppedLine": false, "targets": [ { - "expr": "irate(node_intr_total{$global_tag_filter}[$rolling_interval])", + "expr": "irate(node_intr_total{$global_tag_filter}[$__interval])", "format": "time_series", "intervalFactor": 1, "refId": "A", @@ -808,6 +817,7 @@ "y": 14 }, "id": 19, + "interval": "$scrape_frequency", "legend": { "alignAsTable": false, "avg": false, @@ -835,7 +845,7 @@ "steppedLine": false, "targets": [ { - "expr": "100 - (sum(irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval])) / count(irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval])) * 100) ", + "expr": "100 - (sum(irate(node_cpu_seconds_total{mode='idle'}[$__interval])) / count(irate(node_cpu_seconds_total{mode='idle'}[$__interval])) * 100)", "format": "time_series", "intervalFactor": 1, "legendFormat": "avg", @@ -844,7 +854,7 @@ "type": "Time Series" }, { - "expr": "topk(3,100 - irate(node_cpu_seconds_total{mode='idle'}[$rolling_interval]) *100)", + "expr": "topk(3,100 - irate(node_cpu_seconds_total{mode='idle'}[$__interval]) *100)", "format": "time_series", "intervalFactor": 1, "legendFormat": "{{instance}}", @@ -910,6 +920,7 @@ "y": 14 }, "id": 20, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -1009,6 +1020,7 @@ "y": 14 }, "id": 21, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -1032,17 +1044,17 @@ "steppedLine": false, "targets": [ { - "expr": "topk(3,(sum(node_disk_io_time_seconds_total{$global_tag_filter}) by (instance) / avg(sum(node_cpu_seconds_total{$global_tag_filter}) by (instance,cpu)) by (instance)) * 100)", + "expr": "topk(3,irate(node_disk_io_time_seconds_total{$global_tag_filter}[$__interval]))", "format": "time_series", "intervalFactor": 1, - "legendFormat": "{{instance}}", + "legendFormat": "{{instance}}-{{node_name}}", "metrics": [], "refId": "A", "ts": {}, "type": "Time Series" }, { - "expr": "avg((sum(node_disk_io_time_seconds_total{$global_tag_filter}) by (instance) / avg(sum(node_cpu_seconds_total{$global_tag_filter}) by (instance,cpu)) by (instance)) * 100)", + "expr": "avg(irate(node_disk_io_time_seconds_total{$global_tag_filter}[$__interval]))", "format": "time_series", "intervalFactor": 1, "legendFormat": "avg", @@ -1071,7 +1083,7 @@ }, "yaxes": [ { - "format": "percent", + "format": "percentunit", "label": null, "logBase": 1, "max": null, @@ -1109,6 +1121,7 @@ "y": 21 }, "id": 1, + "interval": "$scrape_frequency", "legend": { "alignAsTable": true, "avg": false, @@ -1134,7 +1147,7 @@ "steppedLine": false, "targets": [ { - "expr": "((sum(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval]))) / (count(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))) * 100", + "expr": "((sum(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$__interval]))) / (count(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$__interval])))) * 100", "format": "time_series", "intervalFactor": 1, "legendFormat": "%idle", @@ -1144,7 +1157,7 @@ "type": "Time Series" }, { - "expr": "100 - (((sum(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval]))) / (count(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$rolling_interval])))) * 100)", + "expr": "100 - (((sum(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$__interval]))) / (count(irate(node_cpu_seconds_total{mode='idle',$global_tag_filter}[$__interval])))) * 100)", "format": "time_series", "intervalFactor": 1, "legendFormat": "%used", @@ -1208,6 +1221,7 @@ "y": 30 }, "id": 3, + "interval": "$scrape_frequency", "legend": { "alignAsTable": true, "avg": false, @@ -1308,6 +1322,7 @@ "y": 37 }, "id": 13, + "interval": "$scrape_frequency", "legend": { "alignAsTable": true, "avg": false, @@ -1402,6 +1417,7 @@ "y": 37 }, "id": 14, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -1428,7 +1444,7 @@ "aggregator": "sum", "downsampleAggregator": "avg", "downsampleFillPolicy": "none", - "expr": "(node_disk_io_time_seconds_total{$global_tag_filter} / ignoring(device) group_left(instance) sum(node_cpu_seconds_total{$global_tag_filter}) without (cpu,mode)) * 100", + "expr": "irate(node_disk_io_time_seconds_total{$global_tag_filter}[$__interval])", "format": "time_series", "interval": "", "intervalFactor": 1, @@ -1459,7 +1475,7 @@ }, "yaxes": [ { - "format": "percent", + "format": "percentunit", "label": "", "logBase": 1, "max": null, @@ -1494,6 +1510,7 @@ "y": 44 }, "id": 15, + "interval": "$scrape_frequency", "legend": { "alignAsTable": true, "avg": false, @@ -1526,7 +1543,7 @@ "steppedLine": false, "targets": [ { - "expr": "irate(node_network_receive_bytes_total{$global_tag_filter}[$rolling_interval])", + "expr": "irate(node_network_receive_bytes_total{$global_tag_filter}[$__interval])", "format": "time_series", "intervalFactor": 1, "legendFormat": "in ({{instance}})", @@ -1536,7 +1553,7 @@ "type": "Time Series" }, { - "expr": "irate(node_network_transmit_bytes_total{$global_tag_filter}[$rolling_interval])", + "expr": "irate(node_network_transmit_bytes_total{$global_tag_filter}[$__interval])", "format": "time_series", "intervalFactor": 1, "legendFormat": "out ({{instance}})", @@ -1600,6 +1617,7 @@ "y": 51 }, "id": 16, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -1688,6 +1706,7 @@ "y": 51 }, "id": 17, + "interval": "$scrape_frequency", "legend": { "alignAsTable": true, "avg": false, @@ -1785,6 +1804,24 @@ "tags": [], "templating": { "list": [ + { + "current": { + "value": "${VAR_SCRAPE_FREQUENCY}", + "text": "${VAR_SCRAPE_FREQUENCY}" + }, + "hide": 0, + "label": null, + "name": "scrape_frequency", + "options": [ + { + "value": "${VAR_SCRAPE_FREQUENCY}", + "text": "${VAR_SCRAPE_FREQUENCY}" + } + ], + "query": "${VAR_SCRAPE_FREQUENCY}", + "skipUrlSync": false, + "type": "constant" + }, { "allValue": ".*", "current": {}, @@ -1824,24 +1861,6 @@ "query": "${VAR_GLOBAL_TAG_FILTER}", "skipUrlSync": false, "type": "constant" - }, - { - "current": { - "value": "${VAR_ROLLING_INTERVAL}", - "text": "${VAR_ROLLING_INTERVAL}" - }, - "hide": 2, - "label": "rolling_interval", - "name": "rolling_interval", - "options": [ - { - "value": "${VAR_ROLLING_INTERVAL}", - "text": "${VAR_ROLLING_INTERVAL}" - } - ], - "query": "${VAR_ROLLING_INTERVAL}", - "skipUrlSync": false, - "type": "constant" } ] }, @@ -1877,5 +1896,5 @@ "timezone": "", "title": "Prometheus OS Metrics", "uid": "5yJpuYxir", - "version": 2 + "version": 4 } From 7a43c53e6e8ed61dfa5e3959b3846345fa5efdef Mon Sep 17 00:00:00 2001 From: hari9973 Date: Mon, 4 Feb 2019 09:25:45 +0530 Subject: [PATCH 13/13] added scrape frequency --- Prometheus Memcache Metrics.json | 50 ++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 9 deletions(-) diff --git a/Prometheus Memcache Metrics.json b/Prometheus Memcache Metrics.json index df1206e..a562707 100644 --- a/Prometheus Memcache Metrics.json +++ b/Prometheus Memcache Metrics.json @@ -8,6 +8,13 @@ "pluginId": "prometheus", "pluginName": "Prometheus" }, + { + "name": "VAR_SCRAPE_FREQUENCY", + "type": "constant", + "label": "scrape_frequency", + "value": "2m", + "description": "" + }, { "name": "VAR_GLOBAL_TAG_FILTER", "type": "constant", @@ -49,7 +56,7 @@ "gnetId": null, "graphTooltip": 0, "id": null, - "iteration": 1548766250920, + "iteration": 1549252450229, "links": [], "panels": [ { @@ -77,7 +84,7 @@ "y": 0 }, "id": 2, - "interval": null, + "interval": "$scrape_frequency", "links": [], "mappingType": 1, "mappingTypes": [ @@ -160,7 +167,7 @@ "y": 0 }, "id": 3, - "interval": null, + "interval": "$scrape_frequency", "links": [], "mappingType": 1, "mappingTypes": [ @@ -243,7 +250,7 @@ "y": 0 }, "id": 6, - "interval": null, + "interval": "$scrape_frequency", "links": [], "mappingType": 1, "mappingTypes": [ @@ -326,7 +333,7 @@ "y": 0 }, "id": 4, - "interval": null, + "interval": "$scrape_frequency", "links": [], "mappingType": 1, "mappingTypes": [ @@ -409,7 +416,7 @@ "y": 0 }, "id": 9, - "interval": null, + "interval": "$scrape_frequency", "links": [], "mappingType": 1, "mappingTypes": [ @@ -492,7 +499,7 @@ "y": 0 }, "id": 11, - "interval": null, + "interval": "$scrape_frequency", "links": [], "mappingType": 1, "mappingTypes": [ @@ -564,6 +571,7 @@ "y": 7 }, "id": 1, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -652,6 +660,7 @@ "y": 14 }, "id": 5, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -742,6 +751,7 @@ "y": 21 }, "id": 7, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -842,6 +852,7 @@ "y": 28 }, "id": 8, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -937,6 +948,7 @@ "y": 35 }, "id": 10, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -1027,6 +1039,7 @@ "y": 42 }, "id": 12, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -1142,6 +1155,7 @@ "y": 49 }, "id": 13, + "interval": "$scrape_frequency", "legend": { "avg": false, "current": false, @@ -1223,6 +1237,24 @@ "tags": [], "templating": { "list": [ + { + "current": { + "value": "${VAR_SCRAPE_FREQUENCY}", + "text": "${VAR_SCRAPE_FREQUENCY}" + }, + "hide": 0, + "label": null, + "name": "scrape_frequency", + "options": [ + { + "value": "${VAR_SCRAPE_FREQUENCY}", + "text": "${VAR_SCRAPE_FREQUENCY}" + } + ], + "query": "${VAR_SCRAPE_FREQUENCY}", + "skipUrlSync": false, + "type": "constant" + }, { "allValue": ".*", "current": {}, @@ -1266,7 +1298,7 @@ ] }, "time": { - "from": "now-1h", + "from": "now-2d", "to": "now" }, "timepicker": { @@ -1297,5 +1329,5 @@ "timezone": "", "title": "Prometheus Memcache Metrics", "uid": "kTd5uLxmG", - "version": 2 + "version": 4 }