Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A single list in the Dashboard for Enabled/Disabled servers #1457

Open
img0043 opened this issue Apr 24, 2024 · 2 comments
Open

A single list in the Dashboard for Enabled/Disabled servers #1457

img0043 opened this issue Apr 24, 2024 · 2 comments

Comments

@img0043
Copy link

img0043 commented Apr 24, 2024

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

@chinaxushi
Copy link

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

@breed808
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants