Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/prometheus/client_python
/ _get_metric
Method
_get_metric
prometheus_client/metrics.py:83–84 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
81
return
self._labelnames and not self._labelvalues
82
83
def
_get_metric(self):
84
return
Metric(self._name, self._documentation, self._type, self._unit)
85
86
def
describe(self) -> Iterable[Metric]:
87
return
[self._get_metric()]
Callers
2
describe
Method · 0.95
collect
Method · 0.95
Calls
1
Metric
Class · 0.85
Tested by
no test coverage detected