How to use the perfmetrics.statsd_client_from_uri function in perfmetrics

To help you get started, we’ve selected a few perfmetrics examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pypa / pypi-legacy / store.py View on Github external
self.userip = None
        self._conn = None
        self._cursor = None
        self._trove = None
        if self.config.database_driver == 'sqlite3':
            self.true, self.false = '1', '0'
            self.can_lock = False
        else:
            self.true, self.false = 'TRUE', 'FALSE'
            self.can_lock = True

        self.queue = queue
        self.count_redis = redis

        self.statsd_uri = "statsd://127.0.0.1:8125?prefix=%s" % (config.database_name)
        self.statsd_reporter = statsd_client_from_uri(self.statsd_uri)
        self.dogstatsd = dogstatsd

        self.package_bucket = package_bucket

        self._changed_packages = set()
        self._deleted_files = set()

perfmetrics

Send performance metrics about Python code to Statsd

BSD-2-Clause
Latest version published 5 months ago

Package Health Score

59 / 100
Full package analysis

Similar packages