From c5a1229dca5992a0404085c306cf6036d2061b54 Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Mon, 9 Oct 2023 09:36:12 +0900 Subject: [PATCH] in_node_exporter_metrics: fix referencing wrong interval Signed-off-by: Takahiro Yamashita --- plugins/in_node_exporter_metrics/ne.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/in_node_exporter_metrics/ne.c b/plugins/in_node_exporter_metrics/ne.c index d7781795788..84440b39ada 100644 --- a/plugins/in_node_exporter_metrics/ne.c +++ b/plugins/in_node_exporter_metrics/ne.c @@ -422,7 +422,7 @@ static int in_ne_init(struct flb_input_instance *in, if (ret == FLB_FALSE) { if (strncmp(entry->str, "cpufreq", 7) == 0) { - if (ctx->cpu_scrape_interval == 0) { + if (ctx->cpufreq_scrape_interval == 0) { flb_plg_debug(ctx->ins, "enabled metrics %s", entry->str); metric_idx = 0; } @@ -442,7 +442,7 @@ static int in_ne_init(struct flb_input_instance *in, ne_cpufreq_init(ctx); } else if (strncmp(entry->str, "cpu", 3) == 0) { - if (ctx->cpufreq_scrape_interval == 0) { + if (ctx->cpu_scrape_interval == 0) { flb_plg_debug(ctx->ins, "enabled metrics %s", entry->str); metric_idx = 1; }