ClusterCockpit / cc-backend

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

Provide a configurable map for any hardcoded metric used in implementation #260

Closed moebiusband73 closed 2 weeks ago

moebiusband73 commented 7 months ago

Currently at several places metric names are hardcoded. This breaks if the metric is missing or the user configured it with a different name.

Solution: Provide a lookup map that can be configured by the user and replace any hardcoded metric name with a check in the lookup map.

spacehamster87 commented 7 months ago

In this specific case (JobFootprint) we need four configurable arrays to allow for the following cases:

That being said, four metrics (cpu_load, flopy_any, mem_bw, mem_used) still will be required by name, for the following reasons: