From 4ebdcc290e1fb713b2ab1ed7c4fee5214fc0bd38 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 24 Aug 2021 10:57:23 -0400 Subject: [PATCH] fixup! hydra-notify: pre-declare metrics --- src/script/hydra-notify | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/script/hydra-notify b/src/script/hydra-notify index 92776eaf..770f0620 100755 --- a/src/script/hydra-notify +++ b/src/script/hydra-notify @@ -22,7 +22,8 @@ my $config = getHydraConfig(); my $prom = Prometheus::Tiny::Shared->new; # Note: It is very important to pre-declare any metrics before using them. -# Add a new declaration for any new metrics you create. See: +# Add a new declaration for any new metrics you create. Metrics which are +# not pre-declared disappear when their value is null. See: # https://metacpan.org/pod/Prometheus::Tiny#declare $prom->declare( "notify_plugin_executions",