匿名
未登录
登录
Linux78|wiki
搜索
查看“Docker安装promethues”的源代码
来自Linux78|wiki
名字空间
页面
讨论
更多
更多
页面选项
查看
查看源代码
历史
←
Docker安装promethues
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
wiki:用户|用户
您可以查看与复制此页面的源代码。
docker pull prom/node-exporter docker pull prom/prometheus docker pull grafana/grafana === 启动prometheus === 新建目录prometheus,编辑配置文件prometheus.yml mkdir /opt/prometheus cd /opt/prometheus/ vim prometheus.yml global: scrape_interval: 60s evaluation_interval: 60s scrape_configs: - job_name: prometheus static_configs: - targets: ['localhost:9090'] labels: instance: prometheus - job_name: linux static_configs: - targets: ['192.168.0.132:9100'] labels: instance: localhost 注意:修改IP地址,这里的192.168.0.132就是本机地址 ==== 启动prometheus ==== docker run -d \ -p 9090:9090 \ -v /opt/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml \ prom/prometheus 访问url: http://192.168.91.132:9090/graph === 启动node-exporter === docker run -d -p 9100:9100 \ -v "/proc:/host/proc:ro" \ -v "/sys:/host/sys:ro" \ -v "/:/rootfs:ro" \ --net="host" \ prom/node-exporter 访问url: http://IP:9100/metrics [[分类:Prometheus]] 返回: [[Prometheus]]
返回至
Docker安装promethues
。
导航
导航
首页
最近更改
随机页面
栏目
Nginx
Kubernetes
Spring Cloud
Wiki工具
Wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志