kibana에 metricbeat dashboard 업로드

2025. 3. 2. 20:59k8s/EFK

metricbeat pod에 접속

sudo metricbeat setup --dashboards

에러 및 조치

# 에러
Loading dashboards (Kibana must be running and reachable)
Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to http://localhost:5601/api/status fails: fail to execute the HTTP GET request: Get "http://localhost:5601/api/status": dial tcp 127.0.0.1:5601: connect: connection refused (status=0). Response:

# 확인1
/usr/share/metricbeat/merticbeat.yml이 존재하는지 확인

# 확인2
metricbeat.yml에 아래 내용이 있는지 확인
    setup.kibana:
      host: "http://kibana.elastic.svc.cluster.local:5601"