How can I set min, max and threshold values of Gauge dynamically from datasource.ts?

I am using Grafana 7.5.7

I have created a data source custom plugin. My custom plugin is connected with cassandra datasource…I have 5 sensors in my application. The min, max and threshold values of each sensor are different… So I need to set the min, max and threshold values from backend/dynamically.

I was not able to set through variable as these are numeric fields .

Can anyone help me to set these fields through datasource.ts file or any other way.

Short answer: You cannot set thresholds dynamically.

I asked the same question a while back: Threshhold lines

This topic was automatically closed after 365 days. New replies are no longer allowed.