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

Method increment_metrics

tests/test_asgi.py:82–85  ·  view source on GitHub ↗
(self, metric_name, help_text, increments)

Source from the content-addressed store, hash-verified

80 )
81
82 def increment_metrics(self, metric_name, help_text, increments):
83 c = Counter(metric_name, help_text, registry=self.registry)
84 for _ in range(increments):
85 c.inc()
86
87 def assert_metrics(self, output, metric_name, help_text, increments):
88 self.assertIn("# HELP " + metric_name + "_total " + help_text + "\n", output)

Callers 5

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

Calls 2

incMethod · 0.95
CounterClass · 0.90

Tested by

no test coverage detected