Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KarmaPol opened this issue Feb 25, 2024 · 4 comments
Open

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

KarmaPol opened this issue Feb 25, 2024 · 4 comments
Assignees
Labels

Comments

@KarmaPol
Copy link
Member

KarmaPol commented Feb 25, 2024

  • 프로메테우스, 그라파나 추가

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

curl -X POST http://127.0.0.1:9090/-/reload
@KarmaPol KarmaPol added the infra label Feb 25, 2024
@KarmaPol KarmaPol self-assigned this Feb 25, 2024
@KarmaPol
Copy link
Member Author

KarmaPol commented Mar 1, 2024

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

cfbarbero/tick-grafana-docker#1

@KarmaPol
Copy link
Member Author

KarmaPol commented Mar 2, 2024

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

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

@KarmaPol
Copy link
Member Author

KarmaPol commented Mar 3, 2024

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

services:
  prometheus:
    image: prom/prometheus:v2.21.0

    command:
      - '--config.file=/etc/prometheus/prometheus.yml'
      - '--storage.tsdb.path=/prometheus'
      - '--storage.tsdb.retention=${PROMETHEUS_RETENTION:-48h}'
    user: root
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - ./prometheus.yml:/etc/prometheus/prometheus.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant