Skip to content

Commit

Permalink
fix: change job value from core-dns to $job variable. (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipewnp authored Dec 31, 2023
1 parent 15ef556 commit 7904361
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dashboards/k8s-system-coredns.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"uid": "${datasource}"
},
"exemplar": true,
"expr": "up{job=\"coredns\", instance=~\"$instance\"}",
"expr": "up{job=~\"$job\", instance=~\"$instance\"}",
"interval": "",
"legendFormat": "{{ instance }}",
"refId": "A"
Expand Down Expand Up @@ -228,7 +228,7 @@
"uid": "${datasource}"
},
"exemplar": true,
"expr": "rate(process_cpu_seconds_total{job=\"coredns\", instance=~\"$instance\"}[$__rate_interval])",
"expr": "rate(process_cpu_seconds_total{job=~\"$job\", instance=~\"$instance\"}[$__rate_interval])",
"interval": "$resolution",
"legendFormat": "{{ instance }}",
"refId": "A"
Expand Down Expand Up @@ -324,7 +324,7 @@
"uid": "${datasource}"
},
"exemplar": true,
"expr": "process_resident_memory_bytes{job=\"coredns\", instance=~\"$instance\"}",
"expr": "process_resident_memory_bytes{job=~\"$job\", instance=~\"$instance\"}",
"interval": "",
"legendFormat": "{{ instance }}",
"refId": "A"
Expand Down Expand Up @@ -1601,6 +1601,6 @@
"timezone": "",
"title": "Kubernetes / System / CoreDNS",
"uid": "k8s_system_coredns",
"version": 14,
"version": 15,
"weekStart": ""
}

0 comments on commit 7904361

Please sign in to comment.