cachethq / cachet

🚦 The open-source status page system.
https://cachethq.io
MIT License
14.01k stars 1.56k forks source link

Metric's not functioning properly. #4294

Closed PersonalDom closed 1 year ago

PersonalDom commented 3 years ago

Hey there!

I run a Minecraft Server Network, and I'm currently using Cachet to keep people updated on the status of all of our assets.

I'm using a metric to show the count of players across all of our Minecraft servers. When creating the metric, we've used a 2 minute threshold and 'Sum'.

However, we noticed that if a player is online for 2 minutes, Cachet shows 2 players online.

Duration Cachet Shows Actual Count
2 Minutes 2 Players 1 Player
4 Minutes 4 Players 1 Player

(you get the idea.) The best way to explain it is: The plugin updates the api every 2 minutes with the player count. Cachet adds 1 player to the total every 2 minutes.

So we tried using Average, but this provides inaccurate data.

We've updated our code to only update the api if there's a change in the player count.

This also had an issue. Cachet on update, automatically returns to 0. So.. When the player joins, the first API Update is one, if the player count stays the same, the next 2 minute point returns back to 0. We need to it to stay at 1 to resemble the 1 player that's still online.

We're also noticing that only the past 12 hours view is working. All of the other views including past hour shows no data. (flat line)

welcome[bot] commented 3 years ago

:wave: Thank you for opening your first issue. I'm just an automated bot that's here to help you get the information you need quicker, so please ignore this message if it doesn't apply to your issue. If you're looking for support, you should try the Slack group by registering your email address at https://cachethq-slack.herokuapp.com. Alternatively, email support@alt-three.com for our Professional support service (please note, this a paid service.) If you're issue is with documentation, you can suggest edits by clicking the Suggest Edits link on any page, or open an issue at https://github.com/CachetHQ/Docs

jbrooksuk commented 1 year ago

Thank you for your input on Cachet 2.x. We are shifting our attention and resources to Cachet 3.x and will no longer be supporting the 2.x version. If your feedback or issue is relevant to the 3.x series, we encourage you to engage with the new branch.

For more information on the Cachet rebuild and our plans for 3.x, you can read the announcement here.

We appreciate your understanding and look forward to your contributions to the new version.