上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: Blackbox Exporter是Prometheus社区提供的官方黑盒监控解决方案,其允许用户通过:HTTP、HTTPS、DNS、TCP以及ICMP 的方式对网络进行探测。我们可以利用这个exporter定时访问业务系统某个接口来确定服务是否存活 下载 [root@VM-24-9-centos 阅读全文
posted @ 2023-01-17 13:55 Jruing 阅读(1098) 评论(0) 推荐(0)
摘要: docker安装google/cadvisor [root@VM-24-9-centos ~]# docker pull google/cadvisor Using default tag: latest latest: Pulling from google/cadvisor ff3a5c916c 阅读全文
posted @ 2023-01-17 13:54 Jruing 阅读(180) 评论(0) 推荐(0)
摘要: Grafana官网 下载Grafana [root@VM-24-9-centos Prometheus_server]# wget https://dl.grafana.com/oss/release/grafana-9.3.2.linux-amd64.tar.gz 安装Grafana [root@ 阅读全文
posted @ 2023-01-17 13:50 Jruing 阅读(85) 评论(0) 推荐(0)
摘要: Node_exporter是可以在* Nix和Linux系统上运行的计算机度量标准的导出器。 Node_exporter 主要用于暴露 metrics 给 Prometheus,其中 metrics 包括:cpu 的负载,内存的使用情况,网络等。 配置文件 修改主配置文件 [root@VM-24-9 阅读全文
posted @ 2023-01-17 13:41 Jruing 阅读(389) 评论(0) 推荐(0)
摘要: 全局配置注解 global: # 默认情况抓取目标的频率,默认1分钟 [ scrape_interval: <duration> | default = 1m ] # 抓取请求超时的时间,默认10S [ scrape_timeout: <duration> | default = 10s ] # 评 阅读全文
posted @ 2023-01-17 13:34 Jruing 阅读(639) 评论(0) 推荐(0)
摘要: 一般一个job作为一个业务服务,它下面的监控的机器/节点都是这个服务的节点,为了方便管理,我们可以按照job划分,为每个job创建一个子配置文件,这样方便管理 配置文件 # my global config global: scrape_interval: 15s # #每15s采集一次数据 eva 阅读全文
posted @ 2023-01-17 13:29 Jruing 阅读(680) 评论(0) 推荐(0)
摘要: Label Lable是为了方便管理及查询监控目标,在后续写promtheus查询语法的时候需要使用标签作为查询条件 配置文件 # A scrape configuration containing exactly one endpoint to scrape: # Here it's Promet 阅读全文
posted @ 2023-01-17 13:26 Jruing 阅读(585) 评论(0) 推荐(0)
摘要: 官网 https://prometheus.io/docs/introduction/overview/ 下载Prometheus https://prometheus.io/download/ 安装Prometheus 配置文件 # my global config global: scrape_ 阅读全文
posted @ 2023-01-17 13:22 Jruing 阅读(482) 评论(0) 推荐(0)
摘要: CGO是什么 cgo 是在 Android 和 iOS 上运行 Go 程序的关键,它允许GO程序与C语言库相互操作 未用到CGO的时候,建议编译的时候禁用CGO,比如编译ARM架构的时候就需要打开该选项,该选项默认情况下为1 编译为exe可执行文件 go env -w CGO_ENABLED=0 # 阅读全文
posted @ 2023-01-17 11:13 Jruing 阅读(472) 评论(0) 推荐(0)
摘要: 编写shell脚本,在外部命令行执行命令没有问题,放到脚本中后,在执行的过程中却一直提示找不到文件 打开test.sh脚本 vi test.sh 查看脚本文件格式 在命令模式下输入 :set ff 左下角则会出现fileformat=unix 修改脚本文件格式 如果第二部查询出来的脚本格式不是uni 阅读全文
posted @ 2022-11-10 18:32 Jruing 阅读(1442) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页