Prometheus Elasticsearch 모니터링하기

By | 2020년 8월 20일
Table of Content

Prometheus Elasticsearch 모니터링하기

참조1
참조2

선행작업

docker-compose.yml 수정

vi docker-compose.yml
  # ......
  elasticsearch_exporter:
    image: justwatch/elasticsearch_exporter:1.1.0
    container_name: elasticsearch_exporter
    depends_on:
      - prometheus
    command:
     - '--es.uri=http://172.31.11.235:9200'
    restart: always
    ports:
    - "9114:9114"
sudo vi /data/docker/prometheus/prometheus.yml
  # ......
  - job_name: 'elasticsearch_exporter'
    static_configs:
      - targets: ['172.31.11.235:9114']
docker-compose down
docker-compose up -d

여기 링크를 import 해주면 됩니다.

댓글 남기기