Measure time metric is above threshold
问题 I have a metric for my Minecraft server, mc_player_online . It shows 1 if a player is online, or 0 otherwise. I can graph it to show how many players have been online. I want to calculate the play time of a player on the Minecraft server. The output could be tabulated to show "Player Steve's Playtime = 2d 3h 45m". How can I calculate how long a player is online for? I'd also like to calculate the utilisation of the server. So if the server is running from 12:00 to 13:00, and 10 players log on