HewlettPackard / lustre_exporter

Prometheus exporter for use with the Lustre parallel filesystem
Apache License 2.0
34 stars 51 forks source link

Skip jobstats metric if they don't exist #60

Closed roclark closed 7 years ago

roclark commented 7 years ago

In case a particular jobstats metric isn't located on a node, skip over it instead of trying to parse a value, yielding unexpected results.

Signed-Off-By: Robert Clark robert.d.clark@hpe.com

joehandzik commented 7 years ago

Hmm, out of curiosity, what were the unexpected values?

roclark commented 7 years ago

@joehandzik it would default to parsing the job_id for the specified block. So if, for some reason, one job had write_bytes but another job didn't, you would get expected results for the first, but they would be compared against job_id for the other which would obviously be confusing.