prometheus / client_python

Prometheus instrumentation library for Python applications
Apache License 2.0
3.94k stars 795 forks source link

`namespace` (and `subsystem`) for `*MetricFamily` classes #1048

Open calestyo opened 2 months ago

calestyo commented 2 months ago

Hey.

The MetricWrapperBase derived classes (Counter, Gauge, etc) all have namespace and subsystem in their constructors and automatically combine that into a final name.

Wouln't it make sense to have at least namespace also for the *MetricFamily classes`

Cheers, Chris.