github.com/observiq/bindplane-agent@v1.51.0/config/google_cloud_exporter/cadvisor/README.md (about) 1 # Cadvisor Metrics with Google Cloud 2 3 The Prometheus Receiver can be used to send [Cadvisor](https://github.com/google/cadvisor) metrics to Google Cloud Monitoring. 4 5 ## Prerequisites 6 7 **Google Cloud** 8 9 See the [prerequisites](../prerequisites.md) doc for Google Cloud prerequisites. 10 11 [Cadvisor](https://github.com/google/cadvisor) should be running as a container with the name `cadvisor`. 12 13 ## Deployment 14 15 Run with Docker Compose. Docker Compose assumes that a `credentials.json` 16 service account key exists in this directory. 17 18 ```bash 19 docker-compose up -d 20 ``` 21 22 ***docker-compose.yml*** 23 ```yaml 24 version: "3.9" 25 services: 26 cadvisor: 27 image: gcr.io/cadvisor/cadvisor:latest 28 restart: always 29 container_name: cadvisor 30 hostname: cadvisor 31 ports: 32 - 8080:8080 33 volumes: 34 - /:/rootfs:ro 35 - /var/run:/var/run:rw 36 - /sys:/sys:ro 37 - /var/lib/docker/:/var/lib/docker:ro 38 39 agent: 40 image: observiq/bindplane-agent:1.30.0 41 restart: always 42 container_name: bindplane-agent 43 hostname: bindplane-agent 44 deploy: 45 resources: 46 limits: 47 cpus: 0.50 48 memory: 256M 49 environment: 50 - GOOGLE_APPLICATION_CREDENTIALS=/etc/otel/credentials.json 51 volumes: 52 - ${PWD}/config.yaml:/etc/otel/config.yaml 53 - ${PWD}/credentials.json:/etc/otel/credentials.json 54 ```