Sonarqube doesn't show up as a target in Prometheus
Bug
Description
Describe the problem, what were you doing when you noticed the bug?
Deploying Sonarqube for testing. It comes up and works as expected, but it does not show up in Prometheus.
Provide any steps possible used to reproduce the error (ideally in an isolated fashion).
Follow the docs/DEVELOPMENT_MAINTENANCE.md for deployment, Sonarqube won't show up in the Prometheus targets.
BigBang Version
What version of BigBang were you running?
2.22.0
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Andrew Shoell added kindbug needs-attention priority3 teamDevelopment & Ops labels
added kindbug needs-attention priority3 teamDevelopment & Ops labels
- Andrew Shoell mentioned in merge request !147 (merged)
mentioned in merge request !147 (merged)
- Developer
@andrewshoell this issue has been inactive for 30 days and is being labelled as stale. If this issue is still required please take action by removing the stale label and commenting with an update, status, or justification. If this issue is not required please close it or label it as delete-me. If no action is taken this issue will be auto closed in 60 days.
- bigbang bot added stale label
added stale label
- Andrew Shoell removed stale label
removed stale label
- Andrew Shoell added no-auto-close label
added no-auto-close label
- Christopher O'Connell changed iteration to Big Bang Iterations Apr 16, 2024 - Apr 29, 2024
changed iteration to Big Bang Iterations Apr 16, 2024 - Apr 29, 2024
- GitLab Automation Bot removed iteration Big Bang Iterations Apr 16, 2024 - Apr 29, 2024
removed iteration Big Bang Iterations Apr 16, 2024 - Apr 29, 2024
- GitLab Automation Bot changed iteration to Big Bang Iterations Apr 30, 2024 - May 13, 2024
changed iteration to Big Bang Iterations Apr 30, 2024 - May 13, 2024
- Daniel Stocum assigned to @daniel.stocum
assigned to @daniel.stocum
- Daniel Stocum set weight to 1
set weight to 1
- Daniel Stocum added statusdoing label
added statusdoing label
- Developer
- Developer
I was able to get the targets to show with adding PodMonitor for sonarqube in the monitoring namespace. PodMonitor. It's not scraping data though. Working on getting override values correct for these changes.
- Daniel Stocum changed weight to 2 from 1
changed weight to 2 from 1
- Daniel Stocum created branch
92-sonarqube-doesn-t-show-up-as-a-target-in-prometheus
to address this issuecreated branch
92-sonarqube-doesn-t-show-up-as-a-target-in-prometheus
to address this issue - Daniel Stocum mentioned in merge request !167 (merged)
mentioned in merge request !167 (merged)
- Developer
I believe I have my overrides setup correctly but on my dev-cluster it can't complete the curl command.
Below is the sonarqube log that it's missing the exact jar file.
sonarqube Error opening zip file or JAR manifest missing : /opt/sonarqube/data/jmx_prometheus_javaagent.jar
I'm going to spin this up locally to see I get different results
- Developer
Overrides:
addons: sonarqube: enabled: true git: tag: null branch: "92-sonarqube-doesn-t-show-up-as-a-target-in-prometheus" values: monitoring: enabled: true prometheusExporter: enabled: true version: "0.20.0" webBeanPort: 8000 ceBeanPort: 8001 config: rules: - pattern: ".*" image: registry1.dso.mil/ironbank/opensource/prometheus/jmx-exporter:0.20.0 monitoringPasscode: "admin" networkPolicy: enabled: false prometheusNamespace: "monitoring"
Edited by Daniel Stocum - Developer