Alert to capture flapping windows services

112 views
Skip to first unread message

Pete Leese

unread,
Jul 19, 2018, 8:17:14 AM7/19/18
to Prometheus Users

Hi everyone,


I am looking to create an alert that captures where windows services are "flapping".

I.E going between "start pending" to"stopped" and "Stopped" to "running" over a period of time.

Grafana visualises this nicely with this;

sum(wmi_service_state{instance=~"$server"}) by (state)


However depending where Prometheus is at scrape time can see the service as running and difficult to see where this is occurring as alerts come and go.

Cheers

Pete

Jakub Jakubik

unread,
Jul 19, 2018, 8:19:37 AM7/19/18
to petel...@googlemail.com, Prometheus Users
try changes() - shows the time service changed state over a time window

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/d68c6110-8a17-48f0-b53e-4b7b8775eaff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Kuba Jakubik

Senior Network SRE


E: jjak...@greywizard.com




GreyWizard Sp. z o.o.

ul. Palacza 113

60-273 Poznań, Poland


NIP: 779-24-22-423

Regon: 302744400

KRS: 0000512326



greywizard.com

sup...@greywizard.com

+48 22 201 33 13


Sąd Rejonowy w Poznaniu, VIII Wydział Gospodarczy Krajowego Rejestru Sądowego. Kapitał zakładowy 10000 PLN.



Pete Leese

unread,
Jul 19, 2018, 10:38:54 AM7/19/18
to Prometheus Users
Brilliant - got that working :) Cheers

Pete
Reply all
Reply to author
Forward
0 new messages