首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

使用 vmalert 代替 Prometheus 监控报警

前面我们已经介绍了可以使用 vmagent 代替 prometheus 抓取监控指标数据,要想完全替换 prometheus 还有一个非常重要的部分就是报警模块,之前我们都是在 prometheus 中定义报警规则评估后发送给...datasource.url 地址执行配置的报警或记录规则,然后可以将报警发送给 -notifier.url 配置的 Alertmanager,记录规则结果会通过远程写入的协议进行保存,所以需要配置 -remoteWrite.url...- -notifier.url=http://alertmanager.kube-vm.svc.cluster.local:9093 - -remoteWrite.url...vmselect 的路径,-notifier.url 指定了 Alertmanager 的地址,其中 -evaluationInterval 参数用来指定评估的频率的,由于我们这里添加了记录规则,所以还需要通过 -remoteWrite.url...,vmselect 查询指标数据,已经完全可以不使用 prometheus 了,而且性能非常高,所需资源也比 prometheus 低很多。

2.2K20

Prometheus实战篇:Prometheus监控nginx

Prometheus实战篇:Prometheus监控nginx准备环境在此专栏的前几篇文章中已经准备了一台服务器作为我们进行环境的准备.大家也可以通过虚拟机创建俩台服务器,一台作为Prometheus的安装另外一台进行其他软件安装并且进行监控的服务器...去采集(拉取)nginx_exporter的监控样本数据cd /data/docker-prometheus# 在scrapc_configs(搜刮配置):下面增加如下配置:cat >prometheus.../prometheus.yml <<FOF - job_name: 'nginx_exporter' static_configs: - targets: ['localhost:9113'].../alert.yml检查配置docker exec -it prometheus promtool check config /etc/prometheus/prometheus.yml重新加载配置curl...search=或:http://localhost:9090/rulesdashboardgrafana展示Prometheus从nginx_exporter收集到的数据

73600

prometheus实战篇:prometheus相关概念

prometheus相关概念在安装好Prometheus后,会暴露一个/metrics的http服务(相当于安装了prometheus_exporter),通过配置,Prometheus就可以采集到这个...Prometheus底层存储上其实没有对指标做类型的区分,都是以时间序列的形式存储,但是为了方便用户的使用和理解不同监控指标之间的差异,Prometheus定义了counter(计数器),gauge(仪表盘...的指标类型为 Summary,它记录了 Prometheus Server 中 wal_fsync 的处理时间,通过访问 Prometheus Server 的 /metrics 地址,可以获取到以下监控样本数据...:# HELP prometheus_tsdb_wal_fsync_duration_seconds Duration of WAL fsync.# TYPE prometheus_tsdb_wal_fsync_duration_seconds...2.888716127000002prometheus_tsdb_wal_fsync_duration_seconds_count 216Job(任务)和instances(实例)概述在Prometheus

33110

Prometheus实战篇:docker安装Prometheus

docker安装Prometheus Docker搭建Prometheus监控系统 环境准备(这里的环境和版本是经过测试没有问题,并不是必须这个版本) 主机名 IP 配置 系统...因为docker-compose安装Prometheus需要进行大量的配置,这里推荐直接从gitee上克隆已经配置好的docker-compose文件 mkdir /data cd /data git...clone https://gitee.com/linge365/docker-prometheus.git cd docker-prometheus 当然以上这一步需要安装git,也可以直接访问https...://gitee.com/linge365/docker-prometheus.git 下载对应的压缩包,解压后移动到/data目录下即可 运行prometheus 运行命令 cd /data/docker-prometheus...添加数据源 在下方齿轮图标选择添加数据源 选择Prometheus作为数据源 填写Prometheus的地址,这里的ip需要将服务名作为地址填写在URL中 下滑到最下方测试并保存 导入仪表盘 选择左边仪表盘图标点击导入

1.4K10
领券