MCPcopy Index your code
hub / github.com/prometheus/client_python / increment_metrics

Method increment_metrics

tests/test_aiohttp.py:42–50  ·  view source on GitHub ↗
(
        self,
        metric_name: str,
        help_text: str,
        increments: int,
    )

Source from the content-addressed store, hash-verified

40 return app
41
42 def increment_metrics(
43 self,
44 metric_name: str,
45 help_text: str,
46 increments: int,
47 ) -> None:
48 c = Counter(metric_name, help_text, registry=self.registry)
49 for _ in range(increments):
50 c.inc()
51
52 def assert_metrics(
53 self,

Callers 4

validate_metricsMethod · 0.95
test_gzipMethod · 0.95
test_gzip_disabledMethod · 0.95
test_qs_parsingMethod · 0.95

Calls 2

incMethod · 0.95
CounterClass · 0.90

Tested by

no test coverage detected