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

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

Open moebiusband73 opened 2 months ago

moebiusband73 commented 2 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 2 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: