Using Prometheus and Grafana, I want to show how long a windows process has been running for, in a selected time range.
With:
<code>time() - min by(process) (windows_process_start_time{process="foo"})
</code>
<code>time() - min by(process) (windows_process_start_time{process="foo"})
</code>
time() - min by(process) (windows_process_start_time{process="foo"})
I can display this in a table for an instant
type query so it only works if the process is currently running.
I’ve tried changing query type to range
and with different (eg. max
) aggregations on the whole query but can’t get it to work.
2