Skip to main content

Configure CostGraph agent

Similar to the CostGraph operator, the CostGraph agent supports additional configuration options for the agent deployment via conf.yaml.

Quickstart

prometheus:
  enabled:       true
  metrics_port:  9101
  url:           "http://localhost:9090"
  timeout:       10s 
  interval:      15s
  tenantHeader:  ""
  tenantValue:   ""
  bearerToken:   ""
  tlsInsecure:   false
  labels:
    job: costgraph-agent
expected_utilisation:
  cpu: 80
  memory: 80
api_key: ""
metrics_only: false
Assuming you have prometheus running within the same instance as the agent, you can use the configuration above.

Config reference

prometheus
object
required
Prometheus client configuration for the agent.
expected_utilisation
object
Expected utilisation targets used to guide right-sizing recommendations.
api_key
string
required
API key used by the agent to authenticateExample:
“s34ko4k4-ksksokr3kgl-ok3krt4”
metrics_only
boolean
When enabled, the agent exports metrics only and skips recommendation. Useful if you only need observability or are running the agent in a metrics-forwarding mode.Example:
false