전원표
전원표

Reputation: 170

How can I set max value of Y-axis dynamically in Grafana

I am using prometheus and grafana together. When I show the load1, load5, and load15 metrics, I want to dynamically set the max value of the y axis to the number of cpu. Is there any way to dynamically set the y axis in the grafana graph when the graph is plotted?

Upvotes: 4

Views: 9188

Answers (2)

ruasoliveira
ruasoliveira

Reputation: 312

I guess you want to use variables in the Min/Max fields of the axis. If so, there is no official support for this. You can check the status for this feature at: https://github.com/grafana/grafana/issues/3935

Possible workaround: someone suggested a patch in the comments of the issue I mentioned: https://github.com/grafana/grafana/issues/3935#issuecomment-403503102

Maybe it will work for you.

Upvotes: 0

brian-brazil
brian-brazil

Reputation: 34152

This isn't possible, and it is possible for load average to be higher than the number of cores.

Upvotes: 2

Related Questions