Skip to content

Commit b5a685d

Browse files
committed
test for metrics being present
1 parent 98c5732 commit b5a685d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/templates/kuttl/smoke/test_zookeeper.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ def check_monitoring(hosts):
6464
response = try_get(url)
6565

6666
if response.ok:
67+
# arbitrary metric was chosen to test if metrics are present in the response
68+
if "quorum_size" in response.text:
69+
continue
70+
else:
71+
print("Error for [" + url + "]: missing metrics")
72+
exit(-1)
6773
continue
6874
else:
6975
print("Error for [" + url + "]: could not access monitoring")

0 commit comments

Comments
 (0)