metricbeat(17)
-
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 -
Metricbeat 상태 확인
# running 상태metricbeat test output# 데이터 전송하는지 확인GET metricbeat-*/_search?size=5
2025.02.12 -
Metricbeat Kibana의 Stack Monitroing 연동
ConfigMap: metricsets에 ingest_pipeline를 설정api key는 encoding된 값이 아닌, ID:PASSWORD로 넘겨야 함apiVersion: v1kind: ConfigMapmetadata: namespace: {namespace} name: metricbeatdata: metricbeat.yml: | metricbeat.config.modules: path: ${path.config}/modules.d/*.yml reload.enabled: true setup.template.settings: index.number_of_shards: 5 index.codec: best_compression setup.kibana..
2025.02.09 -
Metricbeat Pod의 Host 정보 가져오기
args: ["-e", "--system.hostfs=/hostfs"] 옵션이 추가 되어야 함apiVersion: apps/v1kind: DaemonSetmetadata: name: metricbeat namespace: {namespace} labels: app: metricbeatspec: #replicas: 1 selector: matchLabels: app: metricbeat template: metadata: labels: app: metricbeat spec: # 이게 없으면 다 안됨 securityContext: runAsUser: 0 runAsGroup: 0 fsGroup..
2025.02.09 -
Metricbeat Pod로 Elasticsearch와 연동하기
yml 파일apiVersion: v1kind: Namespacemetadata: name: {namespace}---apiVersion: v1kind: ConfigMapmetadata: namespace: {namespace} name: metricbeatdata: metricbeat.yml: | metricbeat.config.modules: path: ${path.config}/modules.d/*.yml reload.enabled: false setup.template.settings: index.number_of_shards: 5 index.codec: best_compression # port가 없으면 기본 port를 사용 setup.k..
2025.02.08 -
Metricbeat /usr/local/bin/docker-entrypoint: line 8: exec: metricbeat: not found
실행 파일이 없어서 난 오류나의 경우는 volume mount를 잘못해서 해당 디렉토리의 파일이 없어져서 생긴 문제
2025.02.08