cki.cki_tools.service_metrics

Service metrics exposed via Prometheus

The service metrics framework runs collector modules on specific schedules to generate various metrics about CKI or external services.

AWS costs

The cki_aws_cost metric exposes daily AWS costs from the Cost Explorer API. The group label carries the value of the activated app-code cost allocation tag of the resources (Unknown for untagged resources), the type label the cost breakdown (e.g. service, usage_type, instance_type, operation or component), and the key label the value within that breakdown. A common filter for all queries, e.g. to exclude certain services, can be configured via the cost/filter entry in the AWS_CONFIG YAML configuration.

Team totals are available in PromQL via sum by (group) (cki_aws_cost{type="service"}).

During the migration from the previous cost/groups format, a missing cost/filter entry falls back to the old cost/groups/all filter. Remove this note once all deployments are migrated.