menu 学习笔记
search self_improvement
目录

Prometheus 监控方案学习笔记(一):Prometheus 监控方案说明

huty
huty 2022年11月29日  ·  阅读 1,599

Prometheus 监控方案

服务端

数据库

用于监控数据存储
Prometheus Server
官网:https://prometheus.io
项目地址:https://github.com/prometheus/prometheus
Docker 镜像地址:https://hub.docker.com/r/prom/prometheus
对应博客:https://hty1024.com/archives/prometheus-jian-kong-fang-an-xue-xi-bi-ji--er-prometheusserver-he-grafana-de-an-zhuang-he-pei-zhi

数据看板

用于监控数据看板
Grafana
官网:https://grafana.com
项目地址:https://github.com/grafana/grafana
看板下载地址:https://grafana.com/grafana/dashboards
Docker 镜像地址:https://hub.docker.com/r/grafana/grafana
对应博客:https://hty1024.com/archives/prometheus-jian-kong-fang-an-xue-xi-bi-ji--san-grafana-de-an-zhuang-he-pei-zhi

告警管理

用于监控告警处理
Prometheus Server —— 配置告警规则
对应博客: https://hty1024.com/archives/prometheus-jian-kong-fang-an-xue-xi-bi-ji--shi-yi-prometheus-chang-yong-gao-jing-gui-ze-zheng-li
Alertmanager —— 管理告警信息
官网:https://prometheus.io
项目地址:https://github.com/prometheus/alertmanager
Docker 镜像地址:https://hub.docker.com/r/prom/alertmanager
对应博客:https://hty1024.com/archives/prometheus-jian-kong-fang-an-xue-xi-bi-ji--si-alertmanager-de-an-zhuang-he-pei-zhi

告警发送

用于监控告警信息发送

  1. Prometheus Alert
    文档:https://feiyu563.gitbook.io/prometheusalert
    项目地址:https://github.com/feiyu563/PrometheusAlert
    Docker 镜像地址(仅支持 x86_64):https://hub.docker.com/r/feiyu563/prometheus-alert

  2. Prometheus Webhook Dingtalk
    文档:https://theo.im/blog/2017/10/16/release-prometheus-alertmanager-webhook-for-dingtalk
    项目地址:https://github.com/timonwong/prometheus-webhook-dingtalk
    Docker 镜像地址:https://hub.docker.com/r/timonwong/prometheus-webhook-dingtalk

对应博客:https://hty1024.com/archives/prometheus-jian-kong-fang-an-xue-xi-bi-ji--wu--gao-jing-tong-zhi-zu-jian-de-an-zhuang-he-pei-zhi--han-prometheusalert-he-prometheuswebhookdingtalk

日志管理

用于日志管理
Loki
官网:https://grafana.com/oss/loki
项目地址:https://github.com/grafana/loki
Docker 镜像地址:https://hub.docker.com/r/grafana/loki
对应博客:https://hty1024.com/archives/prometheus-jian-kong-fang-an-xue-xi-bi-ji--liu-loki-de-an-zhuang-he-pei-zhi

采集端

网络探针

Blackbox Exporter
项目地址:https://github.com/prometheus/blackbox_exporter
Docker 镜像地址:https://hub.docker.com/r/prom/blackbox-exporter
对应博客:https://hty1024.com/archives/prometheus-jian-kong-fang-an-xue-xi-bi-ji--jiu--shi-yong-prometheus-jin-xing-hei-he-jian-kong-blackboxexporter-de-an-zhuang-he-pei-zhi-

主机监控

Node Exporter
项目地址:https://github.com/prometheus/node_exporter
Docker 镜像地址:https://hub.docker.com/r/prom/node-exporter
对应博客:https://hty1024.com/archives/prometheus-jian-kong-fang-an-xue-xi-bi-ji--qi--shi-yong-prometheus-jian-kong-linux-zhu-ji-nodeexporter-de-an-zhuang-he-pei-zhi-

Docker 监控

CAdvisor
项目地址:https://github.com/google/cadvisor
Docker 镜像地址:https://hub.docker.com/r/zcube/cadvisor
对应博客:https://hty1024.com/archives/prometheus-jian-kong-fang-an-xue-xi-bi-ji--ba--shi-yong-prometheus-jian-kong-docker-rong-qi-cadvisor-de-an-zhuang-he-pei-zhi-

中间件监控

MySQL

Mysqld Exporter
项目地址:https://github.com/prometheus/mysqld_exporter
Docker镜像地址:https://hub.docker.com/r/prom/mysqld-exporter

MongoDB

Mongodb Exporter
项目地址:https://github.com/percona/mongodb_exporter
Docker 镜像地址(仅支持 x86_64):https://hub.docker.com/r/bitnami/mongodb-exporter

Redis

Redis Exporter
项目地址:https://github.com/oliver006/redis_exporter
Docker 镜像地址:https://hub.docker.com/r/oliver006/redis_exporter

RabbitMQ

Rabbitmq Exporter
项目地址:https://github.com/kbudde/rabbitmq_exporter
Docker 镜像地址:https://hub.docker.com/r/kbudde/rabbitmq-exporter

RocketMQ

Rocketmq Exporter
项目地址:https://github.com/apache/rocketmq-exporter
注:可在编译 jar 包之后使用 java 镜像运行

ElasticSearch

Elasticsearch Exporter
项目地址:https://github.com/prometheus-community/elasticsearch_exporter
Docker 镜像地址:https://hub.docker.com/r/prometheuscommunity/elasticsearch-exporter

Zookeeper

Zookeeper Exporter
项目地址:https://github.com/dabealu/zookeeper-exporter
Docker 镜像地址(仅支持 x86_64):https://hub.docker.com/r/dabealu/zookeeper-exporter

Java 应用

JMX Exporter
项目地址:https://github.com/prometheus/jmx_exporter
注:HTTP Server 模式可使用 java 镜像中运行;Java Agent 模式直接在启动 java 应用时附加参数

Nginx

Nginx Prometheus Exporter
项目地址:https://github.com/nginxinc/nginx-prometheus-exporter
Docker 镜像地址:https://hub.docker.com/r/nginx/nginx-prometheus-exporter

对应博客:https://hty1024.com/archives/prometheus-jian-kong-fang-an-xue-xi-bi-ji--shi--shi-yong-prometheus-jian-kong-chang-yong-zhong-jian-jian

日志采集

Grafana Promtail
Docker 镜像地址:https://hub.docker.com/r/grafana/promtail

评论已关闭