grafana: add PostgreSQL to servers dashboard

This commit is contained in:
Astro 2023-04-26 19:00:57 +02:00
parent 29c1f68326
commit 4f5b0029c8
1 changed files with 161 additions and 8 deletions

View File

@ -201,7 +201,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.3.1",
"pluginVersion": "9.4.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -870,7 +870,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.3.1",
"pluginVersion": "9.4.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
@ -1582,7 +1582,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -1761,10 +1762,158 @@
],
"title": "Disk IO",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 33
},
"id": 18,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"alias": "$tag_instance $tag_type_instance",
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"instance"
],
"type": "tag"
},
{
"params": [
"type"
],
"type": "tag"
},
{
"params": [
"type_instance"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "postgresql_value",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"key": "host",
"operator": "=~",
"value": "/^$server$/"
}
]
}
],
"title": "PostgreSQL",
"type": "timeseries"
}
],
"refresh": false,
"schemaVersion": 37,
"revision": 1,
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
@ -1772,8 +1921,12 @@
{
"current": {
"selected": false,
"text": "hydra",
"value": "hydra"
"text": "buzzrelay",
"value": "buzzrelay"
},
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"definition": "SHOW TAG VALUES WITH KEY = \"host\"",
"hide": 0,
@ -1794,7 +1947,7 @@
]
},
"time": {
"from": "now-24h",
"from": "now-7d",
"to": "now"
},
"timepicker": {
@ -1816,4 +1969,4 @@
"uid": "pVoyupoZk",
"version": 1,
"weekStart": ""
}
}