Scraping the failure reason for a job does a case-sensitive search that fails #2045
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What happened:
When scraping the failure reason for a job, KSM does a case-sensitive search for the keyword
DeadLineExceeded
. Since Kubernetes is generating the stringDeadlineExceeded
, the search fails to scrape the reason.What you expected to happen:
A case-insensitive search should be done, so changes in reason's casing would not impact scraping of the metric.
How to reproduce it (as minimally and precisely as possible):
Create a job that fails to meet the
.spec.activeDeadlineSeconds
, forcing Kubernetes to kill the job with reasonDeadlineExceeded
.Anything else we need to know?:
I'm proposing a solution in PR #2046
Environment:
kubectl version
): 1.26.3The text was updated successfully, but these errors were encountered: