jenkinsci / prometheus-plugin

Jenkins Prometheus Plugin
https://plugins.jenkins.io/prometheus/
Apache License 2.0
181 stars 151 forks source link

Add failure reason to job #655

Closed gchoucair-ohbibi closed 4 months ago

gchoucair-ohbibi commented 4 months ago

What feature do you want to see added?

When a job fail, I want to expose the reason of that failure (build fail analyzer) and analyze the fail metric by job.

Upstream changes

No response

Are you interested in contributing this feature?

No response

Waschndolos commented 4 months ago

So when default_jenkins_builds_last_build_result_ordinal has value == 2 then add the bfa reason as label?

gchoucair-ohbibi commented 4 months ago

Yeah if we can do that for every failed job, that would really help with our KPI and to better understand the problems we are facing

Waschndolos commented 4 months ago

Did you see this? https://github.com/jenkinsci/build-failure-analyzer-plugin/pull/176

Waschndolos commented 4 months ago

Coming back at this. Since all BFA related metrics come from the build-failure-analyzer-plugin I'd say the best would be to improve the BFA plugin. e.g. through the PR mentioned in the previous post. Implementing it here in the prometheus plugin doesn't seem to be right place, therefore I'll close this request here soon. I'll comment on the PR of the BFA as well as I think it would be a nice improvement.