Skip to content

Commit

Permalink
Merge pull request #24646 from redpanda-data/DEVPROD-2531
Browse files Browse the repository at this point in the history
[rptest] Use HTTPS for metrics on opV2
  • Loading branch information
clee authored Dec 24, 2024
2 parents 8b6ec45 + ac1e508 commit 4d1f0e3
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 4d1f0e3

Please sign in to comment.