Prometheus /api/v1/metadata

1 개요[ | ]

Prometheus /api/v1/metadata
# curl -s localhost:9090/api/v1/metadata | jq
{
  "status": "success",
  "data": {
    "go_gc_duration_seconds": [
      {
        "type": "summary",
        "help": "A summary of the pause duration of garbage collection cycles.",
        "unit": ""
      }
    ],
...
    ],
    "promhttp_metric_handler_requests_total": [
      {
        "type": "counter",
        "help": "Total number of scrapes by HTTP status code.",
        "unit": ""
      }
    ]
  }
}
# curl -s localhost:9090/api/v1/metadata?limit=2 | jq
{
  "status": "success",
  "data": {
    "go_gc_duration_seconds": [
      {
        "type": "summary",
        "help": "A summary of the pause duration of garbage collection cycles.",
        "unit": ""
      }
    ],
    "go_memstats_stack_sys_bytes": [
      {
        "type": "gauge",
        "help": "Number of bytes obtained from system for stack allocator.",
        "unit": ""
      }
    ]
  }
}

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}