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

monitor: add monitor service in docker-compose #45

Closed
skyzh opened this issue Nov 8, 2020 · 1 comment
Closed

monitor: add monitor service in docker-compose #45

skyzh opened this issue Nov 8, 2020 · 1 comment
Assignees

Comments

@skyzh
Copy link
Member

skyzh commented Nov 8, 2020

We plan to add the following monitoring service on siyuan mirror.

  • cAdvisor for monitoring network flow of each container.
  • node-exporter for monitoring host status.

Reference: https://github.com/stefanprodan/dockprom/blob/master/docker-compose.yml for node_exporter

Reference: https://prometheus.io/docs/guides/cadvisor/#docker-compose-configuration

  cadvisor:
    image: gcr.io/google-containers/cadvisor:latest
    container_name: cadvisor
    ports:
    - 8080:8080
    volumes:
    - /:/rootfs:ro
    - /var/run:/var/run:rw
    - /sys:/sys:ro
    - /var/lib/docker/:/var/lib/docker:ro

After that, we reverse-proxy these metrics in caddy with ip address limit. Ziqi and me will work on this config later.

@doctormin
Copy link
Contributor

  • cAdvisor for monitoring network flow of each container.
  • node-exporter for monitoring host status.

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

No branches or pull requests

2 participants