Increase cni_request_duration buckets

With Kuryr the CNI requests can take a considerable
time given that it has to wait for a VIF from Neutron.
Let's increase the number of buckets to have more
meaningful data.

Change-Id: I74a1ef3139df0f989a5b7d4b2c72bd977b6e7a35
This commit is contained in:
Maysa Macedo 2022-03-30 18:09:06 +02:00
parent 84f6a8bacc
commit cfb246b804
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ class CNIPrometheusExporter(object):
self.registry = prometheus_client.CollectorRegistry()
metric_name = 'kuryr_cni_request_duration_seconds'
metric_description = 'The duration of CNI requests'
buckets = (5, 10, 15, 20, 25, 30, 40, 50, 60, _INF)
buckets = (10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120,
130, 140, 150, 160, 170, 180, _INF)
self.cni_requests_duration = prometheus_client.Histogram(
metric_name, metric_description,
labelnames={'command', 'error'}, buckets=buckets,