rivosinc / prometheus-slurm-exporter

Export select slurm metrics to prometheus
Apache License 2.0
37 stars 12 forks source link

Handle N/A float types for cli fallbacks #17

Closed abhinavDhulipala closed 1 year ago

abhinavDhulipala commented 1 year ago
"Failed to parse node metrics: sinfo failed to parse line 0: {\"s\": \"completing\", \"mem\": 770000, \"n\": \"cs156\", \"l\": N/A, \"p\": \"hw\", \"fmem\": N/A, \"cstate\": \"56/8/0/64\", \"w\": 1}" 

Nodes that are in a completing state emit N/A as free mem and cpu load. Our parser needs to handle that