Code
Hub
Trending
Following
Digest
Agents
Workspaces
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/prometheus/client_python
/ collect
Method
collect
prometheus_client/registry.py:9–10 ·
view source on GitHub ↗
Collect metrics.
(self)
Source
from the content-addressed store, hash-verified
7
8
class
Collector(Protocol):
9
def
collect(self) -> Iterable[Metric]:
10
""
"Collect metrics."
""
11
12
13
class
_EmptyCollector:
Callers
5
generate_latest
Function · 0.45
collect
Method · 0.45
collect
Method · 0.45
push
Method · 0.45
generate_latest
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected