cachethq / core

🚦 The core of Cachet, the open-source status page system.
https://cachethq.io
MIT License
101 stars 20 forks source link

Implementing metrics into the status page #58

Open Ionys320 opened 1 month ago

Ionys320 commented 1 month ago

This is a WIP but allows you to monitor the changes related to issue #56.

This feature is actively using Alpine. Maybe some parts could be improved to use Laravel in a better way (for example, avoid using <?php echo json_encode($metric); ?> in the code).

No issue is currently know.

Please note that for debugging purposes, each metric is displayed twice. The reason is that by default, we only have one metric. It allows testing the individual component with two different instances.

Screen of the current version: image

Ionys320 commented 1 month ago

Btw I have some questions on how/when the calculation (avg, sum) should be performed. I guess in src/View/Components/Metrics.php, but I'm not sure.

jbrooksuk commented 1 week ago

@Ionys320 how's this going? :)

Ionys320 commented 4 days ago

Hi @jbrooksuk! I would need to know how the avg/sum must be made, and where. I don't really know how this part of the feature is working. And after this, I don't know if something would be missing, let me know!