Prometheus Query when a service is restarted

136 Views Asked by At

I need to create a prom alert for when a service of pcf app is restarted. Can someone help me query it? I tried the below query. But, It's showing o/p single time.

resets(max(process_uptime_seconds{}) by (app,.....)[5m:1m]) > 0

The alert should trigger for each restart

0

There are 0 best solutions below