MCPcopy Create free account
hub / github.com/prometheus/client_python / increment_metrics

Method increment_metrics

tests/test_wsgi.py:22–25  ·  view source on GitHub ↗
(self, metric_name, help_text, increments)

Source from the content-addressed store, hash-verified

20 self.captured_headers = header
21
22 def increment_metrics(self, metric_name, help_text, increments):
23 c = Counter(metric_name, help_text, registry=self.registry)
24 for _ in range(increments):
25 c.inc()
26
27 def assert_outputs(self, outputs, metric_name, help_text, increments, compressed):
28 self.assertEqual(len(outputs), 1)

Callers 3

validate_metricsMethod · 0.95
test_gzipMethod · 0.95
test_gzip_disabledMethod · 0.95

Calls 2

incMethod · 0.95
CounterClass · 0.90

Tested by

no test coverage detected