1
votes

I have some Jenkins instances deployed in K8s Cluster. Currently, I am able to scrape/fetch Jenkins metrics/logs inside Prometheus, Grafana. But now my purpose is to see if all Jenkins instances have the same version or not. I did not find any query in Grafana to scrape Jenkins's version metrics. However, I can see the metrics such as CPU usage, memory usage, Jenkins uptime (default_jenkins_uptime), etc. Is there any expert who has the same issue? Thanks in Advance, stay safe

enter image description here

1
I think it is irrelevant to the elasticsearch.hamid bayat

1 Answers

1
votes

The Jenkins Prometheus plugin only exposes metrics defined in the Metrics plugin:

Currently only metrics from the Metrics-plugin and summary of build duration of jobs and pipeline stages

The version is not part of the informations exposed and it would have to build an info metric for that.

You won't be able to get it unless there is development in the plugin to implement the feature.