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?