I've tried to find a documentation about the metrics exposed by the NGINX ingress controller in Kubernetes but so far I haven't found any reliable source about the metrics and what they mean.
For example, there are three different request_size
metrics (sum
, bucket
, count
).
From my guessing sum
and count
correlate with each other. And to get the average request size I could probably do something like sum by (method) (request_size_sum{...}) / sum by (method) (request_size_count{...})
.
But what about bucket
and especially what is le
?
For metrics itself and some explanations about them, I think the closest and full list is presented on Github issue - Document prometheus metrics
Note! This is about ingress nginx which is kubernetes community driven. Ingress nginx which is developed by nginx inc is a different project so there can be some differences.
As for the types of metrics, this is about
Prometheus
itself. There are different types of them:counter:
gauge:
histogram (it's about buckets):
summary:
Please also get familiar with histograms and summaries.
As for
le
:Find an example of Prometheus queries and explanations