Skip to content

Commit

Permalink
Add missed sacledjob error metric value case
Browse files Browse the repository at this point in the history
Signed-off-by: Yoon Park <[email protected]>
  • Loading branch information
yoongon committed Jan 14, 2024
1 parent 44ffcae commit ececdef
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,16 @@ func getErrorMetricsValue(val *prommodel.MetricFamily) float64 {
}
}
}
case "keda_scaledjob_errors_total":
metrics := val.GetMetric()
for _, metric := range metrics {
labels := metric.GetLabel()
for _, label := range labels {
if *label.Name == "scaledJbject" && *label.Value == wrongScaledJobName {
return *metric.Counter.Value
}
}
}
case "keda_scaled_job_errors":
metrics := val.GetMetric()
for _, metric := range metrics {
Expand Down

0 comments on commit ececdef

Please sign in to comment.