Central-MakeUs / Daldal-Server

달달쇼핑 서버 레파지토리입니다.
7 stars 0 forks source link

infra: 프로메테우스, 그라파나 추가 #56

Open KarmaPol opened 8 months ago

KarmaPol commented 8 months ago

프로메테우스 설정파일 반영 명령어

curl -X POST http://127.0.0.1:9090/-/reload
KarmaPol commented 8 months ago

Docker 그라파나 run 오류

grafana:
    hostname: 'grafana'
    image: grafana/grafana:latest
    restart: always
    tmpfs:
      - /run
    volumes:
      - grafana_data:/var/lib/grafana
      - ./infrastructure/config/grafana/grafana.ini:/etc/grafana  /grafana.ini
      - ./infrastructure/config/grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
    ports:
      - "3000:3000"

tmpfs 실행 명령어 추가

Docker 그라파나 permission 오류

GF_PATHS_DATA='/var/lib/grafana' is not writable.
You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migrate-to-v51-or-later
mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied

https://github.com/cfbarbero/tick-grafana-docker/issues/1

KarmaPol commented 8 months ago

참고 블로그

튜토리얼

https://velog.io/@sgjung/Monitoring-간단한-Prometheus-실습w.-docker

mysql nodeexporter 프로메테우스

https://velog.io/@sojukang/세상에서-제일-쉬운-Prometheus-Grafana-모니터링-설정-MySQL편

docker-compose 설정

https://velog.io/@swhan9404/Prometheus를-docker로-구성해보기#grafana

KarmaPol commented 8 months ago

프로메테우스 Docker Swarm 모니터링 공식문서

https://prometheus.io/docs/guides/dockerswarm/

KarmaPol commented 8 months ago

프로메테우스 Prometheus can't access to docker.sock