From bb50acdcb8073654ea667b8c0272e335bd43f844 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 14 Apr 2022 20:12:14 +0200 Subject: Merging upstream version 1.34.0. Signed-off-by: Daniel Baumann --- streaming/rrdpush.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'streaming/rrdpush.c') diff --git a/streaming/rrdpush.c b/streaming/rrdpush.c index ebd8327f0..8829d1eea 100644 --- a/streaming/rrdpush.c +++ b/streaming/rrdpush.c @@ -41,7 +41,7 @@ struct config stream_config = { unsigned int default_rrdpush_enabled = 0; #ifdef ENABLE_COMPRESSION -unsigned int default_compression_enabled = 0; +unsigned int default_compression_enabled = 1; #endif char *default_rrdpush_destination = NULL; char *default_rrdpush_api_key = NULL; @@ -129,6 +129,13 @@ unsigned int remote_clock_resync_iterations = 60; static inline int should_send_chart_matching(RRDSET *st) { + // Do not stream anomaly rates charts. + if (unlikely(st->state->is_ar_chart)) + return false; + + if (rrdset_flag_check(st, RRDSET_FLAG_ANOMALY_DETECTION)) + return ml_streaming_enabled(); + if(unlikely(!rrdset_flag_check(st, RRDSET_FLAG_ENABLED))) { rrdset_flag_clear(st, RRDSET_FLAG_UPSTREAM_SEND); rrdset_flag_set(st, RRDSET_FLAG_UPSTREAM_IGNORE); @@ -781,4 +788,4 @@ int rrdpush_receiver_thread_spawn(struct web_client *w, char *url) { buffer_flush(w->response.data); return 200; -} \ No newline at end of file +} -- cgit v1.2.3