Tracks internal kong metrics and exposes a prometheus endpoint on the Admin API to be scraped by a Prometheus Collector.
$ curl -X POST http://localhost:8001/plugins -d "name=prometheus"
Now kong will track and monitor metrics across all apis and consumers.
You can view these metrics by going to:
http://localhost:8001/prometheus/metrics
kong_http_requests_total
- Number of HTTP requestskong_http_request_duration_seconds
- HTTP Request Latencykong_http_request_size_bytes
- HTTP Request Size Byteskong_http_response_size_bytes
- HTTP Response Size Byteskong_upstream_http_request_wait_duration_seconds
- Upstream HTTP Request Time to First Byte Latencykong_upstream_http_request_duration_seconds
- Upstream HTTP Request Latencykong_connections_active
- Total number of active connectionskong_connections_reading
- Total number of connections readingkong_connections_writing
- Total number of connections writingkong_connections_waiting
- Total number of connections waiting
- To
knyar
for theirnginx-lua-prometheus
client which this was built around and uses to track metrics.
- Implement Prometheus endpoint
- Tests