Download Agent
Install Binary
Create Configuration Directory
Create Configuration File
quick prometheus setup
Create Systemd Service
Enable and Start Service
/etc/costgraph-agent/conf.yaml
:
Option | Description | Default |
---|---|---|
api_key | Your CostGraph API key | Required |
prometheus.enabled | Enable Prometheus metrics export | true |
prometheus.url | Prometheus server endpoint | Required |
prometheus.write_path | Prometheus write API path | "/api/v1/write" |
prometheus.timeout | Request timeout | 10s |
prometheus.interval | Metrics collection interval | 60s |
prometheus.tlsInsecure | Skip TLS verification | false |
prometheus.labels | Additional labels for metrics | {} |
expected_utilisation.cpu | Expected CPU utilization % | 60 |
expected_utilisation.memory | Expected memory utilization % | 75 |
Check Service Status
Check Logs