Hi all, we are integrating Jenkins with Grafana. I
- Followed these steps to install Alloy on MacOS.
Install Grafana Alloy on macOS | Grafana Alloy documentation - Followed these steps to integrate Jenkins with Grafana.
Jenkins integration | Grafana Cloud documentation
On this page, Test Connection fails:
Here is the alloy.config segment we added for Jenkins:
discovery.relabel “jenkins_metrics” {
targets = [{
address = “localhost:8080”,
}]
rule {
target_label = “instance”
replacement = “localhost:8080”
}
}
prometheus.scrape “jenkins_metrics” {
targets = discovery.relabel.jenkins_metrics.output
forward_to = [prometheus.remote_write.metrics_service.receiver]
job_name = “integrations/jenkins”
metrics_path = “/prometheus”
}
- Error logs indicate: level=error msg=“failed to listen on 127.0.0.1:12345” service=http err=“listen tcp 127.0.0.1:12345: bind: address already in use”
~
Please advise. Thanks.