stack: sonarqube、influxdb、grafana、docker
TBD
TBD
#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.
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: