summaryrefslogtreecommitdiff
path: root/podman.json
diff options
context:
space:
mode:
authorunitexe <unitexe70@gmail.com>2026-01-25 00:00:06 -0600
committerunitexe <unitexe70@gmail.com>2026-01-25 00:00:06 -0600
commitaa331ad8d6615f035620377f1cb0f079f08e6d86 (patch)
tree88f810e159f04c2d3d237f9aec7d8bf6a6be8932 /podman.json
parentc79d547b7fc271fbc9242e511e3b77c8290f7c9e (diff)
Fix dashboard so it detects prometheus datasource automatically
Could only get dashboard to work if it was manually imported to grafana. These changes (more or less copied from the node-exporter-full dashboard https://grafana.com/grafana/dashboards/1860-node-exporter-full/) eliminate the need for manual import and allows the dashboard to automatically work after being mounted into grafana container.
Diffstat (limited to 'podman.json')
-rw-r--r--podman.json61
1 files changed, 31 insertions, 30 deletions
diff --git a/podman.json b/podman.json
index 5ca936f..09c8151 100644
--- a/podman.json
+++ b/podman.json
@@ -1,14 +1,4 @@
{
- "__inputs": [
- {
- "name": "DS_PROMETHEUS",
- "label": "Prometheus",
- "description": "",
- "type": "datasource",
- "pluginId": "prometheus",
- "pluginName": "Prometheus"
- }
- ],
"__elements": {},
"__requires": [
{
@@ -88,7 +78,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"fieldConfig": {
"defaults": {
@@ -172,7 +162,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"disableTextWrap": false,
"editorMode": "code",
@@ -219,7 +209,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"fieldConfig": {
"defaults": {
@@ -303,7 +293,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"editorMode": "code",
"expr": "sum by (name) (\n podman_container_info{instance=~\"$instance\", name=~\"$name\"}\n * on (id) group_right (name)\n (podman_container_mem_usage_bytes / 1024 / 1024)\n)",
@@ -346,7 +336,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"fieldConfig": {
"defaults": {
@@ -430,7 +420,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"editorMode": "code",
"expr": "sum by(name) (podman_container_info{instance=~\"$instance\", name=~\"$name\"} * on(id) group_right(name) rate(podman_container_net_input_total[1m]) / 1024)",
@@ -443,7 +433,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"expr": "sum(rate(podman_container_blkio_device_write_bytes_total{instance=~\"$host\",name=~\"$container\"}[5m])) by (name)",
"hide": false,
@@ -458,7 +448,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"fieldConfig": {
"defaults": {
@@ -542,7 +532,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"editorMode": "code",
"expr": "sum by(name) (podman_container_info{instance=~\"$instance\", name=~\"$name\"} * on(id) group_right(name) rate(podman_container_net_output_total[1m]) / 1024)",
@@ -555,7 +545,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"expr": "sum(rate(podman_container_blkio_device_write_bytes_total{instance=~\"$host\",name=~\"$container\"}[5m])) by (name)",
"hide": false,
@@ -570,7 +560,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"description": "",
"fieldConfig": {
@@ -850,7 +840,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"editorMode": "code",
"exemplar": false,
@@ -865,7 +855,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"editorMode": "code",
"exemplar": false,
@@ -880,7 +870,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"editorMode": "code",
"exemplar": false,
@@ -895,7 +885,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"editorMode": "code",
"exemplar": false,
@@ -910,7 +900,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"editorMode": "code",
"exemplar": false,
@@ -925,7 +915,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"editorMode": "code",
"exemplar": false,
@@ -940,7 +930,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"editorMode": "code",
"exemplar": false,
@@ -1036,11 +1026,22 @@
"templating": {
"list": [
{
+ "current": {},
+ "includeAll": false,
+ "label": "Datasource",
+ "name": "ds_prometheus",
+ "options": [],
+ "query": "prometheus",
+ "refresh": 1,
+ "regex": "",
+ "type": "datasource"
+ },
+ {
"allValue": ".*",
"current": {},
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"definition": "label_values(podman_container_info{instance=~\"$instance\"},instance)",
"hide": 0,
@@ -1065,7 +1066,7 @@
"current": {},
"datasource": {
"type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
+ "uid": "${ds_prometheus}"
},
"definition": "label_values(podman_container_info{name=~\"$name\", instance=~\"$instance\"},name)",
"hide": 0,