Open akotynski opened 6 years ago
Ok. I change thresholds for graphs and this should be possible for singlestat as well.
I'm thinking about this feature and actually can't find a good solution. I don't like the fact that query result makes changes in the dashboard model. And because of this I don't like how this feature works now for graph panels. Dashboard model should be intact. So I want to find another way to implement this. Maybe, template variables are suitable for this, not sure. @akotynski any thoughts?
This issue has been automatically marked as stale because it has not had activity in the last 2 years. It will be closed in 60 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!
I'm submitting a ...
Recently I created dashboard of single stats using grafana template. Each item has triggers configured in Zabbix. It would be nice to provide functionality to set thresholds from zabbix triggers. I already prepared Proof of Concept and it almost work - proper background color is set after first dashboard refresh (maybe you could help me with that? I need a way to re-render dashboard).
Possibilities:
auto
in field thresholds (I'm not sure if this is possible)In grafana we have 3 states of singlestat (ok, warn, error) but in Zabbix we can define much more triggers. My proposition is to set first threshold value from first warning/average trigger and second threshold from first high/disaster trigger. In simplest solution we can take first and last value from array of triggers (I think that in most cases people have only warning and error triggers).
Tomorrow I can provide you code samples.