From 71cf0c374d2a6b9b7c68655daebb8b0a734df6ae Mon Sep 17 00:00:00 2001 From: Antoine THEBAUD Date: Thu, 21 Sep 2023 16:18:42 +0200 Subject: [PATCH] WIP add demo resources --- .../dashboards/Showcase/GaugeChartPanel.json | 69 + .../dashboards/Showcase/MarkdownPanel.json | 165 + .../dashboards/Showcase/StatChartPanel.json | 179 + .../Showcase/TimeSeriesChartPanel.json | 268 + .../dashboards/perses/NodeExporterFull.json | 7638 +++++++++++++++++ .../globaldatasources/PrometheusLocal.json | 22 + local_db_demo/globalvariables/job.json | 28 + local_db_demo/projects/Showcase.json | 6 + 8 files changed, 8375 insertions(+) create mode 100644 local_db_demo/dashboards/Showcase/GaugeChartPanel.json create mode 100644 local_db_demo/dashboards/Showcase/MarkdownPanel.json create mode 100644 local_db_demo/dashboards/Showcase/StatChartPanel.json create mode 100644 local_db_demo/dashboards/Showcase/TimeSeriesChartPanel.json create mode 100644 local_db_demo/dashboards/perses/NodeExporterFull.json create mode 100644 local_db_demo/globaldatasources/PrometheusLocal.json create mode 100644 local_db_demo/globalvariables/job.json create mode 100644 local_db_demo/projects/Showcase.json diff --git a/local_db_demo/dashboards/Showcase/GaugeChartPanel.json b/local_db_demo/dashboards/Showcase/GaugeChartPanel.json new file mode 100644 index 0000000..ff4cfcb --- /dev/null +++ b/local_db_demo/dashboards/Showcase/GaugeChartPanel.json @@ -0,0 +1,69 @@ +{ + "kind": "Dashboard", + "metadata": { + "name": "GaugeChartPanel", + "createdAt": "2022-12-21T00:00:00Z", + "updatedAt": "2023-01-26T17:29:46.991965Z", + "version": 5, + "project": "Showcase" + }, + "spec": { + "duration": "6h", + "panels": { + "SingleGauge": { + "kind": "Panel", + "spec": { + "display": { + "name": "Single Gauge", + "description": "Gauge chart with a single gauge" + }, + "plugin": { + "kind": "GaugeChart", + "spec": { + "calculation": "mean", + "thresholds": { + "steps": [{ + "value": 20 + }] + }, + "format": { + "unit": "percent" + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "100 - ((node_memory_MemAvailable_bytes{env=\"demo\", instance=\"demo.do.prometheus.io:9100\"} * 100) / node_memory_MemTotal_bytes{env=\"demo\", instance=\"demo.do.prometheus.io:9100\"})" + } + } + } + }] + } + } + }, + "layouts": [{ + "kind": "Grid", + "spec": { + "display": { + "title": "Row 1", + "collapse": { + "open": true + } + }, + "items": [{ + "x": 0, + "y": 0, + "width": 9, + "height": 7, + "content": { + "$ref": "#/spec/panels/SingleGauge" + } + }] + } + }] + } +} diff --git a/local_db_demo/dashboards/Showcase/MarkdownPanel.json b/local_db_demo/dashboards/Showcase/MarkdownPanel.json new file mode 100644 index 0000000..809703f --- /dev/null +++ b/local_db_demo/dashboards/Showcase/MarkdownPanel.json @@ -0,0 +1,165 @@ +{ + "kind": "Dashboard", + "metadata": { + "name": "MarkdownPanel", + "createdAt": "2022-12-21T00:00:00Z", + "updatedAt": "2023-01-26T20:03:02.724739Z", + "version": 3, + "project": "Showcase" + }, + "spec": { + "duration": "6h", + "panels": { + "Code": { + "kind": "Panel", + "spec": { + "display": { + "name": "Code", + "description": "Markdown code formatting" + }, + "plugin": { + "kind": "Markdown", + "spec": { + "text": "`Inline code` with backticks\n\n```\n# code block\nprint '3 backticks or'\nprint 'indent 4 spaces'\n```" + } + } + } + }, + "Headings": { + "kind": "Panel", + "spec": { + "display": { + "name": "Headings", + "description": "Markdown headings" + }, + "plugin": { + "kind": "Markdown", + "spec": { + "text": "# First header\n\nFirst header\n=========\n\n## Second header\n\nSecond header\n---------\n\n### Third header\n\n#### Fourth header" + } + } + } + }, + "Links": { + "kind": "Panel", + "spec": { + "display": { + "name": "Links", + "description": "Markdown links" + }, + "plugin": { + "kind": "Markdown", + "spec": { + "text": "\n[Link](http://a.com)\n\n[Link][1]\n\n[1]: http://b.org" + } + } + } + }, + "Lists": { + "kind": "Panel", + "spec": { + "display": { + "name": "Lists", + "description": "Markdown lists" + }, + "plugin": { + "kind": "Markdown", + "spec": { + "text": "* List\n* List\n* List\n\n- List\n- List\n- List\n\n1. One\n2. Two\n3. Three\n\n1) One\n2) Two\n3) Three" + } + } + } + }, + "Tables": { + "kind": "Panel", + "spec": { + "display": { + "name": "Tables", + "description": "Markdown table" + }, + "plugin": { + "kind": "Markdown", + "spec": { + "text": "| Name | Data |\n| -- | -- |\n| Row 1 | Hi |\n| Row 2 | Hi |" + } + } + } + }, + "Text": { + "kind": "Panel", + "spec": { + "display": { + "name": "Text", + "description": "Markdown text formatting" + }, + "plugin": { + "kind": "Markdown", + "spec": { + "text": "Unformatted\n\n*Italic*\n\n_Italic_\n\n**Bold**\n\n__Bold__\n\n> Blockquote\n\n---\n\n***" + } + } + } + } + }, + "layouts": [{ + "kind": "Grid", + "spec": { + "display": { + "title": "Row 1", + "collapse": { + "open": true + } + }, + "items": [{ + "x": 0, + "y": 0, + "width": 8, + "height": 10, + "content": { + "$ref": "#/spec/panels/Headings" + } + }, { + "x": 8, + "y": 0, + "width": 8, + "height": 10, + "content": { + "$ref": "#/spec/panels/Text" + } + }, { + "x": 0, + "y": 10, + "width": 8, + "height": 10, + "content": { + "$ref": "#/spec/panels/Code" + } + }, { + "x": 16, + "y": 10, + "width": 8, + "height": 10, + "content": { + "$ref": "#/spec/panels/Tables" + } + }, { + "x": 8, + "y": 10, + "width": 8, + "height": 10, + "content": { + "$ref": "#/spec/panels/Lists" + } + }, { + "x": 16, + "y": 0, + "width": 8, + "height": 10, + "content": { + "$ref": "#/spec/panels/Links" + } + }] + } + }] + } +} diff --git a/local_db_demo/dashboards/Showcase/StatChartPanel.json b/local_db_demo/dashboards/Showcase/StatChartPanel.json new file mode 100644 index 0000000..d76d6cc --- /dev/null +++ b/local_db_demo/dashboards/Showcase/StatChartPanel.json @@ -0,0 +1,179 @@ +{ + "kind": "Dashboard", + "metadata": { + "name": "StatChartPanel", + "createdAt": "2022-12-21T00:00:00Z", + "updatedAt": "2023-06-09T17:57:49.291171Z", + "version": 13, + "project": "Showcase" + }, + "spec": { + "panels": { + "SimpleStat": { + "kind": "Panel", + "spec": { + "display": { + "name": "Multi-Series Stat with Sparkline" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "mean", + "sparkline": {}, + "format": { + "shortValues": false, + "unit": "decimal" + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "avg without (cpu)(rate(node_cpu_seconds_total{job=\"node\",instance=~\"demo.do.prometheus.io:9100\",mode!=\"nice\",mode!=\"steal\",mode!=\"irq\"}[5m]))", + "seriesNameFormat": "{{mode}} mode " + } + } + } + }] + } + }, + "SimpleStat-1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Multi-Series Stat without Sparkline" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "mean", + "format": { + "shortValues": false, + "decimalPlaces": 2, + "unit": "decimal" + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "avg without (cpu)(rate(node_cpu_seconds_total{job=\"node\",instance=~\"demo.do.prometheus.io:9100\",mode!=\"nice\",mode!=\"steal\",mode!=\"irq\"}[5m]))", + "seriesNameFormat": "{{mode}} mode " + } + } + } + }] + } + }, + "SingleStat": { + "kind": "Panel", + "spec": { + "display": { + "name": "Single Stat with Sparkline" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "sparkline": {}, + "format": { + "unit": "decimal" + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "avg(node_load15{job=\"node\",instance=~\"demo.do.prometheus.io:9100\"}) / count(count(node_cpu_seconds_total{job=\"node\",instance=~\"demo.do.prometheus.io:9100\"}) by (cpu)) * 100" + } + } + } + }] + } + }, + "SingleStat-1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Single Stat without Sparkline" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "decimal" + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "query": "avg(node_load15{job=\"node\",instance=~\"demo.do.prometheus.io:9100\"}) / count(count(node_cpu_seconds_total{job=\"node\",instance=~\"demo.do.prometheus.io:9100\"}) by (cpu)) * 100" + } + } + } + }] + } + } + }, + "layouts": [{ + "kind": "Grid", + "spec": { + "display": { + "title": "Row 1", + "collapse": { + "open": true + } + }, + "items": [{ + "x": 0, + "y": 0, + "width": 5, + "height": 7, + "content": { + "$ref": "#/spec/panels/SingleStat" + } + }, { + "x": 5, + "y": 0, + "width": 5, + "height": 7, + "content": { + "$ref": "#/spec/panels/SingleStat-1" + } + }, { + "x": 0, + "y": 7, + "width": 24, + "height": 8, + "content": { + "$ref": "#/spec/panels/SimpleStat" + } + }, { + "x": 0, + "y": 15, + "width": 24, + "height": 8, + "content": { + "$ref": "#/spec/panels/SimpleStat-1" + } + }] + } + }], + "variables": [], + "duration": "6h" + } +} diff --git a/local_db_demo/dashboards/Showcase/TimeSeriesChartPanel.json b/local_db_demo/dashboards/Showcase/TimeSeriesChartPanel.json new file mode 100644 index 0000000..26aef2e --- /dev/null +++ b/local_db_demo/dashboards/Showcase/TimeSeriesChartPanel.json @@ -0,0 +1,268 @@ +{ + "kind": "Dashboard", + "metadata": { + "name": "TimeSeriesChartPanel", + "createdAt": "2022-12-21T00:00:00Z", + "updatedAt": "2023-01-25T17:43:56.745494Z", + "version": 3, + "project": "Showcase" + }, + "spec": { + "duration": "6h", + "panels": { + "SingleLine": { + "kind": "Panel", + "spec": { + "display": { + "name": "Single Line", + "description": "Time series chart with a single line" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": {} + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "up{job=\"grafana\",instance=\"demo.do.prometheus.io:3000\"}" + } + } + } + }] + } + }, + "LegendBottom": { + "kind": "Panel", + "spec": { + "display": { + "name": "Legend Position Bottom", + "description": "Time series chart with a default legend" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "position": "bottom" + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "up{job=\"grafana\",instance=\"demo.do.prometheus.io:3000\"}" + } + } + } + }] + } + }, + "LegendRight": { + "kind": "Panel", + "spec": { + "display": { + "name": "Legend Position Right", + "description": "Time series chart with a legend positioned to the right" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "position": "right" + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "up{job=\"grafana\",instance=\"demo.do.prometheus.io:3000\"}" + } + } + } + }] + } + }, + "LegendTallFormatted": { + "kind": "Panel", + "spec": { + "display": { + "name": "Legend Tall Formatted", + "description": "Time series chart with large legend and formatted series names" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "position": "bottom" + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "up{job=\"grafana\",instance=\"demo.do.prometheus.io:3000\"}", + "seriesNameFormat": "formatted series name example - {{job}} job - instance {{instance}}" + } + } + } + }] + } + }, + "CustomVisualOptions": { + "kind": "Panel", + "spec": { + "display": { + "name": "Custom Visual Options", + "description": "Time series chart with custom visual options" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "visual": { + "areaOpacity": 0.5, + "pointRadius": 6, + "lineWidth": 3, + "connectNulls": false + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "up{job=\"grafana\",instance=\"demo.do.prometheus.io:3000\"}" + } + } + } + }] + } + }, + "ConnectedNulls": { + "kind": "Panel", + "spec": { + "display": { + "name": "Connected Nulls", + "description": "Time series chart with connected null values" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "visual": { + "showPoints": "always", + "connectNulls": true + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "fake_graphite_query_with_nulls" + } + } + } + }] + } + } + }, + "layouts": [{ + "kind": "Grid", + "spec": { + "display": { + "title": "Row 1", + "collapse": { + "open": true + } + }, + "items": [{ + "x": 0, + "y": 0, + "width": 8, + "height": 7, + "content": { + "$ref": "#/spec/panels/SingleLine" + } + }, { + "x": 8, + "y": 0, + "width": 8, + "height": 7, + "content": { + "$ref": "#/spec/panels/CustomVisualOptions" + } + }, { + "x": 16, + "y": 0, + "width": 8, + "height": 7, + "content": { + "$ref": "#/spec/panels/ConnectedNulls" + } + }, { + "x": 0, + "y": 7, + "width": 8, + "height": 7, + "content": { + "$ref": "#/spec/panels/LegendBottom" + } + }, { + "x": 8, + "y": 7, + "width": 8, + "height": 7, + "content": { + "$ref": "#/spec/panels/LegendRight" + } + }, { + "x": 16, + "y": 7, + "width": 8, + "height": 10, + "content": { + "$ref": "#/spec/panels/LegendTallFormatted" + } + }] + } + }] + } +} diff --git a/local_db_demo/dashboards/perses/NodeExporterFull.json b/local_db_demo/dashboards/perses/NodeExporterFull.json new file mode 100644 index 0000000..040b194 --- /dev/null +++ b/local_db_demo/dashboards/perses/NodeExporterFull.json @@ -0,0 +1,7638 @@ +{ + "kind": "Dashboard", + "metadata": { + "name": "NodeExporterFull", + "createdAt": "2023-09-21T13:55:20.3069571Z", + "updatedAt": "2023-09-21T13:55:50.3750177Z", + "version": 1, + "project": "perses" + }, + "spec": { + "display": { + "name": "Node Exporter Full" + }, + "variables": [{ + "kind": "ListVariable", + "spec": { + "display": { + "name": "Job", + "hidden": false + }, + "allowAllValue": false, + "allowMultiple": false, + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "job", + "matchers": ["node_uname_info"] + } + }, + "name": "job" + } + }, { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Host", + "hidden": false + }, + "allowAllValue": false, + "allowMultiple": false, + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "instance", + "matchers": ["node_uname_info{job=\"$job\"}"] + } + }, + "name": "node" + } + }, { + "kind": "ListVariable", + "spec": { + "display": { + "name": "diskdevices", + "hidden": true + }, + "allowAllValue": false, + "allowMultiple": false, + "plugin": { + "kind": "StaticListVariable", + "spec": { + "values": ["[a-z]+|nvme[0-9]+n[0-9]+|mmcblk[0-9]+"] + } + }, + "name": "diskdevices" + } + }], + "panels": { + "0_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU Busy", + "description": "Busy state of all CPU cores together" + }, + "plugin": { + "kind": "GaugeChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "percent" + }, + "max": 100, + "thresholds": { + "steps": [{ + "color": "rgba(50, 172, 45, 0.97)", + "value": 0 + }, { + "color": "rgba(237, 129, 40, 0.89)", + "value": 85 + }, { + "color": "rgba(245, 54, 54, 0.9)", + "value": 95 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "(sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode!=\"idle\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))) * 100" + } + } + } + }] + } + }, + "0_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Sys Load (5m avg)", + "description": "Busy state of all CPU cores together (5 min average)" + }, + "plugin": { + "kind": "GaugeChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "percent" + }, + "max": 100, + "thresholds": { + "steps": [{ + "color": "rgba(50, 172, 45, 0.97)", + "value": 0 + }, { + "color": "rgba(237, 129, 40, 0.89)", + "value": 85 + }, { + "color": "rgba(245, 54, 54, 0.9)", + "value": 95 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "avg_over_time(node_load5{instance=\"$node\",job=\"$job\"}[$__rate_interval]) * 100 / on(instance) group_left sum by (instance)(irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval]))" + } + } + } + }] + } + }, + "0_10": { + "kind": "Panel", + "spec": { + "display": { + "name": "SWAP Total", + "description": "Total SWAP" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "thresholds": { + "steps": [{ + "color": "green", + "value": 0 + }, { + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_SwapTotal_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "0_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Sys Load (15m avg)", + "description": "Busy state of all CPU cores together (15 min average)" + }, + "plugin": { + "kind": "GaugeChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "percent" + }, + "max": 100, + "thresholds": { + "steps": [{ + "color": "rgba(50, 172, 45, 0.97)", + "value": 0 + }, { + "color": "rgba(237, 129, 40, 0.89)", + "value": 85 + }, { + "color": "rgba(245, 54, 54, 0.9)", + "value": 95 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "avg_over_time(node_load15{instance=\"$node\",job=\"$job\"}[$__rate_interval]) * 100 / on(instance) group_left sum by (instance)(irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval]))" + } + } + } + }] + } + }, + "0_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "RAM Used", + "description": "Non available RAM memory" + }, + "plugin": { + "kind": "GaugeChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "percent" + }, + "max": 100, + "thresholds": { + "steps": [{ + "color": "rgba(50, 172, 45, 0.97)", + "value": 0 + }, { + "color": "rgba(237, 129, 40, 0.89)", + "value": 80 + }, { + "color": "rgba(245, 54, 54, 0.9)", + "value": 90 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "((avg_over_time(node_memory_MemTotal_bytes{instance=\"$node\",job=\"$job\"}[$__rate_interval]) - avg_over_time(node_memory_MemFree_bytes{instance=\"$node\",job=\"$job\"}[$__rate_interval])) / (avg_over_time(node_memory_MemTotal_bytes{instance=\"$node\",job=\"$job\"}[$__rate_interval]) )) * 100" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "100 - ((avg_over_time(node_memory_MemAvailable_bytes{instance=\"$node\",job=\"$job\"}[$__rate_interval]) * 100) / avg_over_time(node_memory_MemTotal_bytes{instance=\"$node\",job=\"$job\"}[$__rate_interval]))" + } + } + } + }] + } + }, + "0_4": { + "kind": "Panel", + "spec": { + "display": { + "name": "SWAP Used", + "description": "Used Swap" + }, + "plugin": { + "kind": "GaugeChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "percent" + }, + "max": 100, + "thresholds": { + "steps": [{ + "color": "rgba(50, 172, 45, 0.97)", + "value": 0 + }, { + "color": "rgba(237, 129, 40, 0.89)", + "value": 10 + }, { + "color": "rgba(245, 54, 54, 0.9)", + "value": 25 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "((avg_over_time(node_memory_SwapTotal_bytes{instance=\"$node\",job=\"$job\"}[$__rate_interval]) - avg_over_time(node_memory_SwapFree_bytes{instance=\"$node\",job=\"$job\"}[$__rate_interval])) / (avg_over_time(node_memory_SwapTotal_bytes{instance=\"$node\",job=\"$job\"}[$__rate_interval]) )) * 100" + } + } + } + }] + } + }, + "0_5": { + "kind": "Panel", + "spec": { + "display": { + "name": "Root FS Used", + "description": "Used Root FS" + }, + "plugin": { + "kind": "GaugeChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "percent" + }, + "max": 100, + "thresholds": { + "steps": [{ + "color": "rgba(50, 172, 45, 0.97)", + "value": 0 + }, { + "color": "rgba(237, 129, 40, 0.89)", + "value": 80 + }, { + "color": "rgba(245, 54, 54, 0.9)", + "value": 90 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "100 - ((avg_over_time(node_filesystem_avail_bytes{instance=\"$node\",job=\"$job\",mountpoint=\"/\",fstype!=\"rootfs\"}[$__rate_interval]) * 100) / avg_over_time(node_filesystem_size_bytes{instance=\"$node\",job=\"$job\",mountpoint=\"/\",fstype!=\"rootfs\"}[$__rate_interval]))" + } + } + } + }] + } + }, + "0_6": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU Cores", + "description": "Total number of CPU cores" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "thresholds": { + "steps": [{ + "color": "green", + "value": 0 + }, { + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "count(count(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}) by (cpu))" + } + } + } + }] + } + }, + "0_7": { + "kind": "Panel", + "spec": { + "display": { + "name": "Uptime", + "description": "System uptime" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "seconds" + }, + "thresholds": { + "steps": [{ + "color": "green", + "value": 0 + }, { + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_time_seconds{instance=\"$node\",job=\"$job\"} - node_boot_time_seconds{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "0_8": { + "kind": "Panel", + "spec": { + "display": { + "name": "RootFS Total", + "description": "Total RootFS" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "thresholds": { + "steps": [{ + "color": "rgba(50, 172, 45, 0.97)", + "value": 0 + }, { + "color": "rgba(237, 129, 40, 0.89)", + "value": 70 + }, { + "color": "rgba(245, 54, 54, 0.9)", + "value": 90 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_filesystem_size_bytes{instance=\"$node\",job=\"$job\",mountpoint=\"/\",fstype!=\"rootfs\"}" + } + } + } + }] + } + }, + "0_9": { + "kind": "Panel", + "spec": { + "display": { + "name": "RAM Total", + "description": "Total RAM" + }, + "plugin": { + "kind": "StatChart", + "spec": { + "calculation": "last-number", + "format": { + "unit": "bytes" + }, + "thresholds": { + "steps": [{ + "color": "green", + "value": 0 + }, { + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_MemTotal_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "10_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Disk IOps Completed", + "description": "The number (after merges) of I/O requests completed per second for the device" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_reads_completed_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_writes_completed_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "10_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Disk R/W Data", + "description": "The number of bytes read from or written to the device per second" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_read_bytes_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_written_bytes_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "10_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Disk Average Wait Time", + "description": "The average time for requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them." + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "seconds" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_read_time_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval]) / irate(node_disk_reads_completed_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_write_time_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval]) / irate(node_disk_writes_completed_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "10_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "Average Queue Size", + "description": "The average queue length of the requests that were issued to the device" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_io_time_weighted_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "10_4": { + "kind": "Panel", + "spec": { + "display": { + "name": "Disk R/W Merged", + "description": "The number of read and write requests merged per second that were queued to the device" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_reads_merged_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_writes_merged_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "10_5": { + "kind": "Panel", + "spec": { + "display": { + "name": "Time Spent Doing I/Os", + "description": "Percentage of elapsed time during which I/O requests were issued to the device (bandwidth utilization for the device). Device saturation occurs when this value is close to 100% for devices serving requests serially. But for devices serving requests in parallel, such as RAID arrays and modern SSDs, this number does not reflect their performance limits." + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "percent-decimal" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_io_time_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_discard_time_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "10_6": { + "kind": "Panel", + "spec": { + "display": { + "name": "Instantaneous Queue Size", + "description": "The number of outstanding requests at the instant the sample was taken. Incremented as requests are given to appropriate struct request_queue and decremented as they finish." + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_disk_io_now{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "10_7": { + "kind": "Panel", + "spec": { + "display": { + "name": "Disk IOps Discards completed / merged" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_discards_completed_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_discards_merged_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "11_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Filesystem space available" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_filesystem_avail_bytes{instance=\"$node\",job=\"$job\",device!~'rootfs'}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_filesystem_free_bytes{instance=\"$node\",job=\"$job\",device!~'rootfs'}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_filesystem_size_bytes{instance=\"$node\",job=\"$job\",device!~'rootfs'}" + } + } + } + }] + } + }, + "11_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "File Nodes Free" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_filesystem_files_free{instance=\"$node\",job=\"$job\",device!~'rootfs'}" + } + } + } + }] + } + }, + "11_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "File Descriptor" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_filefd_maximum{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_filefd_allocated{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "11_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "File Nodes Size" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_filesystem_files{instance=\"$node\",job=\"$job\",device!~'rootfs'}" + } + } + } + }] + } + }, + "11_4": { + "kind": "Panel", + "spec": { + "display": { + "name": "Filesystem in ReadOnly / Error" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_filesystem_readonly{instance=\"$node\",job=\"$job\",device!~'rootfs'}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_filesystem_device_error{instance=\"$node\",job=\"$job\",device!~'rootfs',fstype!~'tmpfs'}" + } + } + } + }] + } + }, + "12_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Network Traffic by Packets" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_receive_packets_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_transmit_packets_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "12_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Network Traffic Errors" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_receive_errs_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_transmit_errs_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "12_10": { + "kind": "Panel", + "spec": { + "display": { + "name": "ARP Entries" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_arp_entries{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "12_11": { + "kind": "Panel", + "spec": { + "display": { + "name": "MTU" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_network_mtu_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "12_12": { + "kind": "Panel", + "spec": { + "display": { + "name": "Speed" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_network_speed_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "12_13": { + "kind": "Panel", + "spec": { + "display": { + "name": "Queue Length" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_network_transmit_queue_length{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "12_14": { + "kind": "Panel", + "spec": { + "display": { + "name": "Softnet Packets" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_softnet_processed_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_softnet_dropped_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "12_15": { + "kind": "Panel", + "spec": { + "display": { + "name": "Softnet Out of Quota" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_softnet_times_squeezed_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "12_16": { + "kind": "Panel", + "spec": { + "display": { + "name": "Network Operational Status" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_network_up{operstate=\"up\",instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_network_carrier{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "12_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Network Traffic Drop" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_receive_drop_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_transmit_drop_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "12_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "Network Traffic Compressed" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_receive_compressed_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_transmit_compressed_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "12_4": { + "kind": "Panel", + "spec": { + "display": { + "name": "Network Traffic Multicast" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_receive_multicast_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "12_5": { + "kind": "Panel", + "spec": { + "display": { + "name": "Network Traffic Fifo" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_receive_fifo_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_transmit_fifo_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "12_6": { + "kind": "Panel", + "spec": { + "display": { + "name": "Network Traffic Frame" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_receive_frame_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "12_7": { + "kind": "Panel", + "spec": { + "display": { + "name": "Network Traffic Carrier" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_transmit_carrier_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "12_8": { + "kind": "Panel", + "spec": { + "display": { + "name": "Network Traffic Colls" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_transmit_colls_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "12_9": { + "kind": "Panel", + "spec": { + "display": { + "name": "NF Contrack" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_nf_conntrack_entries{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_nf_conntrack_entries_limit{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "13_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Sockstat TCP" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_sockstat_TCP_alloc{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_sockstat_TCP_inuse{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_sockstat_TCP_mem{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_sockstat_TCP_orphan{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_sockstat_TCP_tw{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "13_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Sockstat UDP" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_sockstat_UDPLITE_inuse{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_sockstat_UDP_inuse{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_sockstat_UDP_mem{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "13_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Sockstat FRAG / RAW" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_sockstat_FRAG_inuse{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_sockstat_RAW_inuse{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "13_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "Sockstat Memory Size" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_sockstat_TCP_mem_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_sockstat_UDP_mem_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_sockstat_FRAG_memory{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "13_4": { + "kind": "Panel", + "spec": { + "display": { + "name": "Sockstat Used" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_sockstat_sockets_used{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "14_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Netstat IP In / Out Octets" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_IpExt_InOctets{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_IpExt_OutOctets{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "14_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Netstat IP Forwarding" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Ip_Forwarding{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "14_10": { + "kind": "Panel", + "spec": { + "display": { + "name": "TCP Direct Transition" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Tcp_ActiveOpens{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Tcp_PassiveOpens{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "14_11": { + "kind": "Panel", + "spec": { + "display": { + "name": "TCP Stat", + "description": "Enable with --collector.tcpstat argument on node-exporter" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_tcp_connection_states{state=\"established\",instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_tcp_connection_states{state=\"fin_wait2\",instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_tcp_connection_states{state=\"listen\",instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_tcp_connection_states{state=\"time_wait\",instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "14_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "ICMP In / Out" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Icmp_InMsgs{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Icmp_OutMsgs{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "14_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "ICMP Errors" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Icmp_InErrors{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "14_4": { + "kind": "Panel", + "spec": { + "display": { + "name": "UDP In / Out" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Udp_InDatagrams{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Udp_OutDatagrams{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "14_5": { + "kind": "Panel", + "spec": { + "display": { + "name": "UDP Errors" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Udp_InErrors{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Udp_NoPorts{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_UdpLite_InErrors{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Udp_RcvbufErrors{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Udp_SndbufErrors{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "14_6": { + "kind": "Panel", + "spec": { + "display": { + "name": "TCP In / Out" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Tcp_InSegs{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Tcp_OutSegs{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "14_7": { + "kind": "Panel", + "spec": { + "display": { + "name": "TCP Errors" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_TcpExt_ListenOverflows{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_TcpExt_ListenDrops{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_TcpExt_TCPSynRetrans{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Tcp_RetransSegs{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Tcp_InErrs{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_Tcp_OutRsts{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "14_8": { + "kind": "Panel", + "spec": { + "display": { + "name": "TCP Connections" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_netstat_Tcp_CurrEstab{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_netstat_Tcp_MaxConn{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "14_9": { + "kind": "Panel", + "spec": { + "display": { + "name": "TCP SynCookie" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_TcpExt_SyncookiesFailed{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_TcpExt_SyncookiesRecv{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_netstat_TcpExt_SyncookiesSent{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "15_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Node Exporter Scrape Time" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "seconds" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_scrape_collector_duration_seconds{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "15_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Node Exporter Scrape" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_scrape_collector_success{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_textfile_scrape_error{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "1_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU Basic", + "description": "Basic CPU info" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "list", + "position": "bottom", + "values": [] + }, + "thresholds": { + "steps": [{ + "color": "green", + "value": 0 + }, { + "color": "red", + "value": 0.8 + }] + }, + "yAxis": { + "format": { + "unit": "percent-decimal" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode=\"system\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode=\"user\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode=\"iowait\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode=~\".*irq\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode!='idle',mode!='user',mode!='system',mode!='iowait',mode!='irq',mode!='softirq'}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode=\"idle\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))" + } + } + } + }] + } + }, + "1_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Basic", + "description": "Basic memory usage" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "list", + "position": "bottom", + "values": [] + }, + "thresholds": { + "steps": [{ + "color": "green", + "value": 0 + }, { + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_MemTotal_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_MemTotal_bytes{instance=\"$node\",job=\"$job\"} - node_memory_MemFree_bytes{instance=\"$node\",job=\"$job\"} - (node_memory_Cached_bytes{instance=\"$node\",job=\"$job\"} + node_memory_Buffers_bytes{instance=\"$node\",job=\"$job\"} + node_memory_SReclaimable_bytes{instance=\"$node\",job=\"$job\"})" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Cached_bytes{instance=\"$node\",job=\"$job\"} + node_memory_Buffers_bytes{instance=\"$node\",job=\"$job\"} + node_memory_SReclaimable_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_MemFree_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "(node_memory_SwapTotal_bytes{instance=\"$node\",job=\"$job\"} - node_memory_SwapFree_bytes{instance=\"$node\",job=\"$job\"})" + } + } + } + }] + } + }, + "1_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Network Traffic Basic", + "description": "Basic network info per interface" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "list", + "position": "bottom", + "values": [] + }, + "thresholds": { + "steps": [{ + "color": "green", + "value": 0 + }, { + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_receive_bytes_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])*8" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_transmit_bytes_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])*8" + } + } + } + }] + } + }, + "1_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "Disk Space Used Basic", + "description": "Disk space used of all filesystems mounted" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "list", + "position": "bottom", + "values": [] + }, + "thresholds": { + "steps": [{ + "color": "green", + "value": 0 + }, { + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "percent" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "100 - ((node_filesystem_avail_bytes{instance=\"$node\",job=\"$job\",device!~'rootfs'} * 100) / node_filesystem_size_bytes{instance=\"$node\",job=\"$job\",device!~'rootfs'})" + } + } + } + }] + } + }, + "2_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "percent-decimal" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode=\"system\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode=\"user\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode=\"nice\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode=\"iowait\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode=\"irq\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode=\"softirq\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode=\"steal\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\", mode=\"idle\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])))" + } + } + } + }] + } + }, + "2_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Stack" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_MemTotal_bytes{instance=\"$node\",job=\"$job\"} - node_memory_MemFree_bytes{instance=\"$node\",job=\"$job\"} - node_memory_Buffers_bytes{instance=\"$node\",job=\"$job\"} - node_memory_Cached_bytes{instance=\"$node\",job=\"$job\"} - node_memory_Slab_bytes{instance=\"$node\",job=\"$job\"} - node_memory_PageTables_bytes{instance=\"$node\",job=\"$job\"} - node_memory_SwapCached_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_PageTables_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_SwapCached_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Slab_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Cached_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Buffers_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_MemFree_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "(node_memory_SwapTotal_bytes{instance=\"$node\",job=\"$job\"} - node_memory_SwapFree_bytes{instance=\"$node\",job=\"$job\"})" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_HardwareCorrupted_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "2_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Network Traffic" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_receive_bytes_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])*8" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_network_transmit_bytes_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])*8" + } + } + } + }] + } + }, + "2_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "Disk Space Used" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_filesystem_size_bytes{instance=\"$node\",job=\"$job\",device!~'rootfs'} - node_filesystem_avail_bytes{instance=\"$node\",job=\"$job\",device!~'rootfs'}" + } + } + } + }] + } + }, + "2_4": { + "kind": "Panel", + "spec": { + "display": { + "name": "Disk IOps" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_reads_completed_total{instance=\"$node\",job=\"$job\",device=~\"$diskdevices\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_writes_completed_total{instance=\"$node\",job=\"$job\",device=~\"$diskdevices\"}[$__rate_interval])" + } + } + } + }] + } + }, + "2_5": { + "kind": "Panel", + "spec": { + "display": { + "name": "I/O Usage Read / Write" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_read_bytes_total{instance=\"$node\",job=\"$job\",device=~\"$diskdevices\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_written_bytes_total{instance=\"$node\",job=\"$job\",device=~\"$diskdevices\"}[$__rate_interval])" + } + } + } + }] + } + }, + "2_6": { + "kind": "Panel", + "spec": { + "display": { + "name": "I/O Utilization" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "percent-decimal" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_disk_io_time_seconds_total{instance=\"$node\",job=\"$job\",device=~\"$diskdevices\"} [$__rate_interval])" + } + } + } + }] + } + }, + "2_7": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU spent seconds in guests (VMs)" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "percent-decimal" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_guest_seconds_total{instance=\"$node\",job=\"$job\", mode=\"user\"}[1m])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[1m])))" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "sum by(instance) (irate(node_cpu_guest_seconds_total{instance=\"$node\",job=\"$job\", mode=\"nice\"}[1m])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[1m])))" + } + } + } + }] + } + }, + "3_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Active / Inactive" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Inactive_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Active_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "3_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Committed" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Committed_AS_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_CommitLimit_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "3_10": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory HugePages Counter" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_HugePages_Free{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_HugePages_Rsvd{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_HugePages_Surp{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "3_11": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory HugePages Size" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_HugePages_Total{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Hugepagesize_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "3_12": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory DirectMap" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_DirectMap1G_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_DirectMap2M_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_DirectMap4k_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "3_13": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Unevictable and MLocked" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Unevictable_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Mlocked_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "3_14": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory NFS" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_NFS_Unstable_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "3_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Active / Inactive Detail" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Inactive_file_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Inactive_anon_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Active_file_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Active_anon_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "3_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Writeback and Dirty" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Writeback_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_WritebackTmp_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Dirty_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "3_4": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Shared and Mapped" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Mapped_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Shmem_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_ShmemHugePages_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_ShmemPmdMapped_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "3_5": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Slab" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_SUnreclaim_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_SReclaimable_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "3_6": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Vmalloc" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_VmallocChunk_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_VmallocTotal_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_VmallocUsed_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "3_7": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Bounce" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Bounce_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "3_8": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Anonymous" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_AnonHugePages_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_AnonPages_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "3_9": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Kernel / CPU" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_KernelStack_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_memory_Percpu_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "4_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Pages In / Out" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_vmstat_pgpgin{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_vmstat_pgpgout{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "4_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Pages Swap In / Out" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_vmstat_pswpin{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_vmstat_pswpout{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "4_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Memory Page Faults" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_vmstat_pgfault{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_vmstat_pgmajfault{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_vmstat_pgfault{instance=\"$node\",job=\"$job\"}[$__rate_interval]) - irate(node_vmstat_pgmajfault{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "4_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "OOM Killer" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_vmstat_oom_kill{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "5_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Time Synchronized Drift" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "seconds" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_timex_estimated_error_seconds{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_timex_offset_seconds{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_timex_maxerror_seconds{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "5_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Time PLL Adjust" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_timex_loop_time_constant{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "5_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Time Synchronized Status" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_timex_sync_status{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_timex_frequency_adjustment_ratio{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "5_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "Time Misc" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "seconds" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_timex_tick_seconds{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_timex_tai_offset_seconds{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "6_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Processes Status" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_procs_blocked{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_procs_running{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "6_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Processes State" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_processes_state{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "6_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Processes Forks" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_forks_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "6_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "Processes Memory" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "bytes" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(process_virtual_memory_bytes{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "process_resident_memory_max_bytes{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(process_virtual_memory_bytes{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(process_virtual_memory_max_bytes{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "6_4": { + "kind": "Panel", + "spec": { + "display": { + "name": "PIDs Number and Limit" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_processes_pids{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_processes_max_processes{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "6_5": { + "kind": "Panel", + "spec": { + "display": { + "name": "Process schedule stats Running / Waiting" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "seconds" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_schedstat_running_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_schedstat_waiting_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "6_6": { + "kind": "Panel", + "spec": { + "display": { + "name": "Threads Number and Limit" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_processes_threads{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_processes_max_threads{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "7_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Context Switches / Interrupts" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_context_switches_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_intr_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "7_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "System Load" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_load1{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_load5{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_load15{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "7_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Interrupts Detail" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_interrupts_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "7_3": { + "kind": "Panel", + "spec": { + "display": { + "name": "Schedule timeslices executed by each cpu" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_schedstat_timeslices_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "7_4": { + "kind": "Panel", + "spec": { + "display": { + "name": "Entropy" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_entropy_available_bits{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "7_5": { + "kind": "Panel", + "spec": { + "display": { + "name": "CPU time spent in user and system contexts" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + }, + "yAxis": { + "format": { + "unit": "seconds" + } + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(process_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "7_6": { + "kind": "Panel", + "spec": { + "display": { + "name": "File Descriptors" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "process_max_fds{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "process_open_fds{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "8_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Hardware temperature monitor" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_hwmon_temp_celsius{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_hwmon_temp_crit_alarm_celsius{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_hwmon_temp_crit_celsius{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_hwmon_temp_crit_hyst_celsius{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_hwmon_temp_max_celsius{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "8_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Throttle cooling device" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_cooling_device_cur_state{instance=\"$node\",job=\"$job\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_cooling_device_max_state{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "8_2": { + "kind": "Panel", + "spec": { + "display": { + "name": "Power supply" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_power_supply_online{instance=\"$node\",job=\"$job\"}" + } + } + } + }] + } + }, + "9_0": { + "kind": "Panel", + "spec": { + "display": { + "name": "Systemd Sockets" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "irate(node_systemd_socket_accepted_connections_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])" + } + } + } + }] + } + }, + "9_1": { + "kind": "Panel", + "spec": { + "display": { + "name": "Systemd Units State" + }, + "plugin": { + "kind": "TimeSeriesChart", + "spec": { + "legend": { + "mode": "table", + "position": "bottom", + "values": ["mean", "last-number", "max", "min"] + }, + "thresholds": { + "steps": [{ + "color": "red", + "value": 80 + }] + } + } + }, + "queries": [{ + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_systemd_units{instance=\"$node\",job=\"$job\",state=\"activating\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_systemd_units{instance=\"$node\",job=\"$job\",state=\"active\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_systemd_units{instance=\"$node\",job=\"$job\",state=\"deactivating\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_systemd_units{instance=\"$node\",job=\"$job\",state=\"failed\"}" + } + } + } + }, { + "kind": "TimeSeriesQuery", + "spec": { + "plugin": { + "kind": "PrometheusTimeSeriesQuery", + "spec": { + "datasource": { + "kind": "PrometheusDatasource", + "name": "PrometheusDemo" + }, + "query": "node_systemd_units{instance=\"$node\",job=\"$job\",state=\"inactive\"}" + } + } + } + }] + } + } + }, + "layouts": [{ + "kind": "Grid", + "spec": { + "items": [] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "Quick CPU / Mem / Disk", + "collapse": { + "open": true + } + }, + "items": [{ + "x": 0, + "y": 0, + "width": 3, + "height": 4, + "content": { + "$ref": "#/spec/panels/0_0" + } + }, { + "x": 3, + "y": 0, + "width": 3, + "height": 4, + "content": { + "$ref": "#/spec/panels/0_1" + } + }, { + "x": 6, + "y": 0, + "width": 3, + "height": 4, + "content": { + "$ref": "#/spec/panels/0_2" + } + }, { + "x": 9, + "y": 0, + "width": 3, + "height": 4, + "content": { + "$ref": "#/spec/panels/0_3" + } + }, { + "x": 12, + "y": 0, + "width": 3, + "height": 4, + "content": { + "$ref": "#/spec/panels/0_4" + } + }, { + "x": 15, + "y": 0, + "width": 3, + "height": 4, + "content": { + "$ref": "#/spec/panels/0_5" + } + }, { + "x": 18, + "y": 0, + "width": 2, + "height": 2, + "content": { + "$ref": "#/spec/panels/0_6" + } + }, { + "x": 20, + "y": 0, + "width": 4, + "height": 2, + "content": { + "$ref": "#/spec/panels/0_7" + } + }, { + "x": 18, + "y": 2, + "width": 2, + "height": 2, + "content": { + "$ref": "#/spec/panels/0_8" + } + }, { + "x": 20, + "y": 2, + "width": 2, + "height": 2, + "content": { + "$ref": "#/spec/panels/0_9" + } + }, { + "x": 22, + "y": 2, + "width": 2, + "height": 2, + "content": { + "$ref": "#/spec/panels/0_10" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "Basic CPU / Mem / Net / Disk", + "collapse": { + "open": true + } + }, + "items": [{ + "x": 0, + "y": 0, + "width": 12, + "height": 7, + "content": { + "$ref": "#/spec/panels/1_0" + } + }, { + "x": 12, + "y": 0, + "width": 12, + "height": 7, + "content": { + "$ref": "#/spec/panels/1_1" + } + }, { + "x": 0, + "y": 7, + "width": 12, + "height": 7, + "content": { + "$ref": "#/spec/panels/1_2" + } + }, { + "x": 12, + "y": 7, + "width": 12, + "height": 7, + "content": { + "$ref": "#/spec/panels/1_3" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "CPU / Memory / Net / Disk", + "collapse": { + "open": false + } + }, + "items": [{ + "x": 0, + "y": 7, + "width": 12, + "height": 12, + "content": { + "$ref": "#/spec/panels/2_0" + } + }, { + "x": 12, + "y": 7, + "width": 12, + "height": 12, + "content": { + "$ref": "#/spec/panels/2_1" + } + }, { + "x": 0, + "y": 19, + "width": 12, + "height": 12, + "content": { + "$ref": "#/spec/panels/2_2" + } + }, { + "x": 12, + "y": 19, + "width": 12, + "height": 12, + "content": { + "$ref": "#/spec/panels/2_3" + } + }, { + "x": 0, + "y": 31, + "width": 12, + "height": 12, + "content": { + "$ref": "#/spec/panels/2_4" + } + }, { + "x": 12, + "y": 31, + "width": 12, + "height": 12, + "content": { + "$ref": "#/spec/panels/2_5" + } + }, { + "x": 0, + "y": 43, + "width": 12, + "height": 12, + "content": { + "$ref": "#/spec/panels/2_6" + } + }, { + "x": 12, + "y": 43, + "width": 12, + "height": 12, + "content": { + "$ref": "#/spec/panels/2_7" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "Memory Meminfo", + "collapse": { + "open": false + } + }, + "items": [{ + "x": 0, + "y": 38, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_0" + } + }, { + "x": 12, + "y": 38, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_1" + } + }, { + "x": 0, + "y": 48, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_2" + } + }, { + "x": 12, + "y": 48, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_3" + } + }, { + "x": 0, + "y": 58, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_4" + } + }, { + "x": 12, + "y": 58, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_5" + } + }, { + "x": 0, + "y": 68, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_6" + } + }, { + "x": 12, + "y": 68, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_7" + } + }, { + "x": 0, + "y": 78, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_8" + } + }, { + "x": 12, + "y": 78, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_9" + } + }, { + "x": 0, + "y": 88, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_10" + } + }, { + "x": 12, + "y": 88, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_11" + } + }, { + "x": 0, + "y": 98, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_12" + } + }, { + "x": 12, + "y": 98, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_13" + } + }, { + "x": 0, + "y": 108, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/3_14" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "Memory Vmstat", + "collapse": { + "open": false + } + }, + "items": [{ + "x": 0, + "y": 25, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/4_0" + } + }, { + "x": 12, + "y": 25, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/4_1" + } + }, { + "x": 0, + "y": 35, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/4_2" + } + }, { + "x": 12, + "y": 35, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/4_3" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "System Timesync", + "collapse": { + "open": false + } + }, + "items": [{ + "x": 0, + "y": 40, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/5_0" + } + }, { + "x": 12, + "y": 40, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/5_1" + } + }, { + "x": 0, + "y": 50, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/5_2" + } + }, { + "x": 12, + "y": 50, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/5_3" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "System Processes", + "collapse": { + "open": false + } + }, + "items": [{ + "x": 0, + "y": 27, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/6_0" + } + }, { + "x": 12, + "y": 27, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/6_1" + } + }, { + "x": 0, + "y": 37, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/6_2" + } + }, { + "x": 12, + "y": 37, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/6_3" + } + }, { + "x": 0, + "y": 47, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/6_4" + } + }, { + "x": 12, + "y": 47, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/6_5" + } + }, { + "x": 12, + "y": 57, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/6_6" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "System Misc", + "collapse": { + "open": false + } + }, + "items": [{ + "x": 0, + "y": 42, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/7_0" + } + }, { + "x": 12, + "y": 42, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/7_1" + } + }, { + "x": 0, + "y": 52, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/7_2" + } + }, { + "x": 12, + "y": 52, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/7_3" + } + }, { + "x": 0, + "y": 62, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/7_4" + } + }, { + "x": 12, + "y": 62, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/7_5" + } + }, { + "x": 0, + "y": 72, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/7_6" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "Hardware Misc", + "collapse": { + "open": false + } + }, + "items": [{ + "x": 0, + "y": 43, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/8_0" + } + }, { + "x": 12, + "y": 43, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/8_1" + } + }, { + "x": 0, + "y": 53, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/8_2" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "Systemd", + "collapse": { + "open": false + } + }, + "items": [{ + "x": 0, + "y": 30, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/9_0" + } + }, { + "x": 12, + "y": 30, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/9_1" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "Storage Disk", + "collapse": { + "open": false + } + }, + "items": [{ + "x": 0, + "y": 31, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/10_0" + } + }, { + "x": 12, + "y": 31, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/10_1" + } + }, { + "x": 0, + "y": 41, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/10_2" + } + }, { + "x": 12, + "y": 41, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/10_3" + } + }, { + "x": 0, + "y": 51, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/10_4" + } + }, { + "x": 12, + "y": 51, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/10_5" + } + }, { + "x": 0, + "y": 61, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/10_6" + } + }, { + "x": 12, + "y": 61, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/10_7" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "Storage Filesystem", + "collapse": { + "open": false + } + }, + "items": [{ + "x": 0, + "y": 46, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/11_0" + } + }, { + "x": 12, + "y": 46, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/11_1" + } + }, { + "x": 0, + "y": 56, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/11_2" + } + }, { + "x": 12, + "y": 56, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/11_3" + } + }, { + "x": 0, + "y": 66, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/11_4" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "Network Traffic", + "collapse": { + "open": false + } + }, + "items": [{ + "x": 0, + "y": 31, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_0" + } + }, { + "x": 12, + "y": 31, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_1" + } + }, { + "x": 0, + "y": 41, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_2" + } + }, { + "x": 12, + "y": 41, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_3" + } + }, { + "x": 0, + "y": 51, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_4" + } + }, { + "x": 12, + "y": 51, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_5" + } + }, { + "x": 0, + "y": 61, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_6" + } + }, { + "x": 12, + "y": 61, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_7" + } + }, { + "x": 0, + "y": 71, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_8" + } + }, { + "x": 12, + "y": 71, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_9" + } + }, { + "x": 0, + "y": 81, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_10" + } + }, { + "x": 12, + "y": 81, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_11" + } + }, { + "x": 0, + "y": 91, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_12" + } + }, { + "x": 12, + "y": 91, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_13" + } + }, { + "x": 0, + "y": 101, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_14" + } + }, { + "x": 12, + "y": 101, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_15" + } + }, { + "x": 0, + "y": 111, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/12_16" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "Network Sockstat", + "collapse": { + "open": false + } + }, + "items": [{ + "x": 0, + "y": 32, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/13_0" + } + }, { + "x": 12, + "y": 32, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/13_1" + } + }, { + "x": 0, + "y": 42, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/13_2" + } + }, { + "x": 12, + "y": 42, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/13_3" + } + }, { + "x": 0, + "y": 52, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/13_4" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "Network Netstat", + "collapse": { + "open": false + } + }, + "items": [{ + "x": 0, + "y": 33, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/14_0" + } + }, { + "x": 12, + "y": 33, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/14_1" + } + }, { + "x": 0, + "y": 43, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/14_2" + } + }, { + "x": 12, + "y": 43, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/14_3" + } + }, { + "x": 0, + "y": 53, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/14_4" + } + }, { + "x": 12, + "y": 53, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/14_5" + } + }, { + "x": 0, + "y": 63, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/14_6" + } + }, { + "x": 12, + "y": 63, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/14_7" + } + }, { + "x": 0, + "y": 73, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/14_8" + } + }, { + "x": 12, + "y": 73, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/14_9" + } + }, { + "x": 0, + "y": 83, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/14_10" + } + }, { + "x": 12, + "y": 83, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/14_11" + } + }] + } + }, { + "kind": "Grid", + "spec": { + "display": { + "title": "Node Exporter", + "collapse": { + "open": false + } + }, + "items": [{ + "x": 0, + "y": 50, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/15_0" + } + }, { + "x": 12, + "y": 50, + "width": 12, + "height": 10, + "content": { + "$ref": "#/spec/panels/15_1" + } + }] + } + }], + "duration": "1h" + } +} \ No newline at end of file diff --git a/local_db_demo/globaldatasources/PrometheusLocal.json b/local_db_demo/globaldatasources/PrometheusLocal.json new file mode 100644 index 0000000..49c5484 --- /dev/null +++ b/local_db_demo/globaldatasources/PrometheusLocal.json @@ -0,0 +1,22 @@ +{ + "kind": "GlobalDatasource", + "metadata": { + "name": "PrometheusLocal", + "createdAt": "0001-01-01T00:00:00Z", + "updatedAt": "2023-09-21T16:22:57.1323033Z", + "version": 2 + }, + "spec": { + "display": { + "description": "Local prometheus instance for testing" + }, + "default": false, + "plugin": { + "kind": "PrometheusDatasource", + "spec": { + "directUrl": "http://localhost:9090", + "scrapeInterval": "" + } + } + } +} diff --git a/local_db_demo/globalvariables/job.json b/local_db_demo/globalvariables/job.json new file mode 100644 index 0000000..914f50d --- /dev/null +++ b/local_db_demo/globalvariables/job.json @@ -0,0 +1,28 @@ +{ + "kind": "GlobalVariable", + "metadata": { + "name": "job", + "createdAt": "2023-09-21T16:19:53.2938318Z", + "updatedAt": "2023-09-21T16:19:53.2938318Z", + "version": 0 + }, + "spec": { + "kind": "ListVariable", + "spec": { + "display": { + "name": "Job name", + "description": "Name of the job (= collection of targets)", + "hidden": false + }, + "allowAllValue": true, + "allowMultiple": true, + "plugin": { + "kind": "PrometheusLabelValuesVariable", + "spec": { + "labelName": "job", + "matchers": ["up"] + } + } + } + } +} diff --git a/local_db_demo/projects/Showcase.json b/local_db_demo/projects/Showcase.json new file mode 100644 index 0000000..5d98c9e --- /dev/null +++ b/local_db_demo/projects/Showcase.json @@ -0,0 +1,6 @@ +{ + "kind": "Project", + "metadata": { + "name": "Showcase" + } +}