滴水恩情 发表于 2023-1-6 13:47:10

使用Prometheus监控docker compose方式部署的ES

需求

收集 ES 的指标, 并进行展示和告警;
现状


[*]ES 通过 docker compose 安装
[*]所在环境的 K8S 集群有 Prometheus 和AlertManager 及 Grafana
方案

复用现有的监控体系, 通过: Prometheus 监控 ES.
https://img2023.cnblogs.com/other/3034537/202301/3034537-20230106110930466-306781123.svg
具体实现为:
采集端 elasticsearch_exporter

可以监控的指标为:
NameTypeCardinalityHelpelasticsearch_breakers_estimated_size_bytesgauge4Estimated size in bytes of breakerelasticsearch_breakers_limit_size_bytesgauge4Limit size in bytes for breakerelasticsearch_breakers_trippedcounter4tripped for breakerelasticsearch_cluster_health_active_primary_shardsgauge1The number of primary shards in your cluster. This is an aggregate total across all indices.elasticsearch_cluster_health_active_shardsgauge1Aggregate total of all shards across all indices, which includes replica shards.elasticsearch_cluster_health_delayed_unassigned_shardsgauge1Shards delayed to reduce reallocation overheadelasticsearch_cluster_health_initializing_shardsgauge1Count of shards that are being freshly created.elasticsearch_cluster_health_number_of_data_nodesgauge1Number of data nodes in the cluster.elasticsearch_cluster_health_number_of_in_flight_fetchgauge1The number of ongoing shard info requests.elasticsearch_cluster_health_number_of_nodesgauge1Number of nodes in the cluster....
可以直接在 github 上找到完整的
展示端 基于Grafana

<blockquote>

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
页: [1]
查看完整版本: 使用Prometheus监控docker compose方式部署的ES