flant / grafana-statusmap

Grafana panel plugin to visualize status of multiple objects over time
MIT License
829 stars 43 forks source link

Create percentual bucketspan vars #222

Closed albertoperdomo2 closed 2 years ago

albertoperdomo2 commented 3 years ago

In some cases scenarios, the status panel is used to go from one dashboard to a more specific one, e.g. when performing root/cause analysis. In such cases, the user may want to reduce the scope of the time span, while keeping the desired event centered (to be able to analyse the previous/posterior buckets of time).

The status panel does not have dynamically arranged variables to do so, and this is what this PR tries to solve. It is a super-duper simple implementation which comes from the experience. After some tests, we found that 4h bucket span works perfectly with a 7 days dashboard time range, which is a 2.4% of it.

This way, the scope and time span of the dashboard can be reduced, acting like a "zoom".

diafour commented 2 years ago

Hello! Thank you for PR!

Can you add the description of new variables in README.md?

albertoperdomo2 commented 2 years ago

@diafour done!

albertoperdomo2 commented 2 years ago

The content of this PR is now in #242