Skip to content

Commit 3fb4126

Browse files
cosmo0920edsiper
authored andcommitted
in_node_exporter_metrics: Handle missing throttle metrics case such as VM
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent a36f95e commit 3fb4126

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plugins/in_node_exporter_metrics/ne_cpu_linux.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,9 @@ static int cpu_thermal_update(struct flb_ne *ctx, uint64_t ts)
148148
"thermal_throttle", "core_throttle_count",
149149
&core_throttle_count);
150150
if (ret != 0) {
151-
flb_plg_error(ctx->ins,
151+
flb_plg_debug(ctx->ins,
152152
"CPU is missing core_throttle_count: %s",
153153
entry->str);
154-
continue;
155154
}
156155

157156
snprintf(tmp1, sizeof(tmp1) -1, "%" PRIu64, core_id);
@@ -175,10 +174,9 @@ static int cpu_thermal_update(struct flb_ne *ctx, uint64_t ts)
175174
"thermal_throttle", "package_throttle_count",
176175
&package_throttle_count);
177176
if (ret != 0) {
178-
flb_plg_error(ctx->ins,
177+
flb_plg_debug(ctx->ins,
179178
"CPU is missing package_throttle_count: %s",
180179
entry->str);
181-
continue;
182180
}
183181

184182
/* Set new value */

0 commit comments

Comments
 (0)