From 9811516bac1d00ed699b88a2141d8390b29eb3ce Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Thu, 14 Nov 2019 23:33:49 +0100 Subject: [PATCH] stats: stats-settings - Add description setting for metrics. --- src/stats/stats-settings.c | 2 ++ src/stats/stats-settings.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/stats/stats-settings.c b/src/stats/stats-settings.c index 3e8e045851..3f0643033a 100644 --- a/src/stats/stats-settings.c +++ b/src/stats/stats-settings.c @@ -110,6 +110,7 @@ static const struct setting_define stats_metric_setting_defines[] = { { SET_STRLIST, "filter", offsetof(struct stats_metric_settings, filter), NULL }, DEF(SET_STR, exporter), DEF(SET_STR, exporter_include), + DEF(SET_STR, description), SETTING_DEFINE_LIST_END }; @@ -122,6 +123,7 @@ static const struct stats_metric_settings stats_metric_default_settings = { .exporter = "", .group_by = "", .exporter_include = "name hostname timestamps categories fields", + .description = "", }; const struct setting_parser_info stats_metric_setting_parser_info = { diff --git a/src/stats/stats-settings.h b/src/stats/stats-settings.h index d5a7224779..821056c4e8 100644 --- a/src/stats/stats-settings.h +++ b/src/stats/stats-settings.h @@ -96,6 +96,7 @@ struct stats_metric_settings_group_by { struct stats_metric_settings { const char *name; + const char *description; const char *event_name; const char *source_location; const char *categories; -- 2.47.3