diff --git a/resources/grafana/generated/dashboards/rhacs-cluster-overview-configmap.yaml b/resources/grafana/generated/dashboards/rhacs-cluster-overview-configmap.yaml index bb55db02..c0affb7f 100644 --- a/resources/grafana/generated/dashboards/rhacs-cluster-overview-configmap.yaml +++ b/resources/grafana/generated/dashboards/rhacs-cluster-overview-configmap.yaml @@ -36,10 +36,21 @@ data: "uid": "PBFA97CFB590B2093" }, "enable": true, - "expr": "count (count by (git_version) (label_replace(kubernetes_build_info{job!~\"kube-dns|coredns\"}, \"git_version\", \"$1\", \"git_version\", \"(v[0-9]*.[0-9]*).*\"))) > 1", "iconColor": "purple", - "name": "Upgrade", + "expr": "count (count by (git_version) (label_replace(kubernetes_build_info{job!~\"kube-dns|coredns\"}, \"git_version\", \"$1\", \"git_version\", \"(v[0-9]*.[0-9]*).*\"))) > 1", + "name": "Kubernetes Upgrade", "textFormat": "Kubernetes Upgrade" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "enable": true, + "iconColor": "purple", + "expr": "count (count by (gitVersion) (openshift_apiserver_build_info)) > 1", + "name": "Openshift Upgrade", + "textFormat": "Openshift Upgrade" } ] }, diff --git a/resources/grafana/generated/dashboards/rhacs-cluster-overview-dashboard.yaml b/resources/grafana/generated/dashboards/rhacs-cluster-overview-dashboard.yaml index c2e162f8..c95777e9 100644 --- a/resources/grafana/generated/dashboards/rhacs-cluster-overview-dashboard.yaml +++ b/resources/grafana/generated/dashboards/rhacs-cluster-overview-dashboard.yaml @@ -36,10 +36,21 @@ spec: "uid": "PBFA97CFB590B2093" }, "enable": true, - "expr": "count (count by (git_version) (label_replace(kubernetes_build_info{job!~\"kube-dns|coredns\"}, \"git_version\", \"$1\", \"git_version\", \"(v[0-9]*.[0-9]*).*\"))) > 1", "iconColor": "purple", - "name": "Upgrade", + "expr": "count (count by (git_version) (label_replace(kubernetes_build_info{job!~\"kube-dns|coredns\"}, \"git_version\", \"$1\", \"git_version\", \"(v[0-9]*.[0-9]*).*\"))) > 1", + "name": "Kubernetes Upgrade", "textFormat": "Kubernetes Upgrade" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "enable": true, + "iconColor": "purple", + "expr": "count (count by (gitVersion) (openshift_apiserver_build_info)) > 1", + "name": "Openshift Upgrade", + "textFormat": "Openshift Upgrade" } ] }, diff --git a/resources/grafana/sources/rhacs-cluster-overview.json b/resources/grafana/sources/rhacs-cluster-overview.json index 3407c9a4..442d4d23 100644 --- a/resources/grafana/sources/rhacs-cluster-overview.json +++ b/resources/grafana/sources/rhacs-cluster-overview.json @@ -25,10 +25,21 @@ "uid": "PBFA97CFB590B2093" }, "enable": true, - "expr": "count (count by (git_version) (label_replace(kubernetes_build_info{job!~\"kube-dns|coredns\"}, \"git_version\", \"$1\", \"git_version\", \"(v[0-9]*.[0-9]*).*\"))) > 1", "iconColor": "purple", - "name": "Upgrade", + "expr": "count (count by (git_version) (label_replace(kubernetes_build_info{job!~\"kube-dns|coredns\"}, \"git_version\", \"$1\", \"git_version\", \"(v[0-9]*.[0-9]*).*\"))) > 1", + "name": "Kubernetes Upgrade", "textFormat": "Kubernetes Upgrade" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "enable": true, + "iconColor": "purple", + "expr": "count (count by (gitVersion) (openshift_apiserver_build_info)) > 1", + "name": "Openshift Upgrade", + "textFormat": "Openshift Upgrade" } ] }, diff --git a/resources/prometheus/federation-config-base.yaml b/resources/prometheus/federation-config-base.yaml index 33a70c2f..60b16a5b 100644 --- a/resources/prometheus/federation-config-base.yaml +++ b/resources/prometheus/federation-config-base.yaml @@ -3,3 +3,4 @@ match[]: # This is an example. - up{job!~"central|scanner"} + - openshift_apiserver_build_info diff --git a/resources/prometheus/federation-config.yaml b/resources/prometheus/federation-config.yaml index c63da907..11b05d7c 100644 --- a/resources/prometheus/federation-config.yaml +++ b/resources/prometheus/federation-config.yaml @@ -154,6 +154,7 @@ match[]: - node_netstat_Tcp_RetransSegs{job!~"central|scanner"} - node_quantile:kubelet_pleg_relist_duration_seconds:histogram_quantile{job!~"central|scanner"} - obs_operator:prometheus_remote_storage_succeeded_samples:ratio_rate1h{job!~"central|scanner"} + - openshift_apiserver_build_info - process_cpu_seconds_total{job!~"central|scanner"} - process_resident_memory_bytes{job!~"central|scanner"} - prometheus_remote_storage_samples_failed_total{job!~"central|scanner"}