Hi,
I have cpu usage exporter with these metrics for every running processes.
process_cpu_usage{command="/usr/bin/rsyslog -n"} 0.12
I would like to use this exporter for monitoring if process is running.
I've tried to use absent - but with regexp match it doesn't return "command" label. And I need it for alert description
Eg:
absent(process_cpu_usage{command=~"/usr/sbin/rsyslogd.*", instance="
my-server.com"})
Is there a way how to add label to vector(0)?
Or do you know any other way, how to solve it?
Thank you.