-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is this exporter cmpatible with sonarQube 9.X..? #22
Comments
Seems that from version 9.3 SonarQube added native support for Prometheus metrics for all editions. |
So many thanks, I visited the 2nd url you provided, in the "Prometheus monitoring" section it is indicated 3 options to authenticate but no examples. I am a little bit confused whether I should the user:password in prometheus . ymal file or where !!! So my question now : how can I add user/password in prometheus .yml file? or somewhere else? Thanks again |
Ok I managed to make it work using as 'Authorization:Bearer.... ' never worked
However, this integrated function is only for SQ health and not not projects KPIs as the old What I am interested in is details of analysis of each project that I can display in Grafana, something like projects against vulnerabilities/code smells when I meet the dev teams |
I'm not sure whether the original poster needs the answer to the question in title anymore but if anyone ends up here (like i did): |
Hi, I followed instructions, after dropping the jar, restarting sonar, I can see "Prom exporter " in the general settings of sonarqube.
My Prometheus is on another linux machine and listens on port 9090 and I entered the following in prometheus.yaml
job_name: 'sonarqube'
metrics_path: '/api/prometheus/metrics'
static_configs:
- targets: ['mysonarVM:9000']
When I visit
http://mysonarVM:9000/api/prometheus/metrics
I get a blank page, nothing is displayed
Visiting my prometheus main page > Status > Targets, it is always in "down" status and
Endpoint State Labels Last Scrape Scrape Duration Error
http://mysonarVM9000/api/prometheus/metrics DOWN
instance="mysonarVM:9000"job="sonarqube"
When I try the url
http://myprometheus:9090/api/prometheus/metrics
I get
Thanks for your help
The text was updated successfully, but these errors were encountered: