Skip to content

Commit

Permalink
[rptest] Use HTTPS for metrics on opV2
Browse files Browse the repository at this point in the history
  • Loading branch information
clee committed Dec 23, 2024
1 parent 06ae9f3 commit ac1e508
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/rptest/services/redpanda.py
Original file line number Diff line number Diff line change
Expand Up @@ -2140,8 +2140,10 @@ def metrics(
if metrics_endpoint == MetricsEndpoint.PUBLIC_METRICS:
text = self._cloud_cluster.get_public_metrics()
else:
# operator V2 clusters use HTTPS for all the things
p = '-k https' if self.is_operator_v2_cluster() else 'http'
text = self.kubectl.exec(
'curl -f -s -S http://localhost:9644/metrics', pod.name)
f'curl -f -s -S {p}://localhost:9644/metrics', pod.name)
return text_string_to_metric_families(text)

def metrics_sample(
Expand Down

0 comments on commit ac1e508

Please sign in to comment.