Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ff5328 commit 249490eCopy full SHA for 249490e
README.md
@@ -604,8 +604,9 @@ To do so you need to create a custom collector, for example:
604
605
```python
606
from prometheus_client.core import GaugeMetricFamily, CounterMetricFamily, REGISTRY
607
+from prometheus_client.registry import Collector
608
-class CustomCollector(object):
609
+class CustomCollector(Collector):
610
def collect(self):
611
yield GaugeMetricFamily('my_gauge', 'Help text', value=7)
612
c = CounterMetricFamily('my_counter_total', 'Help text', labels=['foo'])
0 commit comments