/metrics/prometheus
Returns the metrics in Prometheus exposition format (text/plain; version=0.0.4; charset=utf-8), for a Prometheus with Prometheus Adapter or for the Kubernetes Custom/External Metrics API when you want to autoscale on facephi_* metrics. It contains only the traffic, saturation and latency counters collected by the REST manager. The service, state, usage, quality and alerts blocks are only available in the JSON version of the endpoint, GET /metrics.
get
Respostas
200
Operational metrics in Prometheus text format.
text/plain
stringOpcional
500
An error occurred while building the snapshot.
application/json
get/metrics/prometheus
GET /metrics/prometheus HTTP/1.1
Host: 127.0.0.1:6982/
Accept: */*
# TYPE facephi_requests_total counter
facephi_requests_total 128
# TYPE facephi_request_success_total counter
facephi_request_success_total 126
# TYPE facephi_request_client_errors_total counter
facephi_request_client_errors_total 2
# TYPE facephi_request_server_errors_total counter
facephi_request_server_errors_total 0
# TYPE facephi_request_unauthorized_total counter
facephi_request_unauthorized_total 0
# TYPE facephi_inflight_requests gauge
facephi_inflight_requests 1
# TYPE facephi_configured_threads gauge
facephi_configured_threads 1
# TYPE facephi_backlog_suspected gauge
facephi_backlog_suspected 0
facephi_endpoint_requests_total{method="POST",path="/faces"} 30
facephi_endpoint_request_success_total{method="POST",path="/faces"} 29
facephi_endpoint_request_client_errors_total{method="POST",path="/faces"} 1
facephi_endpoint_request_server_errors_total{method="POST",path="/faces"} 0
facephi_endpoint_request_unauthorized_total{method="POST",path="/faces"} 0
facephi_endpoint_inflight_requests{method="POST",path="/faces"} 0
facephi_window_requests{window="1m"} 4
facephi_window_rps{window="1m"} 0.0666
facephi_window_success_rate{window="1m"} 1
facephi_window_error_rate{window="1m"} 0
facephi_max_inflight_requests{window="1m"} 2
facephi_total_latency_ms{window="1m",stat="avg"} 120
facephi_total_latency_ms{window="1m",stat="p50"} 110
facephi_total_latency_ms{window="1m",stat="p95"} 240
facephi_total_latency_ms{window="1m",stat="p99"} 260
facephi_total_latency_ms{window="1m",stat="max"} 260
facephi_total_latency_ms_count{window="1m"} 4
facephi_total_latency_ms_sum{window="1m"} 480
facephi_total_latency_ms_bucket{window="1m",le="250"} 3
facephi_total_latency_ms_bucket{window="1m",le="+Inf"} 4
Atualizado