随笔分类 -  Prometheus

摘要:官方文档:https://nacos.io/zh-cn/docs/monitor-guide.html 按照部署文档搭建好Nacos集群 配置application.properties文件,暴露metrics数据 management.endpoints.web.exposure.include= 阅读全文
posted @ 2021-12-13 16:50 哈喽哈喽111111 阅读(903) 评论(0) 推荐(0)
摘要:配置RabbitMQ集群 官方文档:https://www.rabbitmq.com/prometheus.html#quick-start 官方github地址:https://github.com/rabbitmq/rabbitmq-server # 获取集群名称 rabbitmq-diagno 阅读全文
posted @ 2021-12-13 15:41 哈喽哈喽111111 阅读(1750) 评论(0) 推荐(0)
摘要:rules_up.yml groups: - name: up rules: - alert: mysql expr: up{instance="db1",job="mysql"} != 0 for: 10s labels: instance: '{{$labels.instance}}' prio 阅读全文
posted @ 2021-11-23 09:48 哈喽哈喽111111 阅读(1562) 评论(0) 推荐(0)
摘要:若主从同步数据库未同步默认的mysql表,则也需要在从库上创建mysql用户mysqld_exporter用来收集监控数据 mysqld_exporter安装部署 这里采取的是mysqld_exporter安装在mysql主机上 cd /usr/local/src wget https://gith 阅读全文
posted @ 2021-11-22 10:58 哈喽哈喽111111 阅读(996) 评论(0) 推荐(0)
摘要:[root@database03 mysqld_exporter]# ./mysqld_exporter --help usage: mysqld_exporter [<flags>] Flags: -h, --help Show context-sensitive help (also try - 阅读全文
posted @ 2021-11-20 17:34 哈喽哈喽111111 阅读(953) 评论(0) 推荐(0)
摘要:前提条件 redis集群:已搭建三主三从(三台主机) prometheus、grafana已安装 三台主机ip: 192.168.0.39,192.168.0.164,192.168.0.68 第一种方法和第二种方法 第一种方法需要再安装 redis_exporter和prometheus,过程较麻 阅读全文
posted @ 2021-11-20 15:25 哈喽哈喽111111 阅读(2097) 评论(0) 推荐(0)
摘要:1.nginx 设置 location /promethues/ { proxy_pass http://10.xx.xxx.55:9090/prometheus/; } 2.设置prometheus子路径 在启动的时候根据命令行的参数来进行子路径设置。 ./prometheus --web.ext 阅读全文
posted @ 2021-11-20 14:09 哈喽哈喽111111 阅读(969) 评论(0) 推荐(0)
摘要:转载自:https://www.cnblogs.com/you-men/p/13173245.html CentOS7.3 prometheus-2.2.1.linux-amd64.tar.gz nginx-module-vts 节点名 IP 软件版本 硬件 网络 说明 Prometheus 192 阅读全文
posted @ 2021-05-14 18:21 哈喽哈喽111111 阅读(1221) 评论(0) 推荐(0)
摘要:GitHub上官方地址:https://github.com/knyar/nginx-lua-prometheus 告警规则地址:https://awesome-prometheus-alerts.grep.to/rules#nginx 1.nginx需要支持lua功能,若是使用openresty的 阅读全文
posted @ 2021-05-14 17:09 哈喽哈喽111111 阅读(1959) 评论(0) 推荐(0)
摘要:参考网站:https://awesome-prometheus-alerts.grep.to/rules 这个网站上有好多常用软件的告警规则,但是有些并不一定实用,有些使用起来会有错误,这里就把这些都给排除掉,只保留能使用的 结合文章:https://www.cnblogs.com/sanduzxc 阅读全文
posted @ 2021-05-12 14:37 哈喽哈喽111111 阅读(2825) 评论(0) 推荐(1)
摘要:文件地址:https://files.cnblogs.com/files/sanduzxcvbnm/prometheus%E5%92%8Cgranfana%E4%BC%81%E4%B8%9A%E7%BA%A7%E7%9B%91%E6%8E%A7%E5%AE%9E%E6%88%98v5.pdf 阅读全文
posted @ 2021-01-22 16:24 哈喽哈喽111111 阅读(340) 评论(0) 推荐(0)
摘要:![](https://img2020.cnblogs.com/blog/794174/202101/794174-20210113164207027-1019695458.png) 阅读全文
posted @ 2021-01-13 16:42 哈喽哈喽111111 阅读(185) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-10-30 16:38 哈喽哈喽111111 阅读(0) 评论(0) 推荐(0)
摘要:# 拉取镜像 docker pull prom/prometheus:v2.22.0 # 创建配置文件 mkdir -p /opt/prometheus/ cd /opt/prometheus vim prometheus.yml global: scrape_interval: 60s evalu 阅读全文
posted @ 2020-10-19 14:29 哈喽哈喽111111 阅读(1406) 评论(0) 推荐(0)
摘要:转载自:https://cloud.tencent.com/developer/article/1433280 文章目录1、Prometheus & Grafana 介绍1.1、Prometheus 介绍1.2、Grafana 介绍2、环境、软件准备3、Prometheus 安装配置3.1、 二进制 阅读全文
posted @ 2020-09-24 16:00 哈喽哈喽111111 阅读(1018) 评论(0) 推荐(0)
摘要:转载自:https://cloud.tencent.com/developer/article/1508319 文章目录1、Micrometer 介绍2、环境、软件准备3、Spring Boot 工程集成 Micrometer4、配置 Prometheus 监控应用指标5、配置 Grafana Da 阅读全文
posted @ 2020-09-24 15:55 哈喽哈喽111111 阅读(2382) 评论(0) 推荐(0)
摘要:转载自:https://cloud.tencent.com/developer/article/1536967 1、Consul 介绍 Consul 是基于 GO 语言开发的开源工具,主要面向分布式,服务化的系统提供服务注册、服务发现和配置管理的功能。Consul 提供服务注册/发现、健康检查、Ke 阅读全文
posted @ 2020-09-24 15:50 哈喽哈喽111111 阅读(1770) 评论(0) 推荐(1)
摘要:转载自:https://cloud.tencent.com/developer/article/1611091 1、Consul 介绍 Consul 是基于 GO 语言开发的开源工具,主要面向分布式,服务化的系统提供服务注册、服务发现和配置管理的功能。Consul 提供服务注册/发现、健康检查、Ke 阅读全文
posted @ 2020-09-24 15:46 哈喽哈喽111111 阅读(946) 评论(0) 推荐(0)
摘要:转载自:https://cloud.tencent.com/developer/article/1531821 1、PushGateway 介绍 Prometheus 是一套开源的系统监控、报警、时间序列数据库的组合,最初有 SoundCloud 开发的,后来随着越来越多公司使用,于是便独立成开源项 阅读全文
posted @ 2020-09-24 15:36 哈喽哈喽111111 阅读(17556) 评论(2) 推荐(0)
摘要:注意事项: alertmanager中的web页面显示的报警时间是UTC时间,错8个小时,企业微信报警模板中已经修改过来了 下面配置可以作为参考: 1.prometheus操作 1.1 配置告警规则,参考地址:https://www.cnblogs.com/sanduzxcvbnm/p/135897 阅读全文
posted @ 2020-09-24 15:09 哈喽哈喽111111 阅读(8442) 评论(3) 推荐(0)