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

Method collect

prometheus_client/multiprocess.py:169–171  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

167 return metrics.values()
168
169 def collect(self):
170 files = glob.glob(os.path.join(self._path, '*.db'))
171 return self.merge(files, accumulate=True)
172
173
174_LIVE_GAUGE_MULTIPROCESS_MODES = {m for m in Gauge._MULTIPROC_MODES if m.startswith('live')}

Callers

nothing calls this directly

Calls 2

mergeMethod · 0.95
joinMethod · 0.80

Tested by

no test coverage detected