Prometheus /api/v1/targets

Jmnote (토론 | 기여)님의 2021년 3월 16일 (화) 16:34 판 (새 문서: ==개요== ;Prometheus /api/v1/targets <syntaxhighlight lang='console'> root@ceaead3fadad:/# curl -s http://localhost:9090/api/v1/targets | jq { "status": "success", "data": {...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

개요

Prometheus /api/v1/targets
root@ceaead3fadad:/# curl -s http://localhost:9090/api/v1/targets | jq
{
  "status": "success",
  "data": {
    "activeTargets": [
      {
        "discoveredLabels": {
          "__address__": "localhost:9090",
          "__metrics_path__": "/metrics",
          "__scheme__": "http",
          "job": "prometheus"
        },
        "labels": {
          "instance": "localhost:9090",
          "job": "prometheus"
        },
        "scrapePool": "prometheus",
        "scrapeUrl": "http://localhost:9090/metrics",
        "globalUrl": "http://ceaead3fadad:9090/metrics",
        "lastError": "",
        "lastScrape": "2021-02-18T19:28:35.561649671Z",
        "lastScrapeDuration": 0.003036905,
        "health": "up"
      }
    ],
    "droppedTargets": []
  }
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}