grafana+prometheus监控jenkins

在jenkins中下载prometheus-plugin

Mou_icon

修改prometheus配置文件
1
2
3
4
5
6
- job_name: 'jenkins'
metrics_path: '/prometheus/'
scheme: http
bearer_token: <bearer_token>
static_configs:
- targets: ['192.168.1.68:8090']
重启prometheus
1
nohup ./prometheus --config.file=./prometheus.yml &

grafana配置

配置prometheus数据源
添加prometheus插件,然后配置
Mou_icon
Mou_icon
Mou_icon

下载node_exporter仪表盘模板

Mou_icon

导入模板

Mou_icon
Mou_icon

坚持原创技术分享,您的支持将鼓励我继续创作!