ClusterCockpit / cc-backend

Web frontend and API backend server for ClusterCockpit Monitoring Framework
https://www.clustercockpit.org
MIT License
14 stars 12 forks source link

Metric Plot y-limit #235

Closed giesselmann closed 4 months ago

giesselmann commented 5 months ago

Hi, I think there's an issue with the y-limit of metric plots, given a config of some bandwith e.g. "peak": 12.5, "normal": 0.5, "caution": 1, "alert": 2 The scaling of plots stops at around 5. Looks like some hard limit to me. Haven't checked the code, but the y-axis limit should imo be either data dependent (expensive) or sth. like max(peak, 5*normal) + 10%

spacehamster87 commented 4 months ago

HI there,

actually, you are, or better, were right: It was normal * 10 for the maxY value of metric plots, if values from the dataset reach values higher than that limit - Which is also the reason for your plot ending at a value of 5. Alas, we recently merged two pending pull requests, which changed the condition and the limit to peak * 10 (see here).

If this still causes problems with metric readout, feel free to re-open this ticket!