본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Prometheus 플러그인 OpenAPI 사양

원문 보기 위키 갱신

Prometheus 플러그인 OpenAPI 사양 (Prometheus Plugin OpenAPI Specification)

이 문서는 Prometheus 플러그인의 OpenAPI 사양을 담고 있어요. Kong Admin API의 /metrics 엔드포인트가 Prometheus 형식으로 포맷된 메트릭을 반환한다는 것을 스펙 차원에서 정의하고 있어요. API 버전, 서버 정보, 응답 스키마 같은 구성 요소를 YAML 형태로 그대로 확인할 수 있어요

출처: 문서

본문

---
openapi: 3.0.2
info:
  title: Prometheus
  version: 1.0.0
  description: API for managing Prometheus metrics
  contact:
    name: Kong Inc
    url: https://konghq.com
    email: docs@konghq.com
servers:
- url: http://localhost:8001
  description: Kong Admin API
paths:
  "/metrics":
    get:
      summary: Prometheus metrics endpoint
      tags:
      - Prometheus
      responses:
        '200':
          description: Prometheus-formatted metrics
          content:
            text/plain:
              schema:
                type: string

관련 리소스

더 알아보기 (Learn more)