diff --git a/dashboards/victoriametrics-cluster.json b/dashboards/victoriametrics-cluster.json index 98d9f20ac..ee1c5ef9c 100644 --- a/dashboards/victoriametrics-cluster.json +++ b/dashboards/victoriametrics-cluster.json @@ -69,6 +69,19 @@ "iconColor": "red", "name": "alerts", "titleFormat": "{{alertname}}" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$ds" + }, + "enable": true, + "expr": "sum(vm_app_version{job=~\"$job\"}) by(short_version) unless (sum(vm_app_version{job=~\"$job\"} offset 20m) by(short_version))", + "hide": true, + "iconColor": "dark-blue", + "name": "version change", + "textFormat": "{{short_version}}", + "titleFormat": "Version change" } ] }, diff --git a/dashboards/victoriametrics.json b/dashboards/victoriametrics.json index f4dbadc4f..b2be474c4 100644 --- a/dashboards/victoriametrics.json +++ b/dashboards/victoriametrics.json @@ -69,6 +69,19 @@ "iconColor": "red", "name": "alerts", "titleFormat": "{{alertname}}" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$ds" + }, + "enable": true, + "expr": "sum(vm_app_version{job=~\"$job\"}) by(short_version) unless (sum(vm_app_version{job=~\"$job\"} offset 20m) by(short_version))", + "hide": true, + "iconColor": "dark-blue", + "name": "version", + "textFormat": "{{short_version}}", + "titleFormat": "Version change" } ] }, diff --git a/dashboards/vmalert.json b/dashboards/vmalert.json index e7973a1c2..7d660455f 100644 --- a/dashboards/vmalert.json +++ b/dashboards/vmalert.json @@ -52,6 +52,19 @@ "type": "dashboard" }, "type": "dashboard" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$ds" + }, + "enable": true, + "expr": "sum(vm_app_version{job=~\"$job\"}) by(short_version) unless (sum(vm_app_version{job=~\"$job\"} offset 20m) by(short_version))", + "hide": true, + "iconColor": "dark-blue", + "name": "version", + "textFormat": "{{short_version}}", + "titleFormat": "Version change" } ] },