From: sergey.kitov Date: Wed, 9 Jun 2021 14:23:28 +0000 (+0300) Subject: stats: replace hardcoded value of default exporter_include with macro X-Git-Tag: 2.3.17~152 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eef75dd719796e6e245aa3d95af71137d21a0073;p=thirdparty%2Fdovecot%2Fcore.git stats: replace hardcoded value of default exporter_include with macro --- diff --git a/src/stats/stats-settings.c b/src/stats/stats-settings.c index f5c4e19ded..0daf1ec890 100644 --- a/src/stats/stats-settings.c +++ b/src/stats/stats-settings.c @@ -118,7 +118,7 @@ static const struct stats_metric_settings stats_metric_default_settings = { .filter = "", .exporter = "", .group_by = "", - .exporter_include = "name hostname timestamps categories fields", + .exporter_include = STATS_METRIC_SETTINGS_DEFAULT_EXPORTER_INCLUDE, .description = "", }; diff --git a/src/stats/stats-settings.h b/src/stats/stats-settings.h index cc6e958932..54b7f9e4d6 100644 --- a/src/stats/stats-settings.h +++ b/src/stats/stats-settings.h @@ -1,6 +1,9 @@ #ifndef STATS_SETTINGS_H #define STATS_SETTINGS_H +#define STATS_METRIC_SETTINGS_DEFAULT_EXPORTER_INCLUDE \ + "name hostname timestamps categories fields" + /* */ /* * We allow a selection of a timestamp format.