k8s(192)
-
metricbeat Warning FailedCreate DaemonSet/metricbeat Error creating: pods "metricbeat-" is forbidden: error looking up service account kube-system/metricbeat: serviceaccount "metricbeat" not found
ServiceAccount 생성apiVersion: v1kind: ServiceAccountmetadata: name: metricbeat namespace: kube-systemRBAC 생성: 없도 작동함(영향도를 확인 못함)apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRolemetadata: name: metricbeatrules: - apiGroups: [""] resources: ["nodes", "nodes/stats", "pods", "services", "endpoints", "events"] verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["configm..
2025.03.02 -
metricbeat "message":"Error fetching data for metricset system.process: non fatal error; reporting partial metrics: error fetching PID metrics for 267 processes, most likely a \"permission denied\" error."
spec: serviceAccountName: metricbeat hostPID: true # ✅ Allow access to host process IDs containers: - name: metricbeat image: docker.elastic.co/beats/metricbeat:8.4.3 securityContext: privileged: true # ✅ Full access to system resources capabilities: add: - SYS_PTRACE # ✅ Allow process inspection ..
2025.03.02 -
metricbeat을 모니터링 정보로 사용하도록 설정
metricbeat.yml: | .. metricbeat.modules: # Monitor Elasticsearch - module: elasticsearch xpack.enabled: true period: 10s hosts: ["http://elastic-headless.elastic.svc.cluster.local:9200"] api_key: {id}:{passwd} # Monitor Kibana - module: kibana xpack.enabled: true period: 10s hosts: ["http://kibana.elastic.svc.cluster.local..
2025.03.02 -
metricbeat "message":"DNS lookup failure \"kibana\": lookup kibana on 10.96.0.10:53: no such host"
metricbeat.yml: | .. metricbeat.modules: - module: kibana xpack.enabled: true period: 10s hosts: ["http://kibana:5601"] api_key: {id}:{passwd} ..hosts정보가 잘못되었음service의 도메인 정보를 잘 기술하면 됨
2025.03.02 -
kibana에 metricbeat dashboard 업로드
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). Respon..
2025.03.02 -
metricbeat용 api_key 생성
command 이용curl -u "{계정}:{비밀번호}" -X POST "http://localhost:9200/_security/api_key" -H "Content-Type: application/json" -d '{ "name": "metricbeat_key", "role_descriptors": { "metricbeat_role": { "cluster": ["monitor"], "index": [ { "names": ["metricbeat-*"], "privileges": ["read", "write", "create_index"] } ] } }}'kibana 이용# Stack Management ..
2025.03.02