Skip to content

Commit

Permalink
add agent timezones as host labels (netdata#19656)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou authored Feb 17, 2025
1 parent 4c7be3c commit fc4d9a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/database/rrdhost-labels.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ static void rrdhost_load_auto_labels(void) {

if (localhost->stream.snd.destination)
rrdlabels_add(labels, "_streams_to", string2str(localhost->stream.snd.destination), RRDLABEL_SRC_AUTO);

rrdlabels_add(labels, "_timezone", rrdhost_timezone(localhost), RRDLABEL_SRC_AUTO);
rrdlabels_add(labels, "_abbrev_timezone", rrdhost_abbrev_timezone(localhost), RRDLABEL_SRC_AUTO);
}

void reload_host_labels(void) {
Expand Down

0 comments on commit fc4d9a2

Please sign in to comment.