跳转到主要内容
GET
/
metrics
获取 Prometheus 指标文本
curl --request GET \
  --url http://127.0.0.1:9090/metrics \
  --header 'Authorization: Bearer <token>'
"<string>"

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

响应

Prometheus 暴露格式

The response is of type string.