windows_exporter icon indicating copy to clipboard operation
windows_exporter copied to clipboard

A single list in the Dashboard for Enabled/Disabled servers

Open img0043 opened this issue 10 months ago • 3 comments

photo1711632362

Greetings! Please tell me. This's dashboard for Win servers that receive metrics from windows exporter via Prometheus. Here are the queries for the source selection panel:

photo1711632274 Job: abel_values(windows_cs_hostname, job)

Name: label_values(windows_cs_hostname{job=~\"$job\"}, hostname)

Instance: label_values(windows_cs_hostname{job=~\"$job\",hostname=~\"$hostname\"}, instance)

How to make it so that even disabled/unavailable servers (instance) are displayed, so that it is visible that no information is received from them in the single general list.

It may also be a matter of PromQL queries that return Instance and time UP on the server :

sum by (instance) (windows_service_state{job=~"$job",instance=~"$instance",state=~"running"})

time() - windows_system_system_up_time{job=~"$job",instance=~"$instance"}

Please help me with this.

The dashboard: 1. WINDOWS SERVERS FULL.json

img0043 avatar Apr 24 '24 13:04 img0043

Under normal circumstances, if it's not a problem with the values, it's just a problem with the dashboard. You should go to Grafana and ask questions

chinaxushi avatar Apr 25 '24 00:04 chinaxushi

It may be worth looking at the absent and absent_over_time PromQL functions for unavailable servers. Disabled servers that still respond to Prometheus scrapes would need to be identified by a particular custom metric, possibly one provided by a hypervisor.

https://prometheus.io/docs/prometheus/latest/querying/functions/#absent

breed808 avatar May 15 '24 00:05 breed808

This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

github-actions[bot] avatar Aug 13 '24 02:08 github-actions[bot]