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

Method collect

tests/test_exposition.py:463–465  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

461 self.values = values
462
463 def collect(self):
464 self.metric_family.add_metric([], *self.values)
465 return [self.metric_family]
466
467
468def _expect_metric_exception(registry, expected_error):

Callers 9

setUpMethod · 0.45
test_workingMethod · 0.45
test_emptyMethod · 0.45
test_collectMethod · 0.45
test_restrictMethod · 0.45
assertLabelsMethod · 0.45

Calls 1

add_metricMethod · 0.45

Tested by

no test coverage detected