]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
stats: replace hardcoded value of default exporter_include with macro
authorsergey.kitov <sergey.kitov@open-xchange.com>
Wed, 9 Jun 2021 14:23:28 +0000 (17:23 +0300)
committersergey.kitov <sergey.kitov@open-xchange.com>
Fri, 3 Sep 2021 12:44:32 +0000 (15:44 +0300)
src/stats/stats-settings.c
src/stats/stats-settings.h

index f5c4e19ded4cca83f9cb3aff2ffb000025eb8d88..0daf1ec890085b829a721025cfae6dc3dd5369bc 100644 (file)
@@ -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 = "",
 };
 
index cc6e9589322c37544c71e08e5971e61f5a628454..54b7f9e4d60613a59d213c5611e25b0b57b8fa8a 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef STATS_SETTINGS_H
 #define STATS_SETTINGS_H
 
+#define STATS_METRIC_SETTINGS_DEFAULT_EXPORTER_INCLUDE \
+       "name hostname timestamps categories fields"
+
 /* <settings checks> */
 /*
  * We allow a selection of a timestamp format.