ElasticSearch
BLABLA
설치 방법 ( With Docker )
Docker Compose
version: "3.7"
services:
    elasticsearch:
        image: docker.elastic.co/elasticsearch/elasticsearch:7.5.1
        environment:
            - xpack.security.enabled=false
            - discovery.type=single-node
            - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
        ports:
            - 9200:9200
        ulimits:
            memlock:
                soft: -1
                hard: -1
        healthcheck:
            test: curl -f http://localhost:9200
            interval: 30s
            timeout: 10s
            retries: 5
        networks:
            - elastic
        volumes:
            - "esdata:/usr/share/elasticsearch/data"
    kibana:
        image: docker.elastic.co/kibana/kibana:7.5.1
        ports:
            - 5601:5601
        healthcheck:
            test: curl -f http://localhost:5601
            interval: 10s
            timeout: 5s
            retries: 3
        depends_on:
            - elasticsearch
        networks:
            - elastic
    apm-server:
        image: docker.elastic.co/apm/apm-server:7.5.1
        ports:
            - 8200:8200
        depends_on:
            - elasticsearch
            - kibana
        networks:
            - elastic
        volumes:
            - ./apm-server.yml:/usr/share/apm-server/apm-server.yml
    metric-beat:
        image: docker.elastic.co/beats/metricbeat:7.5.1
        depends_on:
            - elasticsearch
            - kibana
        networks:
            - elastic
        volumes:
            - ./metric-beat.yml:/usr/share/metricbeat/metricbeat.yml
networks:
    elastic:
        driver: bridge
volumes:
    esdata:
YAML
복사
APM Server
apm-server:
  host: "0.0.0.0:8200"
  kibana:
    enabled: true
    host: "kibana:5601"
output.elasticsearch:
  hosts: ["elasticsearch:9200"]
logging:
  to_files: false
YAML
복사
MetricBeat
metricbeat.config.modules:
  reload.enabled: false
  reload.period: 10s
setup.dashboards.enabled: true
setup.kibana.host: kibana:5601
output.elasticsearch:
  hosts: ['elasticsearch:9200']
metricbeat.modules:
  - module: system
    metricsets:
      - cpu
      - load
      - memory
      - network
      - process
      - process_summary
      - uptime
      - socket_summary
    enabled: true
    period: 10s
    processes: ['.*']
    cpu.metrics: ['percentages']
    core.metrics: ['percentages']
YAML
복사
