Hello!
I want to control time which my children play games.
I set up Windows exporter with process metrics exported to Prometheus.
I want to get alert when some process (I know label with process name) was 
running more than 2 hours during current day.

I have some metrics from process, the most useful is:
    
windows_process_start_time{creating_process_id="12948",process="game_process_name",process_id="10884"}
 
1.609964221518098e+09

The simpliest alert may be 
time() - windows_process_start_time{process="game_process_name"} > 7200
But the child may stop playing after 1 hour and restart the game, to it 
will be new windows_process_start_time metric with unique process_id.
Also child may poweroff computer and continue to play after some time.

So I want to get time while metric 
windows_process_start_time{process="game_process_name"} is present during 
current day.
Is it possible?

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/1d424945-2a86-4efd-825d-5474281b185bn%40googlegroups.com.

Reply via email to