Resolve "Support Regular Expression In Prometheus Target Checks"
General MR
Summary
Adds support of passing in a Regular Expression when matching the Prometheus targets expected up pods.
Using a grouping, we verify that if x pods are running in the cluster , then only x/x up
will match the regex.
This also accepts a plain text match string as currently implemented. So, it should provide backward compatibility.
A sample of this working in the Monitoring package can be found here: monitoring!393 (merged)
Also tested this on a local k8s cluster with Big Bang umbrella chart to verify the tests work as expected with a different number of pods.
Linked Issue
Issue #55 (closed)
Upgrade Notices
N/A
Edited by Michael Martin