Hi, attached is a port for the Python client of Prometheus monitoring
system.

Description:
This library provides an API for exporting metrics from a Python application,
and an HTTP server to expose the metrics to Prometheus.

PyPI: https://pypi.org/project/prometheus_client/
Git: https://github.com/prometheus/client_python

make test: 1 failed, 191 passed on my amd64 machine. The failing test
is:

    def test_instance_ip_grouping_key(self):
        self.assertTrue('' != instance_ip_grouping_key()['instance'])

    def instance_ip_grouping_key():
        '''Grouping key with instance set to the IP Address of this host.'''
        with closing(socket.socket(socket.AF_INET, socket.SOCK_DGRAM)) as s:
            s.connect(('localhost', 0))
            OSError: [Errno 49] Can't assign requested address

Please test. It seems the developers skip this one unit test on macOS
too ("does not work on macOS"), according to
tests/test_exposition.py:L290-293.

An upcoming matrix-synapse port will depend on this port (although
currently versions >= 0.4.0 of this client are unsupported by
matrix-synapse). I hope this port is also useful standalone.

Porting quirks: PyPI source doesn't include tests, so this port fetches
the source from GitHub instead.

This version (0.5.0) had a memory leak on Python 3.7, so I've included
one commit ahead of the 0.5.0 release to patch this.

Upstream bundles decorator.py 4.0.10, so I added PATCHFILES from Debian
to disable this behavior; this now depends on the ports' version of
devel/py-decorator.

-- 
<3

Attachment: py-prometheus_client-0.5.0p0.tgz
Description: application/gzip

Reply via email to