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/latest/ai-tools/grafana-cli/gcx/resources/linter-rules.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana/latest/ai-tools/grafana-cli/gcx/resources/linter-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.
Linter rules
Run gcx dev lint list-rules to list the rules bundled with your installed version.
Custom rules
Custom rules are loaded via gcx dev lint run --rules <path>. They run inside a
restricted OPA capabilities sandbox. The following built-in
OPA functions are not available in custom rules:
| Disallowed builtin | Reason |
|---|---|
http.send | Network exfiltration vector |
net.* (all net. prefixed builtins) | Network exfiltration vector |
opa.runtime | Runtime introspection / environment disclosure |
No flag is provided to re-enable these functions. Bundled rules are unaffected.
Was this page helpful?
Related resources from Grafana Labs


