diff --git a/technology/applications/Applications.md b/technology/applications/Applications.md index 2911a22..32b63e4 100644 --- a/technology/applications/Applications.md +++ b/technology/applications/Applications.md @@ -119,6 +119,7 @@ rev: 2024-07-14 - [Textpieces](utilities/Textpieces.md) - [ImHex](utilities/ImHex.md) - [Node Exporter](utilities/node-exporter.md) +- [cAdvisor](utilities/cAdvisor.md) # Mobile - [Aegis](./utilities/Aegis.md) diff --git a/technology/applications/utilities/cAdvisor.md b/technology/applications/utilities/cAdvisor.md new file mode 100644 index 0000000..4e7b248 --- /dev/null +++ b/technology/applications/utilities/cAdvisor.md @@ -0,0 +1,42 @@ +--- +obj: application +repo: https://github.com/google/cadvisor +rev: 2024-12-12 +--- + +# cAdvisor +cAdvisor (Container Advisor) provides container users an understanding of the resource usage and performance characteristics of their running containers. It is a running daemon that collects, aggregates, processes, and exports information about running containers. Specifically, for each container it keeps resource isolation parameters, historical resource usage, histograms of complete historical resource usage and network statistics. This data is exported by container and machine-wide. + +## Prometheus +Add this to [Prometheus](../web/Prometheus.md) config file: + +```yml +scrape_configs: +- job_name: cadvisor + scrape_interval: 5s + static_configs: + - targets: + - cadvisor:8080 +``` + +## Docker-Compose + +```yml +services: + cadvisor: + volumes: + - /:/rootfs:ro + - /var/run:/var/run:ro + - /sys:/sys:ro + - /var/lib/docker/:/var/lib/docker:ro + - /dev/disk/:/dev/disk:ro + ports: + - target: 8080 + published: 8080 + protocol: tcp + mode: host + privileged: true + image: gcr.io/cadvisor/cadvisor + deploy: + mode: global +```