Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in_node_exporter_metrics: fix referencing wrong interval between cpu and cpufreq #8019

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/in_node_exporter_metrics/ne.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
Loading