Skip to content

Commit

Permalink
Update etcd-k8s-events-and-resources-count.json
Browse files Browse the repository at this point in the history
  • Loading branch information
whites11 authored Oct 26, 2023
1 parent 363cb84 commit 3838bb0
Showing 1 changed file with 11 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,12 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"exemplar": true,
"expr": "sum (etcd_kubernetes_resources_count{cluster_id=\"$cluster\", namespace=~\"$namespace\", kind=~\"$kind\"}) by (namespace)",
"expr": "sum (etcd_kubernetes_resources_count{cluster_id=\"$cluster\", namespace=~\"$namespace\"}) by (namespace)",
"interval": "",
"legendFormat": "{{namespace}}",
"range": true,
"refId": "A"
}
],
Expand Down Expand Up @@ -311,7 +313,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(etcd_kubernetes_resources_count{cluster_id=\"$cluster\", kind=\"events\",namespace=\"$namespace\"})",
"expr": "sum(etcd_kubernetes_resources_count{cluster_id=\"$cluster\", kind=\"events\",namespace=~\"$namespace\"})",
"instant": true,
"interval": "",
"legendFormat": "",
Expand Down Expand Up @@ -404,22 +406,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(etcd_kubernetes_events_count{cluster_id=\"$cluster\"}[1h]))",
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Total",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "sum(rate(etcd_kubernetes_events_count{cluster_id=\"$cluster\"}[1h])) by (namespace)",
"expr": "sum(rate(etcd_kubernetes_events_count{cluster_id=\"$cluster\", namespace=~\"$namespace\"}[1h])) by (namespace)",
"hide": false,
"instant": false,
"legendFormat": "{{namespace}}",
Expand Down Expand Up @@ -514,7 +501,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "sum(etcd_kubernetes_events_count{cluster_id=\"$cluster\",namespace=\"$namespace\"}) by (kind)",
"expr": "sum(etcd_kubernetes_events_count{cluster_id=\"$cluster\",namespace=~\"$namespace\"}) by (kind)",
"hide": false,
"instant": false,
"legendFormat": "{{kind}}",
Expand Down Expand Up @@ -610,7 +597,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "sum(etcd_kubernetes_events_count{cluster_id=\"$cluster\",namespace=\"$namespace\"}) by (reason)",
"expr": "sum(etcd_kubernetes_events_count{cluster_id=\"$cluster\",namespace=~\"$namespace\"}) by (reason)",
"hide": false,
"instant": false,
"legendFormat": "{{reason}}",
Expand Down Expand Up @@ -706,7 +693,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "sum(etcd_kubernetes_events_count{cluster_id=\"$cluster\",namespace=\"$namespace\"}) by (namespace)",
"expr": "sum(etcd_kubernetes_events_count{cluster_id=\"$cluster\",namespace=~\"$namespace\"}) by (namespace)",
"hide": false,
"instant": false,
"legendFormat": "{{namespace}}",
Expand All @@ -729,7 +716,7 @@
"list": [
{
"current": {
"selected": false,
"selected": true,
"text": "gaia",
"value": "gaia"
},
Expand Down Expand Up @@ -759,10 +746,10 @@
"current": {
"selected": true,
"text": [
"default"
"All"
],
"value": [
"default"
"$__all"
]
},
"datasource": {
Expand Down

0 comments on commit 3838bb0

Please sign in to comment.