Features • Requirements • Installation • Usage • Screenshots
- Configure which metrics to export
- SonarQube 7.x
- Download latest snapshot release
- Drop
sonar-prometheus-exporter-1.0.0-SNAPSHOT.jar
into$SONARQUBE_HOME/extensions/plugins
. - Restart the SonarQube server.
- Configure which metrics you want to export under Administration → Configuration → General Settings → Prometheus Exporter
- Add a scrape config to your Prometheus instance similar to this:
scrape_configs:
- job_name: 'sonarqube'
metrics_path: '/api/prometheus/metrics'
static_configs:
- targets: ['localhost:9000']
- Alternatively, point your HTTP client to
http://localhost:9000/api/prometheus/metrics