diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-08-10 18:02:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-10 18:02:47 +0300 |
commit | ba33d9508d184f2fe92ba43ecb0b7570d14524e4 (patch) | |
tree | 14997a44d164fa1a23f89ff9ee88d4f57c2180bf /collectors/plugins.d | |
parent | 060dfc80ed6de73416fff69761bdc9e32abfbcfd (diff) |
count functions as collections, to restart plugins (#15787)
Diffstat (limited to 'collectors/plugins.d')
-rw-r--r-- | collectors/plugins.d/pluginsd_parser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/collectors/plugins.d/pluginsd_parser.c b/collectors/plugins.d/pluginsd_parser.c index 8be6f428f4..40437888f6 100644 --- a/collectors/plugins.d/pluginsd_parser.c +++ b/collectors/plugins.d/pluginsd_parser.c @@ -887,6 +887,8 @@ static inline PARSER_RC pluginsd_function(char **words, size_t num_words, PARSER rrd_collector_add_function(host, st, name, timeout, help, false, pluginsd_execute_function_callback, parser); + parser->user.data_collections_count++; + return PARSER_RC_OK; } @@ -895,6 +897,8 @@ static void pluginsd_function_result_end(struct parser *parser, void *action_dat if(key) dictionary_del(parser->inflight.functions, string2str(key)); string_freez(key); + + parser->user.data_collections_count++; } static inline PARSER_RC pluginsd_function_result_begin(char **words, size_t num_words, PARSER *parser) { |