summaryrefslogtreecommitdiff
path: root/modules/nixos/monitoring/dashboards/nginx.json
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-03-23 16:59:15 +0300
committerAzat Bahawi <azat@bahawi.net>2023-03-23 16:59:15 +0300
commitf6e36a699ae2d073e340e0a5844b8e111ed3de37 (patch)
tree52bb1d04e7b027165245b55622859b8425105fc7 /modules/nixos/monitoring/dashboards/nginx.json
parenteb6eebde166112397e8711a16a8618a52ecbcaca (diff)
2023-03-23
Diffstat (limited to 'modules/nixos/monitoring/dashboards/nginx.json')
-rw-r--r--modules/nixos/monitoring/dashboards/nginx.json473
1 files changed, 244 insertions, 229 deletions
diff --git a/modules/nixos/monitoring/dashboards/nginx.json b/modules/nixos/monitoring/dashboards/nginx.json
index b2cc499..2f0c25f 100644
--- a/modules/nixos/monitoring/dashboards/nginx.json
+++ b/modules/nixos/monitoring/dashboards/nginx.json
@@ -25,14 +25,15 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
- "id": 31,
+ "id": 65,
"links": [],
"liveNow": false,
"panels": [
{
"collapsed": false,
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
"gridPos": {
"h": 1,
@@ -45,7 +46,8 @@
"targets": [
{
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
"refId": "A"
}
@@ -55,7 +57,8 @@
},
{
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
"description": "",
"fieldConfig": {
@@ -112,19 +115,22 @@
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
- "calcs": ["lastNotNull"],
+ "calcs": [
+ "lastNotNull"
+ ],
"fields": "",
"values": false
},
"textMode": "auto"
},
- "pluginVersion": "9.1.0",
+ "pluginVersion": "9.4.3",
"repeat": "instance",
"repeatDirection": "h",
"targets": [
{
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
"expr": "nginx_up{instance=~\"$instance\"}",
"format": "time_series",
@@ -139,7 +145,8 @@
{
"collapsed": false,
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
"gridPos": {
"h": 1,
@@ -152,7 +159,8 @@
"targets": [
{
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
"refId": "A"
}
@@ -161,91 +169,60 @@
"type": "row"
},
{
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
"description": "",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "Connections (rate)",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "decimals": 1,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "short"
- },
- "overrides": []
- },
+ "fill": 1,
+ "fillGradient": 0,
"gridPos": {
"h": 10,
"w": 12,
"x": 0,
"y": 5
},
+ "hiddenSeries": false,
"id": 10,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "hideEmpty": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 1,
"links": [],
+ "nullPointMode": "null",
"options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
+ "alertThreshold": true
},
- "pluginVersion": "9.1.0",
+ "percentage": false,
+ "pluginVersion": "9.4.3",
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
- "expr": "irate(nginx_connections_accepted{instance=~\"$instance\"}[$__range])",
+ "expr": "irate(nginx_connections_accepted{instance=~\"$instance\"}[5m])",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
@@ -254,9 +231,10 @@
},
{
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
- "expr": "irate(nginx_connections_handled{instance=~\"$instance\"}[$__range])",
+ "expr": "irate(nginx_connections_handled{instance=~\"$instance\"}[5m])",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
@@ -264,92 +242,91 @@
"refId": "B"
}
],
+ "thresholds": [],
+ "timeRegions": [],
"title": "Processed connections",
- "type": "timeseries"
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 1,
+ "format": "short",
+ "label": "Connections (rate)",
+ "logBase": 1,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": "",
+ "logBase": 1,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
},
{
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
"datasource": {
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "Connections",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "decimals": 0,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "short"
- },
- "overrides": []
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
+ "decimals": 0,
+ "fill": 1,
+ "fillGradient": 0,
"gridPos": {
"h": 10,
"w": 12,
"x": 12,
"y": 5
},
+ "hiddenSeries": false,
"id": 12,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 1,
"links": [],
+ "nullPointMode": "null",
"options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
+ "alertThreshold": true
},
- "pluginVersion": "9.1.0",
+ "percentage": false,
+ "pluginVersion": "9.4.3",
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
"expr": "nginx_connections_active{instance=~\"$instance\"}",
"format": "time_series",
@@ -359,7 +336,8 @@
},
{
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
"expr": "nginx_connections_reading{instance=~\"$instance\"}",
"format": "time_series",
@@ -369,7 +347,8 @@
},
{
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
"expr": "nginx_connections_waiting{instance=~\"$instance\"}",
"format": "time_series",
@@ -379,7 +358,8 @@
},
{
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
"expr": "nginx_connections_writing{instance=~\"$instance\"}",
"format": "time_series",
@@ -388,105 +368,129 @@
"refId": "D"
}
],
+ "thresholds": [],
+ "timeRegions": [],
"title": "Active Connections",
- "type": "timeseries"
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 0,
+ "format": "short",
+ "label": "Connections",
+ "logBase": 1,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
},
{
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
"datasource": {
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 10,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "short"
- },
- "overrides": []
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
+ "fill": 1,
+ "fillGradient": 0,
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 15
},
+ "hiddenSeries": false,
"id": 15,
+ "legend": {
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "show": true,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 1,
"links": [],
+ "nullPointMode": "null",
"options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
+ "alertThreshold": true
},
- "pluginVersion": "9.1.0",
+ "percentage": false,
+ "pluginVersion": "9.4.3",
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
"targets": [
{
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
- "expr": "irate(nginx_http_requests_total{instance=~\"$instance\"}[$__range])",
+ "expr": "irate(nginx_http_requests_total{instance=~\"$instance\"}[5m])",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{instance}} total requests",
"refId": "A"
}
],
+ "thresholds": [],
+ "timeRegions": [],
"title": "Total requests",
- "type": "timeseries"
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "mode": "time",
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": true
+ },
+ {
+ "format": "short",
+ "logBase": 1,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false
+ }
}
],
"refresh": "5s",
- "schemaVersion": 37,
+ "revision": 1,
+ "schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
@@ -494,8 +498,8 @@
{
"current": {
"selected": false,
- "text": "default",
- "value": "default"
+ "text": "Prometheus",
+ "value": "Prometheus"
},
"hide": 0,
"includeAll": false,
@@ -516,7 +520,8 @@
"value": "$__all"
},
"datasource": {
- "uid": "${DS_PROMETHEUS}"
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
},
"definition": "label_values(nginx_up, instance)",
"hide": 0,
@@ -527,7 +532,7 @@
"options": [],
"query": {
"query": "label_values(nginx_up, instance)",
- "refId": "StandardVariableQuery"
+ "refId": "Prometheus-instance-Variable-Query"
},
"refresh": 1,
"regex": "",
@@ -541,7 +546,7 @@
]
},
"time": {
- "from": "now-1h",
+ "from": "now-15m",
"to": "now"
},
"timepicker": {
@@ -557,11 +562,21 @@
"2h",
"1d"
],
- "time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"]
+ "time_options": [
+ "5m",
+ "15m",
+ "1h",
+ "6h",
+ "12h",
+ "24h",
+ "2d",
+ "7d",
+ "30d"
+ ]
},
"timezone": "",
"title": "NGINX",
- "uid": "Yoeroupho",
- "version": 1,
+ "uid": "MsjffzSZz",
+ "version": 2,
"weekStart": ""
-}
+} \ No newline at end of file