Skip to content

Commit

Permalink
kube-proxy Grafana dashboard using k8s_node_name (#30)
Browse files Browse the repository at this point in the history
Changed instance to k8s_node_name in kube-proxy dashboard to have same UX compared to kubelet dashboard
  • Loading branch information
youwalther65 authored Oct 6, 2023
1 parent 6f4e8a2 commit 7bac7d0
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions artifacts/grafana-dashboards/eks/kube-proxy/kube-proxy.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
"type": "prometheus",
"uid": "$datasource"
},
"expr": "sum(rate(kubeproxy_sync_proxy_rules_duration_seconds_count{cluster=\"$cluster\", job=\"$job\", instance=~\"$instance\"}[$__rate_interval]))",
"expr": "sum(rate(kubeproxy_sync_proxy_rules_duration_seconds_count{cluster=\"$cluster\", job=\"$job\", k8s_node_name=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "rate",
Expand Down Expand Up @@ -253,7 +253,7 @@
"type": "prometheus",
"uid": "$datasource"
},
"expr": "histogram_quantile(0.99,rate(kubeproxy_sync_proxy_rules_duration_seconds_bucket{cluster=\"$cluster\", job=\"$job\", instance=~\"$instance\"}[$__rate_interval]))",
"expr": "histogram_quantile(0.99,rate(kubeproxy_sync_proxy_rules_duration_seconds_bucket{cluster=\"$cluster\", job=\"$job\", k8s_node_name=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{instance}}",
Expand Down Expand Up @@ -345,7 +345,7 @@
"type": "prometheus",
"uid": "$datasource"
},
"expr": "sum(rate(kubeproxy_network_programming_duration_seconds_count{cluster=\"$cluster\", job=\"$job\", instance=~\"$instance\"}[$__rate_interval]))",
"expr": "sum(rate(kubeproxy_network_programming_duration_seconds_count{cluster=\"$cluster\", job=\"$job\", k8s_node_name=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "rate",
Expand Down Expand Up @@ -437,7 +437,7 @@
"type": "prometheus",
"uid": "$datasource"
},
"expr": "histogram_quantile(0.99, sum(rate(kubeproxy_network_programming_duration_seconds_bucket{cluster=\"$cluster\", job=\"$job\", instance=~\"$instance\"}[$__rate_interval])) by (instance, le))",
"expr": "histogram_quantile(0.99, sum(rate(kubeproxy_network_programming_duration_seconds_bucket{cluster=\"$cluster\", job=\"$job\", k8s_node_name=~\"$instance\"}[$__rate_interval])) by (instance, le))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{instance}}",
Expand Down Expand Up @@ -529,7 +529,7 @@
"type": "prometheus",
"uid": "$datasource"
},
"expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\", job=\"$job\", instance=~\"$instance\",code=~\"2..\"}[$__rate_interval]))",
"expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\", job=\"$job\", k8s_node_name=~\"$instance\",code=~\"2..\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "2xx",
Expand All @@ -540,7 +540,7 @@
"type": "prometheus",
"uid": "$datasource"
},
"expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\", job=\"$job\", instance=~\"$instance\",code=~\"3..\"}[$__rate_interval]))",
"expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\", job=\"$job\", k8s_node_name=~\"$instance\",code=~\"3..\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "3xx",
Expand All @@ -551,7 +551,7 @@
"type": "prometheus",
"uid": "$datasource"
},
"expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\", job=\"$job\", instance=~\"$instance\",code=~\"4..\"}[$__rate_interval]))",
"expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\", job=\"$job\", k8s_node_name=~\"$instance\",code=~\"4..\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "4xx",
Expand All @@ -561,7 +561,7 @@
"datasource": {
"uid": "$datasource"
},
"expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\", job=\"$job\", instance=~\"$instance\",code=~\"5..\"}[$__rate_interval]))",
"expr": "sum(rate(rest_client_requests_total{cluster=\"$cluster\", job=\"$job\", k8s_node_name=~\"$instance\",code=~\"5..\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "5xx",
Expand Down Expand Up @@ -651,7 +651,7 @@
"type": "prometheus",
"uid": "$datasource"
},
"expr": "histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{cluster=\"$cluster\", job=\"$job\",instance=~\"$instance\",verb=\"POST\"}[$__rate_interval])) by (verb, url, le))",
"expr": "histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{cluster=\"$cluster\", job=\"$job\",k8s_node_name=~\"$instance\",verb=\"POST\"}[$__rate_interval])) by (verb, url, le))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{verb}} {{url}}",
Expand Down Expand Up @@ -743,7 +743,7 @@
"type": "prometheus",
"uid": "$datasource"
},
"expr": "histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{cluster=\"$cluster\", job=\"$job\", instance=~\"$instance\", verb=\"GET\"}[$__rate_interval])) by (verb, url, le))",
"expr": "histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{cluster=\"$cluster\", job=\"$job\", k8s_node_name=~\"$instance\", verb=\"GET\"}[$__rate_interval])) by (verb, url, le))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{verb}} {{url}}",
Expand Down Expand Up @@ -835,7 +835,7 @@
"type": "prometheus",
"uid": "$datasource"
},
"expr": "process_resident_memory_bytes{cluster=\"$cluster\", job=\"$job\",instance=~\"$instance\"}",
"expr": "process_resident_memory_bytes{cluster=\"$cluster\", job=\"$job\",k8s_node_name=~\"$instance\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{instance}}",
Expand Down Expand Up @@ -925,7 +925,7 @@
"type": "prometheus",
"uid": "$datasource"
},
"expr": "rate(process_cpu_seconds_total{cluster=\"$cluster\", job=\"$job\",instance=~\"$instance\"}[$__rate_interval])",
"expr": "rate(process_cpu_seconds_total{cluster=\"$cluster\", job=\"$job\",k8s_node_name=~\"$instance\"}[$__rate_interval])",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{instance}}",
Expand Down Expand Up @@ -1017,7 +1017,7 @@
"type": "prometheus",
"uid": "$datasource"
},
"expr": "go_goroutines{cluster=\"$cluster\", job=\"$job\",instance=~\"$instance\"}",
"expr": "go_goroutines{cluster=\"$cluster\", job=\"$job\",k8s_node_name=~\"$instance\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{instance}}",
Expand Down Expand Up @@ -1115,15 +1115,15 @@
"type": "prometheus",
"uid": "$datasource"
},
"definition": "label_values(up{job=\"$job\", cluster=\"$cluster\"}, instance)",
"definition": "label_values(up{job=\"$job\", cluster=\"$cluster\"}, k8s_node_name)",
"hide": 0,
"includeAll": true,
"label": "instance",
"multi": false,
"name": "instance",
"options": [],
"query": {
"query": "label_values(up{job=\"$job\", cluster=\"$cluster\"}, instance)",
"query": "label_values(up{job=\"$job\", cluster=\"$cluster\"}, k8s_node_name)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
Expand Down

0 comments on commit 7bac7d0

Please sign in to comment.