get_ruler_rules
Retrieves all alert rules from Grafana's Ruler API, returning a dictionary mapping namespaces to rule groups. Provides read-only access as an alternative to the Provisioning API.
Instructions
Get all alert rules from the Ruler API.
Returns a dict mapping namespace (folder) to list of rule groups. Each rule group contains rules and evaluation configuration. This is the non-admin alternative to the Provisioning API.
Args: connection_name: Name of the Grafana connection
Returns: JSON string with all rule groups organized by namespace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |