Skip to content

Dynatrace enrichment

Kimera can pull context from an observability platform into its LLM remediation prompts, and can run the platform’s own queries directly. Dynatrace is the built-in provider.

The Dynatrace provider reads two environment variables: DT_ENVIRONMENT and DT_PLATFORM_TOKEN. Without both, enrichment is skipped.

--enrich dynatrace adds KSPM and Smartscape data to the remediation prompt:

Terminal window
kimera -n target-namespace generate --type missing-network-policies --enrich dynatrace
kimera -n target-namespace generate --type missing-network-policies --enrich dynatrace --enrich-strategy llm-query --apply

--enrich-strategy selects how the data is fetched: targeted (default) pulls a fixed set keyed to the exploit type, llm-query lets the model compose the query, and davis uses the Davis analytics endpoint.

kimera query runs a query in the provider’s own language — DQL for Dynatrace — and returns the records, which is how to measure whether a control had the effect it claims:

Terminal window
kimera query 'fetch spans, from: -1h | filter k8s.namespace.name == "unguard" | limit 10'
kimera query '<query>' --provider dynatrace --json > evidence.json

A provider that refuses the request (HTTP 403) is reported as a denial naming the gateway, and the command exits non-zero. A scope problem is a fact about the token, not an empty result.

Enrichment and querying are two protocols, EnrichmentProvider and QueryProvider, defined in src/kimera/core/enrichment.py. A new provider implements either or both under src/kimera/container/integrations/<provider>/. The query language stays the provider’s own, so no cross-platform translation layer is involved.

All product names and logos are trademarks of their respective owners, used for identification only. No endorsement is implied.