From bddfca048774d499c7025a86766dc50f5bd951bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Juli=C3=A1n=20Espina?= Date: Tue, 11 Jun 2024 15:49:34 -0600 Subject: [PATCH] fix: Make the prometheus exporter use the cli fallback parsing Since Slurm changed the output of its json format between versions, the exporter breaks while trying to parse the new format. The `-slurm.cli-fallback` option allows the exporter to pass a custom output format through the `--format` option, which should be more resilient against breaking changes. --- snap/snapcraft.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index fce6b5a..3e4a38b 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -77,7 +77,7 @@ apps: install-mode: disable after: [munged] slurm-prometheus-exporter: - command: bin/prometheus-slurm-exporter + command: bin/prometheus-slurm-exporter -slurm.cli-fallback daemon: simple install-mode: disable after: [munged]