bugfix/mv-ds-var-for-goldpinger

This commit is contained in:
kklinch0 committed 2025-03-05 11:05:59 +03:00
1 parent 160e4e2a32
commit 9714b130a8
1 file changed
+96 -83
+96 -83
View File
@@ -19,7 +19,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 224,
"id": 226,
"links": [],
"panels": [
{
@@ -38,7 +38,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
@@ -104,7 +104,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"expr": "(count(goldpinger_nodes_health_total{status='healthy'}) + count(goldpinger_nodes_health_total{status='unhealthy'})) /2",
"format": "time_series",
@@ -121,7 +121,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
@@ -187,7 +187,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"expr": "sum(increase(goldpinger_errors_total{goldpinger_instance=~\"$instance\"}[30m]))",
"format": "time_series",
@@ -202,31 +202,57 @@
"type": "stat"
},
{
"columns": [
{
"text": "Current",
"value": "current"
},
{
"text": "Max",
"value": "max"
},
{
"text": "Avg",
"value": "avg"
}
],
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"editable": true,
"error": false,
"fieldConfig": {
"defaults": {},
"overrides": []
"defaults": {
"custom": {
"cellOptions": {
"type": "color-text"
},
"inspect": false
},
"decimals": 2,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "rgba(50, 172, 45, 0.97)",
"value": null
},
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 1
},
{
"color": "rgba(245, 54, 54, 0.9)",
"value": 2
}
]
},
"unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Time"
},
"properties": [
{
"id": "unit",
"value": "time: YYYY-MM-DD HH:mm:ss"
},
{
"id": "custom.align"
}
]
}
]
},
"fontSize": "100%",
"gridPos": {
"h": 8,
"w": 16,
@@ -234,44 +260,24 @@
"y": 1
},
"id": 11,
"options": {},
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "11.4.0",
"scroll": true,
"showHeader": true,
"sort": {
"desc": false
},
"styles": [
{
"align": "auto",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "date"
},
{
"align": "auto",
"colorMode": "value",
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"decimals": 2,
"link": false,
"pattern": "/.*/",
"thresholds": [
"1",
"2"
],
"type": "number",
"unit": "short"
}
],
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"expr": "sum(goldpinger_nodes_health_total{status='unhealthy'}) by (goldpinger_instance)",
"format": "table",
@@ -282,13 +288,12 @@
}
],
"title": "Unhealthy seen by instance",
"transform": "table",
"type": "table-old"
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
@@ -375,7 +380,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"expr": "sum(increase(goldpinger_nodes_health_total{goldpinger_instance=~\"$instance\", status=\"unhealthy\"}[30m])) by (goldpinger_instance)",
"format": "time_series",
@@ -393,7 +398,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
@@ -480,7 +485,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"expr": "sum(increase(goldpinger_nodes_health_total{goldpinger_instance=~\"$instance\",status=\"unhealthy\"}[30m])) by (goldpinger_instance) / (sum(increase(goldpinger_nodes_health_total{goldpinger_instance=~\"$instance\",status=\"healthy\"}[30m])) by (goldpinger_instance) + sum(increase(goldpinger_nodes_health_total{goldpinger_instance=~\"$instance\",status=\"unhealthy\"}[30m])) by (goldpinger_instance))",
"format": "time_series",
@@ -511,7 +516,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
@@ -597,7 +602,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"expr": "histogram_quantile(0.99, sum(rate(goldpinger_peers_response_time_s_bucket{goldpinger_instance=~\"$instance\",call_type=~\"$call_type\"}[30m])) by (goldpinger_instance, le))",
"format": "time_series",
@@ -614,7 +619,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
@@ -700,7 +705,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"expr": "histogram_quantile(0.95, sum(rate(goldpinger_peers_response_time_s_bucket{goldpinger_instance=~\"$instance\",call_type=~\"$call_type\"}[30m])) by (goldpinger_instance, le))",
"format": "time_series",
@@ -717,7 +722,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
@@ -803,7 +808,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"expr": "histogram_quantile(0.50, sum(rate(goldpinger_peers_response_time_s_bucket{goldpinger_instance=~\"$instance\",call_type=~\"$call_type\"}[30m])) by (goldpinger_instance, le))",
"format": "time_series",
@@ -833,7 +838,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
@@ -919,7 +924,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"expr": "histogram_quantile(0.99, sum(rate(goldpinger_kube_master_response_time_s_bucket{goldpinger_instance=~\"$instance\"}[30m])) by (goldpinger_instance, le))",
"format": "time_series",
@@ -936,7 +941,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
@@ -1022,7 +1027,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"expr": "histogram_quantile(0.95, sum(rate(goldpinger_kube_master_response_time_s_bucket{goldpinger_instance=~\"$instance\"}[30m])) by (goldpinger_instance, le))",
"format": "time_series",
@@ -1039,7 +1044,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
@@ -1125,7 +1130,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "24b0d575-0cea-474c-a4eb-c225d250858d"
"uid": "${datasource}"
},
"expr": "histogram_quantile(0.50, sum(rate(goldpinger_kube_master_response_time_s_bucket{goldpinger_instance=~\"$instance\"}[30m])) by (goldpinger_instance, le))",
"format": "time_series",
@@ -1146,12 +1151,22 @@
"tags": [],
"templating": {
"list": [
{
"current": {
"text": "vm-shortterm",
"value": "24b0d575-0cea-474c-a4eb-c225d250858d"
},
"name": "datasource",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"type": "datasource"
},
{
"allValue": ".*",
"current": {
"text": [
"All"
],
"text": "All",
"value": [
"$__all"
]
@@ -1171,9 +1186,7 @@
{
"allValue": ".*",
"current": {
"text": [
"All"
],
"text": "All",
"value": [
"$__all"
]
@@ -1203,4 +1216,4 @@
"uid": "8eYxJNhZk",
"version": 2,
"weekStart": ""
}
}