Skip to content

Environment Variables

All Metrics Agent configuration is passed via the env map in values.yaml. Keys are environment variable names; values are strings.

Required

VariableDescriptionExample
CLUSTER_NAMEName of the cluster (used to tag metrics)aks-tools-01
METRICS_API_URLMetrics API base URL (must be reachable from the pod)http://alerthawk-metrics-api.alerthawk.svc.cluster.local:8080
NAMESPACES_TO_WATCHComma-separated list of namespaces to monitoralerthawk,clickhouse,production

Optional — Collection

VariableDescriptionDefault
METRICS_COLLECTION_INTERVAL_SECONDSInterval in seconds between metric collections40
COLLECT_LOGSEnable log collectionfalse

Optional — Cluster / logging

VariableDescriptionDefault
CLUSTER_ENVIRONMENTEnvironment label (e.g. PROD, DEV)PROD
LOG_LEVELLog level (Verbose, Debug, Information, Warning, Error, Fatal)Information

Optional — Sentry

VariableDescriptionDefault
SENTRY_DSNSentry DSN for error tracking
ENVIRONMENTEnvironment name sent to SentryProduction

Example env block

yaml
env:
  # Required
  CLUSTER_NAME: "aks-tools-01"
  METRICS_API_URL: "http://alerthawk-metrics-api.alerthawk.svc.cluster.local:8080"
  NAMESPACES_TO_WATCH: "alerthawk,clickhouse,production"
  # Optional
  METRICS_COLLECTION_INTERVAL_SECONDS: "40"
  COLLECT_LOGS: "false"
  CLUSTER_ENVIRONMENT: "PROD"
  LOG_LEVEL: "Information"
  SENTRY_DSN: ""
  ENVIRONMENT: "Production"

AlertHawk - Self-hosted monitoring solution.