Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Create percentual bucketspan vars #242

Conversation

albertoperdomo2
Copy link
Contributor

Overview

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). So, I introduced the variables to be able to do so.

What this PR does / why we need it

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".

Special notes for your reviewer

Does this PR introduce a user-facing change?

NONE


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".
@albertoperdomo2
Copy link
Contributor Author

@diafour please, let's continue in this PR. Sorry for the inconvenience.

@diafour diafour merged commit 4486a43 into flant:master Apr 7, 2022
@diafour diafour added this to the 0.5.0 milestone Apr 7, 2022
@diafour diafour linked an issue Apr 7, 2022 that may be closed by this pull request
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible enhancement: Add scopedVars that points to bucket timestamp
2 participants