Skip to content

Commit

Permalink
Add a stat panel showing the pod type to Pod Details. Implements #389 (
Browse files Browse the repository at this point in the history
…#390)

Co-authored-by: Keith Fiske <keith@keithf4.com>
  • Loading branch information
gricey432 and keithf4 authored Feb 8, 2024
1 parent d5809c0 commit a1709fa
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions grafana/containers/pod_details.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,73 @@
}
],
"panels": [
{
"datasource": "PROMETHEUS",
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"index": 0,
"text": "Primary"
},
"1": {
"index": 1,
"text": "Replica"
}
},
"type": "value"
}
]
},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 24,
"x": 0,
"y": 0
},
"id": 17,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"text": {
"valueSize": 30
},
"textMode": "auto"
},
"pluginVersion": "9.2.20",
"targets": [
{
"datasource": "PROMETHEUS",
"editorMode": "code",
"exemplar": false,
"expr": "pg_replication_is_replica{pod=\"[[pod]]\", pg_cluster=\"[[cluster]]\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "Pod Type",
"type": "stat"
},
{
"aliasColors": {
"% Throttled": "yellow",
Expand Down

0 comments on commit a1709fa

Please sign in to comment.