Prometheus metrics
curl --request GET \
--url https://harness.example.com/metricsconst options = {method: 'GET'};
fetch('https://harness.example.com/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://harness.example.com/metrics"
response = requests.get(url)
print(response.text)"<string>"System
Prometheus metrics
GET
/
metrics
Prometheus metrics
curl --request GET \
--url https://harness.example.com/metricsconst options = {method: 'GET'};
fetch('https://harness.example.com/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://harness.example.com/metrics"
response = requests.get(url)
print(response.text)"<string>"Response
200 - text/plain
Prometheus text exposition
The response is of type string.
