RuleGroupsNamespaceData YAML structure
The RuleGroupsNamespaceData
structure contains the rule groups file
as a base64-encoded blob of the YAML file. The following is an example of an rules
file YAML.
groups: - name: test rules: - record: metric:recording_rule expr: avg(rate(container_cpu_usage_seconds_total[5m])) - name: alert-test rules: - alert: metric:alerting_rule expr: avg(rate(container_cpu_usage_seconds_total[5m])) > 0 for: 2m
For more details about rules, see Recording rules and alerting rules in the Amazon Managed Service for Prometheus User Guide.