4bf4ce33c9
This change replaces the metricqueue library with a native Prometheus client implementation with the intention to aggregated results with the Prometheus PushGateway. This change also adds instrumentation for greenlet context switches.
13 lines
664 B
Python
13 lines
664 B
Python
from prometheus_client import Counter
|
|
|
|
image_pulls = Counter('quay_registry_image_pulls_total',
|
|
'number of images that have been downloaded via the registry',
|
|
labelnames=['protocol', 'ref', 'status'])
|
|
|
|
image_pushes = Counter('quay_registry_image_pushes_total',
|
|
'number of images that have been uploaded via the registry',
|
|
labelnames=['protocol', 'status'])
|
|
|
|
image_pulled_bytes = Counter('quay_registry_image_pulled_bytes_total',
|
|
'number of bytes that have been downloaded via the registry',
|
|
labelnames=['protocol'])
|