UNCLASSIFIED - NO CUI

Skip to content

Resolve "Sonarqube doesn't show up as a target in Prometheus"

General MR

Summary

Follow the docs/DEVELOPMENT_MAINTENANCE.md for deployment, Sonarqube won't show up in the Prometheus targets.

Relevant logs/screenshots

Testing Instructions:

  1. Deploy bigbang with the following overrides file:
networkPolicies:
  enabled: false

clusterAuditor:
  enabled: false

gatekeeper:
  enabled: false

istioOperator:
  enabled: true

istio:
  enabled: true
  
jaeger:
  enabled: false

kiali:
  enabled: true

elasticsearchKibana:
  enabled: false

eckOperator:
  enabled: false

fluentbit:
  enabled: false

monitoring:
  enabled: true

twistlock:
  enabled: false

domain: dev.bigbang.mil

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"
      service:
        annotations:
          prometheus.io/scrape: "true"
          prometheus.io/port: ""
          prometheus.io/path: "/metrics"
      istio:
        enabled: true
        hardened:
          enabled: true
          monitoring:
            enabled: true
  1. Go to sonarqube.dev.bigbang.mil and verify sonarqube comes up. This may take a few more minutes (15 to 20) then normal. Look for the "Web Server is operational" in the Sonarqube logs.

  2. Navigate to the Prometheus target page (https://prometheus.dev.bigbang.mil/targets) and validate that the Sonarqube target shows as up.

Linked Issue

Sonarqube doesn't show up as a target in Prometheus

Upgrade Notices

N/A

Linked Issue #92

Edited by Daniel Stocum

Merge request reports