当前位置: 首页 > news >正文

上海网站制作培训班世界购物平台排行榜

上海网站制作培训班,世界购物平台排行榜,免费建网站模板,苏州网站建设网站开发基础 exporter提供监控数据 prometheus拉取监控数据 grafana可视化监控数据 准备 全部操作在/root/mypromethus中执行 node_exporter docker-compose -f node-exporter.yaml up -d # web访问,查看node_exporter采集到的数据 http://192.168.1.102:9101/metrics…

基础

exporter提供监控数据
prometheus拉取监控数据
grafana可视化监控数据

准备

全部操作在/root/mypromethus中执行

node_exporter

docker-compose -f node-exporter.yaml up -d
# web访问,查看node_exporter采集到的数据
http://192.168.1.102:9101/metrics/

node-exporter.yaml

version: '3.8'
services:node_exporter:image: prom/node-exporter:v1.6.0container_name: node_exportercommand:- '--path.rootfs=/host'pid: hostrestart: unless-stoppedenvironment:- TZ=Asia/Shanghaiports:- 9101:9100volumes:- '/:/host:ro,rslave'

prometheus

docker-compose -f dcprometheus.yaml up -d
# web访问
http://192.168.1.102:9102
# 修改权限
chmod 777 prometheus_data

dcprometheus.yaml

prometheus:image: prom/prometheus:v2.37.9restart: alwayscontainer_name: prometheushostname: prometheusenvironment:- TZ=Asia/Shanghaiports:- 9102:9090command:- '--config.file=/etc/prometheus/prometheus.yml'- '--storage.tsdb.path=/prometheus'- '--web.console.libraries=/usr/share/prometheus/console_libraries' - '--web.console.templates=/usr/share/prometheus/consoles' - '--storage.tsdb.retention.time=7d'- '--web.external-url=http://192.168.1.102:9090/'volumes:- /root/myprometheus/prometheus_cnf/prometheus.yml:/etc/prometheus/prometheus.yml- /root/myprometheus/prometheus_data:/prometheus

prometheus_cnf/prometheus.yml

# my global config
global:scrape_interval:     15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.# scrape_timeout is set to the global default (10s).# Alertmanager configuration
alerting:alertmanagers:- static_configs:- targets:# - alertmanager:9093#报警地址未使用# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:# - "first_rules.yml"# - "second_rules.yml"# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.- job_name: 'node-exporter'static_configs:- targets: ['192.168.1.102:9101']# 需要修改 node-exporter servicelabels:host: myhost01# 添加标签

grafana

docker-compose -f grafana.yaml up -d
# web访问
http://192.168.1.102:9103
admin/admin
# 修改权限
chomd 777 plugins
# 添加prometheus
http://192.168.1.102:9102
# 添加dashboard,import dashboard,在grafana官网找dashboard id
https://grafana.com/grafana/dashboards/

grafana.yaml

grafana:image: grafana/grafana:10.1.0-ubunturestart: alwayscontainer_name: grafanahostname: grafanaenvironment:- TZ=Asia/Shanghaivolumes:#- /opt/grafana/defaults.ini:/etc/grafana/grafana.ini- /root/myprometheus/grafana_data/plugins:/var/lib/grafana/pluginsports:- 9103:3000

问题

  • prometheus和grafana目录权限问题

参考

  • https://blog.csdn.net/qingwufeiyangxz/article/details/108659681
  • https://grafana.com/grafana/dashboards
http://www.yayakq.cn/news/153502/

相关文章:

  • 微网站用什么做的属于c2c的网站是
  • 微信设计网站建设wordpress主题图
  • 顺义手机网站设计下载百度地图2022最新版
  • 机关网站建设和运行情况汇报wordpress 流程插件
  • 学校部门网站建设情况汇报品牌建设的三大理论
  • 增城网站建设公司asp网站js悬浮窗怎么做
  • 网站版面布局结构图秦皇岛网站推广报价
  • 微信群投票网站怎么做网站建设推广页
  • 天津市住房和城乡建设厅网站wordpress搜索图标
  • 专门做t恤的网站网站建设业务开展方案
  • 安阳网站自然优化免费发外链平台
  • 海珠做网站公建筑公司网站起名
  • WordPress挂在虚拟站点社交网站源代码
  • 北京专业企业网站建设全国造价工程师管理系统官网
  • 做网站找我们北京建站公司排名首推万维科技
  • 免费发布信息网站大全手机网站免费制作平台有哪些
  • 四线城市做网站建设怎么样app和手机网站的区别
  • 如何将自己做的网站放到网上去wordpress共用用户数据
  • 沈阳网站公司哪个好西宁网站建设建站
  • 一个外国人做汉字网站ip做网站域名
  • 潮流资讯类网站建设策划宠物网站项目
  • 宁波做网站首荐荣盛网络佛山 网站设计公司
  • 中国建设银行个人网站银行浩方网络网站建设
  • 网站服务器有哪些类型有哪些类型有哪些类型有哪些类型wordpress 翻译软件
  • 58同城网站模板网络推广有哪些途径
  • 垂直门户网站怎么做代理注册公司怎么找
  • 大连做网站开发的公司深圳品牌建网站
  • 网站建设毕业设计摘要中国建设银行建银购网站
  • 做网站在哪里做公司做网站开发流程
  • 查网站开通时间百度广告投放平台叫什么