Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/ai-tools/gcx/resources/adaptive-metrics-rules.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/ai-tools/gcx/resources/adaptive-metrics-rules/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Adaptive Metrics rules
Adaptive Metrics v2 rules do not store or return managed_by. The field remains in the AggregationRule schema as deprecated so older manifests and legacy recommendation data can still be read. A v2 rule write ignores its value, and a v2 read returns it empty.
Do not use managed_by to manage v2 rules. A manifest with a non-empty value can continue to show a diff after every pull because the v2 API cannot preserve that value. The schema marks the field deprecated, but this is guidance for schema-aware tools, not a runtime rejection or warning.
Deleting rules from manifests
When you pass an AggregationRule manifest to gcx resources delete -p <path>, gcx counts the deletion as successful even if the rule is already absent. The dedicated gcx metrics adaptive rules delete <metric> command still reports an error when the rule does not exist.
Recommendation previews
gcx metrics adaptive recommendations apply --all --dry-run summarizes recommendations in the analyzed metrics catalog. It counts keep verdicts as skipped and leaves out none verdicts because there is no recommendation to apply. If you name a metric explicitly, a none verdict counts as skipped because the metric was part of your request.
Was this page helpful?
Related resources from Grafana Labs


