Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjustable dashboard variables #14

Open
Sandwich1699975 opened this issue Nov 17, 2024 · 3 comments
Open

Adjustable dashboard variables #14

Sandwich1699975 opened this issue Nov 17, 2024 · 3 comments
Assignees
Labels
dashboard For requests relating to the Grafana Dashboard enhancement New feature or request

Comments

@Sandwich1699975
Copy link
Owner

Have variables on the dashboard to alter ping and download thresholds.

For example, the user should be able to select a numerical value which indicates the yellow warning level threshold and another for the red threshold. Instead of just remembering magic numbers everywhere

@Sandwich1699975 Sandwich1699975 added enhancement New feature or request dashboard For requests relating to the Grafana Dashboard labels Nov 17, 2024
@Sandwich1699975 Sandwich1699975 self-assigned this Nov 17, 2024
@Sandwich1699975
Copy link
Owner Author

This will be difficult.

Having one variable is easy because you can just create a query like $threshold and add a config from field transformation. But you can only have one of these transformations. So you can't do 2 queries and 2 transformations because the latter one will overide the first one.

Therefore, you either need to have multiple rows with the warning and error values returned in one query so they can be set with the one transformation. Or instead of using multiple rows, you can use a key value pair or a json string. I'm not sure how to tackle this atm. For now I will keep the magic hard coded values

@Sandwich1699975
Copy link
Owner Author

@Sandwich1699975
Copy link
Owner Author

Another forum post that's relevant: https://community.grafana.com/t/use-variables-in-any-panels-threshold/39709/4

@Sandwich1699975 Sandwich1699975 mentioned this issue Nov 26, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dashboard For requests relating to the Grafana Dashboard enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant