Skip to content

Commit

Permalink
Remove app label in phoenix dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
fiunchinho committed Jun 25, 2024
1 parent 7f39fcc commit d3c7756
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 29 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

- Removed the dashboard 'Webhook Health'.
- Removed the dashboard 'Webhook Health'.
- Get rid of the `app` label in Phoenix dashboards.

## [3.19.0] - 2024-06-13

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"uid": "${loki_datasource}"
},
"editorMode": "builder",
"expr": "{app=~\"cluster-api-provider-aws|capa-iam-operator|aws-resolver-rules-operator|irsa-operator\"} |~ `(?i)error` |= `$cluster` | logfmt",
"expr": "{job=~\"cluster-api-provider-aws|capa-iam-operator|aws-resolver-rules-operator|irsa-operator\"} |~ `(?i)error` |= `$cluster` | logfmt",
"queryType": "range",
"refId": "A"
}
Expand Down Expand Up @@ -106,7 +106,7 @@
"type": "prometheus",
"uid": "${prometheus_datasource}"
},
"definition": "label_values(up{app=\"kubernetes\"},cluster_id)",
"definition": "label_values(up{job=\"kubernetes\"},cluster_id)",
"hide": 0,
"includeAll": false,
"label": "Cluster",
Expand All @@ -115,7 +115,7 @@
"options": [],
"query": {
"qryType": 1,
"query": "label_values(up{app=\"kubernetes\"},cluster_id)",
"query": "label_values(up{job=\"kubernetes\"},cluster_id)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"uid": "${loki_datasource}"
},
"editorMode": "builder",
"expr": "{app=~\"cluster-api\"} |~ `(?i)error` |= `$cluster` | logfmt",
"expr": "{job=~\"cluster-api\"} |~ `(?i)error` |= `$cluster` | logfmt",
"queryType": "range",
"refId": "A"
}
Expand Down Expand Up @@ -106,7 +106,7 @@
"type": "prometheus",
"uid": "${prometheus_datasource}"
},
"definition": "label_values(up{app=\"kubernetes\"},cluster_id)",
"definition": "label_values(up{job=\"kubernetes\"},cluster_id)",
"hide": 0,
"includeAll": false,
"label": "Cluster",
Expand All @@ -115,7 +115,7 @@
"options": [],
"query": {
"qryType": 1,
"query": "label_values(up{app=\"kubernetes\"},cluster_id)",
"query": "label_values(up{job=\"kubernetes\"},cluster_id)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 2,
Expand Down
8 changes: 4 additions & 4 deletions helm/dashboards/dashboards/aws/private/kiam.json
Original file line number Diff line number Diff line change
Expand Up @@ -2941,7 +2941,7 @@
"calcs": [
"lastNotNull"
],
"fields": "/^{app=\"kube-state-metrics\", cluster_id=\"xz9op\", cluster_type=~\"workload_cluster\", daemonset=\"kiam-server\", namespace=\"kube-system\", job=~\"workload-cluster-xz9op-workload\", namespace=\"kube-system\", node=\"ip-10-1-2-161.eu-west-1.compute.internal\", pod=\"kube-state-metrics-7f7d997cbd-v8g5w\"}$/",
"fields": "/^{job=\"kube-state-metrics\", cluster_id=\"xz9op\", cluster_type=~\"workload_cluster\", daemonset=\"kiam-server\", namespace=\"kube-system\", job=~\"workload-cluster-xz9op-workload\", namespace=\"kube-system\", node=\"ip-10-1-2-161.eu-west-1.compute.internal\", pod=\"kube-state-metrics-7f7d997cbd-v8g5w\"}$/",
"values": false
},
"showPercentChange": false,
Expand Down Expand Up @@ -3103,7 +3103,7 @@
"calcs": [
"lastNotNull"
],
"fields": "/^{app=\"kube-state-metrics\", cluster_id=\"xz9op\", cluster_type=~\"workload_cluster\", daemonset=\"kiam-server\", namespace=\"kube-system\", job=~\"workload-cluster-xz9op-workload\", namespace=\"kube-system\", node=\"ip-10-1-2-161.eu-west-1.compute.internal\", pod=\"kube-state-metrics-7f7d997cbd-v8g5w\"}$/",
"fields": "/^{job=\"kube-state-metrics\", cluster_id=\"xz9op\", cluster_type=~\"workload_cluster\", daemonset=\"kiam-server\", namespace=\"kube-system\", job=~\"workload-cluster-xz9op-workload\", namespace=\"kube-system\", node=\"ip-10-1-2-161.eu-west-1.compute.internal\", pod=\"kube-state-metrics-7f7d997cbd-v8g5w\"}$/",
"values": false
},
"showPercentChange": false,
Expand Down Expand Up @@ -3291,7 +3291,7 @@
"calcs": [
"lastNotNull"
],
"fields": "/^{app=\"kube-state-metrics\", cluster_id=\"xz9op\", cluster_type=~\"workload_cluster\", daemonset=\"kiam-agent\", namespace=\"kube-system\", job=~\"workload-cluster-xz9op-workload\", namespace=\"kube-system\", node=\"ip-10-1-2-161.eu-west-1.compute.internal\", pod=\"kube-state-metrics-7f7d997cbd-v8g5w\"}$/",
"fields": "/^{job=\"kube-state-metrics\", cluster_id=\"xz9op\", cluster_type=~\"workload_cluster\", daemonset=\"kiam-agent\", namespace=\"kube-system\", job=~\"workload-cluster-xz9op-workload\", namespace=\"kube-system\", node=\"ip-10-1-2-161.eu-west-1.compute.internal\", pod=\"kube-state-metrics-7f7d997cbd-v8g5w\"}$/",
"values": false
},
"showPercentChange": false,
Expand Down Expand Up @@ -3451,7 +3451,7 @@
"calcs": [
"lastNotNull"
],
"fields": "/^{app=\"kube-state-metrics\", cluster_id=\"xz9op\", cluster_type=~\"workload_cluster\", daemonset=\"kiam-agent\", namespace=\"kube-system\", job=~\"workload-cluster-xz9op-workload\", namespace=\"kube-system\", node=\"ip-10-1-2-161.eu-west-1.compute.internal\", pod=\"kube-state-metrics-7f7d997cbd-v8g5w\"}$/",
"fields": "/^{job=\"kube-state-metrics\", cluster_id=\"xz9op\", cluster_type=~\"workload_cluster\", daemonset=\"kiam-agent\", namespace=\"kube-system\", job=~\"workload-cluster-xz9op-workload\", namespace=\"kube-system\", node=\"ip-10-1-2-161.eu-west-1.compute.internal\", pod=\"kube-state-metrics-7f7d997cbd-v8g5w\"}$/",
"values": false
},
"showPercentChange": false,
Expand Down
36 changes: 18 additions & 18 deletions helm/dashboards/dashboards/mixin/kube-proxy.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
{
"datasource": "$datasource",
"exemplar": true,
"expr": "sum(up{app=\"kube-proxy\"})",
"expr": "sum(up{job=\"kube-proxy\"})",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -155,7 +155,7 @@
{
"datasource": "$datasource",
"exemplar": true,
"expr": "sum(rate(kubeproxy_sync_proxy_rules_duration_seconds_count{app=\"kube-proxy\", cluster_id=\"$cluster_id\", pod=~\"$instance\"}[5m]))",
"expr": "sum(rate(kubeproxy_sync_proxy_rules_duration_seconds_count{job=\"kube-proxy\", cluster_id=\"$cluster_id\", pod=~\"$instance\"}[5m]))",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -249,7 +249,7 @@
{
"datasource": "$datasource",
"exemplar": true,
"expr": "histogram_quantile(0.99,rate(kubeproxy_sync_proxy_rules_duration_seconds_bucket{app=\"kube-proxy\",cluster_id=\"$cluster_id\",pod=~\"$instance\"}[5m]))",
"expr": "histogram_quantile(0.99,rate(kubeproxy_sync_proxy_rules_duration_seconds_bucket{job=\"kube-proxy\",cluster_id=\"$cluster_id\",pod=~\"$instance\"}[5m]))",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -343,7 +343,7 @@
{
"datasource": "$datasource",
"exemplar": true,
"expr": "sum(rate(kubeproxy_network_programming_duration_seconds_count{app=\"kube-proxy\", cluster_id=\"$cluster_id\",pod=~\"$instance\"}[5m]))",
"expr": "sum(rate(kubeproxy_network_programming_duration_seconds_count{job=\"kube-proxy\", cluster_id=\"$cluster_id\",pod=~\"$instance\"}[5m]))",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -440,7 +440,7 @@
{
"datasource": "$datasource",
"exemplar": true,
"expr": "histogram_quantile(0.99, sum(rate(kubeproxy_network_programming_duration_seconds_bucket{app=\"kube-proxy\", cluster_id=\"$cluster_id\",pod=~\"$instance\"}[5m])) by (instance, le))",
"expr": "histogram_quantile(0.99, sum(rate(kubeproxy_network_programming_duration_seconds_bucket{job=\"kube-proxy\", cluster_id=\"$cluster_id\",pod=~\"$instance\"}[5m])) by (instance, le))",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -537,7 +537,7 @@
{
"datasource": "$datasource",
"exemplar": true,
"expr": "sum(rate(rest_client_requests_total{app=\"kube-proxy\", cluster_id=\"deu01\", code=~\"2..\"}[5m]))",
"expr": "sum(rate(rest_client_requests_total{job=\"kube-proxy\", cluster_id=\"deu01\", code=~\"2..\"}[5m]))",
"format": "time_series",
"instant": false,
"interval": "",
Expand All @@ -548,7 +548,7 @@
{
"datasource": "$datasource",
"exemplar": true,
"expr": "sum(rate(rest_client_requests_total{app=\"kube-proxy\", cluster_id=\"deu01\", code=~\"3..\"}[5m]))",
"expr": "sum(rate(rest_client_requests_total{job=\"kube-proxy\", cluster_id=\"deu01\", code=~\"3..\"}[5m]))",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand All @@ -558,7 +558,7 @@
{
"datasource": "$datasource",
"exemplar": true,
"expr": "sum(rate(rest_client_requests_total{app=\"kube-proxy\", cluster_id=\"deu01\", code=~\"4..\"}[5m]))",
"expr": "sum(rate(rest_client_requests_total{job=\"kube-proxy\", cluster_id=\"deu01\", code=~\"4..\"}[5m]))",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand All @@ -568,7 +568,7 @@
{
"datasource": "$datasource",
"exemplar": true,
"expr": "sum(rate(rest_client_requests_total{app=\"kube-proxy\", cluster_id=\"deu01\", code=~\"5..\"}[5m]))",
"expr": "sum(rate(rest_client_requests_total{job=\"kube-proxy\", cluster_id=\"deu01\", code=~\"5..\"}[5m]))",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -663,7 +663,7 @@
{
"datasource": "$datasource",
"exemplar": true,
"expr": "sum(rate(rest_client_request_duration_seconds_count{app=\"kube-proxy\",cluster_id=\"$cluster_id\",pod=~\"$instance\",verb=\"POST\"}[5m]))",
"expr": "sum(rate(rest_client_request_duration_seconds_count{job=\"kube-proxy\",cluster_id=\"$cluster_id\",pod=~\"$instance\",verb=\"POST\"}[5m]))",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -760,7 +760,7 @@
{
"datasource": "$datasource",
"exemplar": true,
"expr": "sum(rate(rest_client_request_duration_seconds_count{app=\"kube-proxy\", cluster_id=\"$cluster_id\",pod=~\"$instance\", verb=\"GET\"}[5m]))",
"expr": "sum(rate(rest_client_request_duration_seconds_count{job=\"kube-proxy\", cluster_id=\"$cluster_id\",pod=~\"$instance\", verb=\"GET\"}[5m]))",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -857,7 +857,7 @@
{
"datasource": "$datasource",
"exemplar": true,
"expr": "process_resident_memory_bytes{app=\"kube-proxy\",cluster_id=\"$cluster_id\",pod=~\"$instance\"}",
"expr": "process_resident_memory_bytes{job=\"kube-proxy\",cluster_id=\"$cluster_id\",pod=~\"$instance\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -953,7 +953,7 @@
{
"datasource": "$datasource",
"exemplar": true,
"expr": "rate(process_cpu_seconds_total{app=\"kube-proxy\",cluster_id=\"$cluster_id\",pod=~\"$instance\"}[5m])",
"expr": "rate(process_cpu_seconds_total{job=\"kube-proxy\",cluster_id=\"$cluster_id\",pod=~\"$instance\"}[5m])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -1050,7 +1050,7 @@
{
"datasource": "$datasource",
"exemplar": true,
"expr": "go_goroutines{app=\"kube-proxy\",cluster_id=\"$cluster_id\",pod=~\"$instance\"}",
"expr": "go_goroutines{job=\"kube-proxy\",cluster_id=\"$cluster_id\",pod=~\"$instance\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -1121,14 +1121,14 @@
"value": "$__all"
},
"datasource": "$datasource",
"definition": "label_values(rest_client_requests_total{app=\"kube-proxy\"}, pod)",
"definition": "label_values(rest_client_requests_total{job=\"kube-proxy\"}, pod)",
"hide": 0,
"includeAll": true,
"multi": false,
"name": "instance",
"options": [],
"query": {
"query": "label_values(rest_client_requests_total{app=\"kube-proxy\"}, pod)",
"query": "label_values(rest_client_requests_total{job=\"kube-proxy\"}, pod)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
Expand All @@ -1143,14 +1143,14 @@
{
"current": {},
"datasource": "$datasource",
"definition": "label_values(process_cpu_seconds_total{app=\"kube-proxy\"}, cluster_id)",
"definition": "label_values(process_cpu_seconds_total{job=\"kube-proxy\"}, cluster_id)",
"hide": 0,
"includeAll": false,
"multi": true,
"name": "cluster_id",
"options": [],
"query": {
"query": "label_values(process_cpu_seconds_total{app=\"kube-proxy\"}, cluster_id)",
"query": "label_values(process_cpu_seconds_total{job=\"kube-proxy\"}, cluster_id)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
Expand Down

0 comments on commit d3c7756

Please sign in to comment.