Skip to content

Commit

Permalink
fix typo in promstatsd error message
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
laf0rge committed Dec 20, 2023
1 parent 9360217 commit c4fc6a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imap/promstatsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit c4fc6a1

Please sign in to comment.