Prometheus Metrics
curl --request GET \
--url http://localhost:8000/metricsimport requests
url = "http://localhost:8000/metrics"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8000/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"API Reference
Prometheus Metrics
Returns metrics in Prometheus text format. Includes request counts, latencies, scraping statistics, and system metrics.
GET
/
metrics
Prometheus Metrics
curl --request GET \
--url http://localhost:8000/metricsimport requests
url = "http://localhost:8000/metrics"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8000/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"Response
Prometheus metrics
The response is of type string.