Skip to content

qinrui777/sonarqube-metric-to-grafana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SHOW SONARQUBE METRIC TO GRAFANA


stack: sonarqube、influxdb、grafana、docker

Data flow diagram

picture

Install influxdb

TBD

Install grafana

TBD

Make data collector

#build a image for collector
cd sonar_collector_docker
docker build -t export-sonarqube-metric:v0.1 .
docker run -d --name export-sonarqube \
-e SONAR_USER=admin \
-e SONAR_PASSWORD=admin \
-e INFLUX_USER=admin \
-e INFLUX_PASSWORD=admin \
-e INFLUX_DB=sonarqube_exporter \
-e INTERVAL=86400 <YourDockerRepo>/export-sonarqube-metric:v7

you can change the environment,like INTERVAL which means how long to collect the data from sonarqube server.

Add alert in grafana

edit grafana.ini file

#################################### SMTP / Emailing ##########################
[smtp]
enabled = true
host = smtp.qq.com:465
user = [email protected]
# If the password contains # or ; you have to wrap it with trippel quotes. Ex """#password;"""
#qq 邮箱的客户端授权码
password = wrxxxxxxaaaaacdd
;cert_file =
;key_file =
;skip_verify = false
from_address = [email protected]
;from_name = Grafana
# EHLO identity in SMTP dialog (defaults to instance_name)
;ehlo_identity = dashboard.example.com
#################################### Alerting ############################
[alerting]
# Disable alerting engine & UI features
;enabled = true
# Makes it possible to turn off alert rule execution but alerting UI is visible
execute_alerts = true

More ref:

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages