首页 > 其他 > 详细

prometheus+Grafana安装入门和简单使用

时间:2021-02-24 23:19:43      阅读:26      评论:0      收藏:0      [点我收藏+]

1.准备工作

官网地址:https://prometheus.io/download/
官网地址:https://grafana.com/grafana/download
prometheus github地址: https://github.com/prometheus
windows系统监控exporter
windows_exporter 地址:https://github.com/prometheus-community/windows_exporter/tags
linux系统监控exporter
node_exporter 地址:https://github.com/prometheus/node_exporter/releases

技术分享图片
技术分享图片

2.启动

prometheus和grafana都是直接双击exe启动,访问地址分别是:http://localhost:9090http://localhost:3000
技术分享图片
技术分享图片

3.启动 windows_exporter,直接双击 windows_exporter-0.15.0-386.exe启动

访问:http://127.0.0.1:9182/metrics
技术分享图片

3.修改prometheus.yml文件,加入监控任务

  - job_name: ‘win_metrics_localhost‘
    static_configs:
    - targets: [‘localhost:9182‘]

技术分享图片

4.在grnfana添加数据源和Dashboards模版

技术分享图片
技术分享图片
技术分享图片
技术分享图片

5.如何查找Dashboards模版

网址:https://grafana.com/grafana/dashboards

技术分享图片
技术分享图片

prometheus+Grafana安装入门和简单使用

原文:https://www.cnblogs.com/daikainan/p/14443473.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!