Skip to content

Commit 4cc69e5

Browse files
committed
out_datadog: Fix formatting issue when setting a static hostname via dd_hostname
1 parent cfc9ba9 commit 4cc69e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugins/out_datadog/datadog_conf.c

+5
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ struct flb_out_datadog *flb_datadog_conf_create(struct flb_output_instance *ins,
118118
ctx->nb_additional_entries++;
119119
}
120120

121+
tmp = flb_output_get_property("dd_hostname", ins);
122+
if (tmp) {
123+
ctx->nb_additional_entries++;
124+
}
125+
121126
tmp = flb_output_get_property("provider", ins);
122127
ctx->remap = tmp && (strlen(tmp) == strlen(FLB_DATADOG_REMAP_PROVIDER)) && \
123128
(strncmp(tmp, FLB_DATADOG_REMAP_PROVIDER, strlen(tmp)) == 0);

0 commit comments

Comments
 (0)