From c4fc6a17193165a7cc086a2948510c03c666640e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 18 Dec 2023 09:14:44 +0100 Subject: [PATCH] fix typo in promstatsd error message The message so far read cyrus/promstatsd[17284]: Prometheus metrics are not being tracked. Set prometheus_enable in imapd.conf and I added that setting to my imapd.conf, which didn't solve the problem. Further investigation resulted in detecting that the parameter actually is called "prometheus_enabled" and not "prometheus_enable". Let's fix the error message to avoid others falling into the same trap. --- imap/promstatsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap/promstatsd.c b/imap/promstatsd.c index fc00430a7a..0a83a7f929 100644 --- a/imap/promstatsd.c +++ b/imap/promstatsd.c @@ -690,7 +690,7 @@ int main(int argc, char **argv) if (!config_getswitch(IMAPOPT_PROMETHEUS_ENABLED)) { fatal("Prometheus metrics are not being tracked." - " Set prometheus_enable in imapd.conf", + " Set prometheus_enabled in imapd.conf", EX_CONFIG); }