summaryrefslogtreecommitdiffstats
path: root/database
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2020-01-17 11:43:02 +0000
committerGitHub <noreply@github.com>2020-01-17 11:43:02 +0000
commit0d509a07ca194950fa7f3e3265d4a948f7c0d35a (patch)
treeb959756c2ad282066c2d6558a1923f5d06834e8f /database
parentc2fcb04bf71baf625e764d0dc411a53f3ded1337 (diff)
Alarm Log labels (#7548)
* alarm_log_with_labels: Alarm Log Rebase of alarm log to commit against master * alarm_log_with_labels: Remove lock This commit removes unecessary locks from health_log * alarm_log_with_labels: Restore and Rebase Remove previous changes and rebase the PR * alarm_log_with_labels: Unique line This commit brings an unique line to alarm log * alarm_log_with_labels: Correct separator This log file uses tabulation instead comma * alarm_log_with_labels: Fix memory leak There was a missing call for buffer_free
Diffstat (limited to 'database')
-rw-r--r--database/rrdhost.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/database/rrdhost.c b/database/rrdhost.c
index 4eb8601396..5a4b195807 100644
--- a/database/rrdhost.c
+++ b/database/rrdhost.c
@@ -974,6 +974,8 @@ void reload_host_labels()
replace_label_list(localhost, new_labels);
+ health_label_log_save(localhost);
+
if(localhost->rrdpush_send_enabled && localhost->rrdpush_sender_buffer){
localhost->labels_flag |= LABEL_FLAG_UPDATE_STREAM;
rrdpush_send_labels(localhost);