diff options
author | Vladimir Kobal <vlad@prokk.net> | 2020-05-25 09:54:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 09:54:20 +0300 |
commit | c7651863431c6b383ec2f8af538ff8eeb7269749 (patch) | |
tree | 89dd9d61dec6ad0f23bf4f885017630ecc01db10 /exporting | |
parent | 04c3fb64011a5b7b020a0612fa55082259a55a5e (diff) |
Check update interval for exporting connector instance (#9131)
Diffstat (limited to 'exporting')
-rw-r--r-- | exporting/read_config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/exporting/read_config.c b/exporting/read_config.c index f4dd06d4cd..c7cd46c3cf 100644 --- a/exporting/read_config.c +++ b/exporting/read_config.c @@ -356,6 +356,12 @@ struct engine *read_exporting_config() char *data_source = exporter_get(instance_name, "data source", "average"); tmp_instance->config.options = exporting_parse_data_source(data_source, tmp_instance->config.options); + if (EXPORTING_OPTIONS_DATA_SOURCE(tmp_instance->config.options) != EXPORTING_SOURCE_DATA_AS_COLLECTED && + tmp_instance->config.update_every % localhost->rrd_update_every) + info( + "The update interval %d for instance %s is not a multiple of the database update interval %d. " + "Metric values will deviate at different points in time.", + tmp_instance->config.update_every, tmp_instance->config.name, localhost->rrd_update_every); if (exporter_get_boolean(instance_name, "send configured labels", CONFIG_BOOLEAN_YES)) tmp_instance->config.options |= EXPORTING_OPTION_SEND_CONFIGURED_LABELS; |