Replies: 1 comment 2 replies
-
You can extract rules from CR with:
Or if you already have PrometheusRule object in json (for example getting form k8s):
And proceed with testing via promtool.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to run unit tests for alerting rules using
promtool
. But rules are defined inPrometheusRule
CRD and it's not obvious to extract rules from CRD and run tests against them. A user guide explaining unit tests would be nice. Thanks!References
Beta Was this translation helpful? Give feedback.
All reactions