docker run -d --name costgraph-agent \ --restart=always \ --pid=host \ --net=host \ -v /proc:/host/proc:ro \ -v $(pwd)/etc/costgraph-agent:/etc/costgraph-agent:ro \ -v $(pwd)/var/lib/costgraph-agent:/var/lib/costgraph-agent \ --workdir /var/lib/costgraph-agent \ ghcr.io/baselinehq/costgraph-agent:latest \ costgraph-agent -conf /etc/costgraph-agent/conf.yaml
api_key: "your-api-key-here" prometheus: enabled: true url: "https://your-prometheus-endpoint" write_path: "/api/v1/write" timeout: 10s interval: 60s tlsInsecure: false labels: env: "production" expected_utilisation: cpu: 60 memory: 75
Check Container Status
docker ps | grep costgraph-agent
Check Metrics
curl http://localhost:9090/metrics
Check Logs
docker logs costgraph-agent