Prometheus 정책 구성 레퍼런스
Prometheus 정책 구성 레퍼런스 (Prometheus Policy Configuration Reference)
이 문서는 Prometheus 정책에서 설정할 수 있는 구성 옵션을 스키마 형태로 보여주는 참고 자료예요. 상태 코드, 지연 시간, 대역폭, 업스트림 헬스, AI 관련 메트릭의 수집 여부를 불리언 값으로 켜고 끌 수 있어요. 각 옵션을 활성화했을 때 어떤 메트릭이 내보내지는지 설명이 함께 붙어 있어서, 모니터링에 필요한 메트릭만 골라 설정할 때 유용해요. per_consumer 옵션을 켜면 소비자 라벨이 채워진 메트릭까지 수집할 수 있다는 점도 기억해 두면 좋아요
출처: 문서
본문
{
"properties": {
"config": {
"type": "object",
"properties": {
"status_code_metrics": {
"type": "boolean",
"description": "A boolean value that determines if status code metrics should be collected. If enabled, `http_requests_total`, `stream_sessions_total` metrics will be exported.",
"default": false
},
"ai_metrics": {
"type": "boolean",
"description": "A boolean value that determines if ai metrics should be collected. If enabled, the `ai_llm_requests_total`, `ai_llm_cost_total` and `ai_llm_tokens_total` metrics will be exported.",
"default": false
},
"latency_metrics": {
"type": "boolean",
"description": "A boolean value that determines if latency metrics should be collected. If enabled, `kong_latency_ms`, `upstream_latency_ms` and `request_latency_ms` metrics will be exported.",
"default": false
},
"bandwidth_metrics": {
"type": "boolean",
"description": "A boolean value that determines if bandwidth metrics should be collected. If enabled, `bandwidth_bytes` and `stream_sessions_total` metrics will be exported.",
"default": false
},
"upstream_health_metrics": {
"type": "boolean",
"description": "A boolean value that determines if upstream metrics should be collected. If enabled, `upstream_target_health` metric will be exported.",
"default": false
},
"wasm_metrics": {
"type": "boolean"
},
"per_consumer": {
"type": "boolean",
"description": "A boolean value that determines if per-consumer metrics should be collected. If enabled, the `kong_http_requests_total` and `kong_bandwidth_bytes` metrics fill in the consumer label when available.",
"default": false
}
}
}
}
}
관련 리소스
더 알아보기 (Learn more)
- Prometheus로 수집한 메트릭을 통합 관찰하는 Kong Konnect의 옵저버빌리티 기능 소개 — Kong Konnect Observability
- Prometheus 외에 OpenTelemetry 기반으로 메트릭을 내보내는 정책의 설정 방법 — OpenTelemetry Policy
- ai_metrics 옵션으로 수집되는 AI LLM 메트릭을 확인하고 모니터링하는 방법 — Monitor AI LLM metrics