새소식

반응형
MSA

[MSA] Prometheus Grafana docker 설치

  • -
반응형

grafana docker image

grafana docker compose

version: "3.8"
services:
  grafana:
    image: grafana/grafana-oss:9.5.2
    container_name: grafana
    ports:
      - "3000:3000"
    volumes:
      - "grafana_volume:/var/lib/grafana"
      - "./grafana.ini:/etc/grafana/grafana.ini"
    restart: always
    privileged: true
volumes:
  grafana_volume:
    external: true

 

prometheus docker image

prometheus docker compose

version: "3.8"
services:
  prometheus:
    image: prom/prometheus:v2.41.0
    container_name: prometheus
    ports:
      - "9090:9090"
    volumes:
      - "prometheus_volume:/prometheus"
      - "./prometheus.yml:/etc/prometheus/prometheus.yml"
    command:
      - '--config.file=/etc/prometheus/prometheus.yml'
    restart: always
volumes:
  prometheus_volume:
    external: true
반응형

'MSA' 카테고리의 다른 글

[MSA] Service Mesh란  (0) 2024.03.03
[MSA] Prometheus Grafana 구성 및 특징  (0) 2024.02.23
[MSA] Envoy 구조 및 주요 용어 정리  (0) 2024.02.10
[MSA] Envoy란(proxy)(개념,특징)  (0) 2024.02.03
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.