elasticsearch self monitoring 여부 확인

2025. 3. 2. 15:00k8s/EFK

셋팅 확인

enabled:true이면 자체 모니터링 사용중

curl -X GET "http://localhost:9200/_cluster/settings?include_defaults=true&pretty"

# 결과
     "xpack": {
      "monitoring": {
        "collection": {
          "enabled": "true"
        }
      }

indices 확인

.monitoring-*에 해당하는 indices가 있으면 자체 모니터링 사용중

curl -X GET "http://localhost:9200/_cat/indices/.monitoring-*?v"

# 결과
green  open .monitoring-es-7-2025.03.01 ...

metricbeat 작동 확인

.monitoring- indices에 데이터가 쌓이지 않는데, 그래프가 나오는 경우

Index Management > Data Streams에 'metricbeat-버전'이 존재하는 경우