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

Add cadvisor and promethus to default stack #387

Closed
Tracked by #376
nh758 opened this issue May 7, 2024 · 1 comment
Closed
Tracked by #376

Add cadvisor and promethus to default stack #387

nh758 opened this issue May 7, 2024 · 1 comment
Assignees

Comments

@nh758
Copy link
Contributor

nh758 commented May 7, 2024

No description provided.

@nh758 nh758 mentioned this issue May 7, 2024
4 tasks
@nh758 nh758 assigned nh758 and unassigned nh758 May 14, 2024
@nh758
Copy link
Contributor Author

nh758 commented Jun 14, 2024

Added to terraform config.

For exisitng servers we can add a simple docker-compose file and run it

version: "3.9"

services:
  # prometheus - scrape metrics from cadvisor
  prometheus:
    image: digiserve/prometheus:main
    environment:
      - MIMIR_CLUSTER=experimental
      - MIMIR_NAMESPACE=experimental
      - MIMIR_URL=https://mimir.digiserve.org
      - MIMIR_ORG_ID=innovation
    depends_on:
      - cadvisor
   #/prometheus

  # cadvisor - collect metrics from other conatainers
  cadvisor:
    image: gcr.io/cadvisor/cadvisor:latest
    command:
      # - '-podman="unix:///var/run/podman/podman.sock"'
      - '-housekeeping_interval=10s'
      - '-docker_only=true'
    volumes:
      - /:/rootfs:ro
      # - /var/run/user/$(id -u)/podman:/var/run/podman:ro # Use for rootless podman
      - /var/run:/var/run:rw
      - /sys:/sys:ro
      - /var/lib/docker/:/var/lib/docker:ro
      - /dev/disk/:/dev/disk:ro
  #/cadvisor

@nh758 nh758 self-assigned this Jun 14, 2024
@nh758 nh758 closed this as completed Jun 14, 2024
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

1 participant