随笔分类 - monitor
摘要:本文初稿,未完善 prometheus 与zabbix 对比: 和Zabbix类似,Prometheus也是一个近年比较火的开源监控框架,和Zabbix不同之处在于Prometheus相对更灵活点,模块间比较解耦,比如告警模块、代理模块等等都可以选择性配置。服务端和客户端都是开箱即用,不需要进行安装
阅读全文
摘要:prometheus+alertmanager 流程梳理: Prometheus 一条告警的触发流程、等待时间 报警处理流程如下: 1. Prometheus Server监控目标主机上暴露的http接口(这里假设接口A),通过上述Promethes配置的'scrape_interval'定义的时间
阅读全文
摘要:ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head #获取占用CPU资源最多的10个进程 ps aux|head -1;ps aux|grep -v PID|sort -rn -k +4|head #获取占用内存资源最多的10个进程 ps au
阅读全文
摘要:#!/bin/bash # 使用docker安装elasticsearch # 拉取镜像(项目使用版本为6.5.0) docker pull elasticsearch:6.5.0 # 启动镜像 docker run -d --restart=always --name elasticsearch
阅读全文
摘要:##alertmanager alertmanager可以放在远程服务器上 ###报警机制 在 prometheus 中定义你的监控规则,即配置一个触发器,某个值超过了设置的阈值就触发告警, prometheus 会推送当前的告警规则到 alertmanager,alertmanager 收到了会进
阅读全文
摘要:relabel_configs 根据prometheus 监控k8s配置文件中学习 未修改前默认配置文件: 网页显示: 修改配置文件后: 网页显示: 服务发现网页: 总结: 在数据采集之前对任何目标的标签进行修改,重打标签的意义就是如果标签有重复的可以帮你重命名 relabel_config语法 a
阅读全文
摘要:来源: https://juejin.im/post/5c36054251882525a50bbdf0 https://github.com/redhatxl/k8s prometheus grafana Prometheus master/node节点环境部署 在node节点下载监控所需镜像(在所
阅读全文
摘要:一,物理节点安装配置(简单配置,未涉及报警及grafana图形展示) 1,prometheus 官网下载安装 下载安装 # pwd /usr/local/src https://github.com/prometheus/prometheus/releases/download/v2.12.0/pr
阅读全文
摘要:##一,物理节点安装配置(简单配置,未涉及报警及grafana图形展示) 1,prometheus 官网下载安装 下载安装 # pwd /usr/local/src https://github.com/prometheus/prometheus/releases/download/v2.12.0/
阅读全文