관리-도구
편집 파일: registry.cpython-311.pyc
� �܋f� � �Z � d dl Z d dlmZ ddlmZ G d� de� � Z ed�� � ZdS ) � N)�Lock� )�Metricc �R � e Zd ZdZdd�Zd� Zd� Zd� Zd� Zd � Z d � Z d� Zd� Zdd �Z dS )�CollectorRegistryz�Metric collector registry. Collectors must have a no-argument method 'collect' that returns a list of Metric objects. The returned metrics should be consistent with the Prometheus exposition formats. FNc � � i | _ i | _ || _ t � � | _ i | _ | � |� � d S �N)�_collector_to_names�_names_to_collectors�_auto_describer �_lock�_target_info�set_target_info)�self� auto_describe�target_infos �k/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/prometheus_client/registry.py�__init__zCollectorRegistry.__init__ sG � �#%�� �$&��!�+����V�V�� �������[�)�)�)�)�)� c �8 � | j 5 | � |� � }t | j � � � |� � }|r"t d� |� � � � �|D ]}|| j |<