Re: [prometheus-developers] client_golang: lenient version of promauto.Filter

2020-04-23 Thread Bjoern Rabenstein
On 22.04.20 14:04, 'Chris Taylor' via Prometheus Developers wrote: > > Currently, my code uses prometheus.Register(), and checks whether the returned > error is > a prometheus.AlreadyRegisteredError to get access to the previously-registered > metric and > uses that instead. > > It'd be easy

Re: [prometheus-developers] client_golang: lenient version of promauto.Filter

2020-04-23 Thread Brian Brazil
On Thu, 23 Apr 2020 at 21:08, Chris Taylor < christopher.tay...@soundcloud.com> wrote: > > > On Thu, 23 Apr 2020 at 10:46, Brian Brazil < > brian.bra...@robustperception.io> wrote: > >> On Wed, 22 Apr 2020 at 22:04, 'Chris Taylor' via Prometheus Developers < >>

Re: [prometheus-developers] client_golang: lenient version of promauto.Filter

2020-04-23 Thread 'Chris Taylor' via Prometheus Developers
On Thu, 23 Apr 2020 at 10:46, Brian Brazil wrote: > On Wed, 22 Apr 2020 at 22:04, 'Chris Taylor' via Prometheus Developers < > prometheus-developers@googlegroups.com> wrote: > >> Dear Prometheans, >> >> posting this here because the Github issue template suggested discussing >> changes on the >>

Re: [prometheus-developers] client_golang: lenient version of promauto.Filter

2020-04-23 Thread Brian Brazil
On Wed, 22 Apr 2020 at 22:04, 'Chris Taylor' via Prometheus Developers < prometheus-developers@googlegroups.com> wrote: > Dear Prometheans, > > posting this here because the Github issue template suggested discussing > changes on the > mailing list first. > > I just discovered the

Re: [prometheus-developers] client_golang: lenient version of promauto.Filter

2020-04-23 Thread Sivan Esan
https://youtu.be/cYjF4zTJxP4 Check it out and let me know On Thu 23 Apr, 2020, 2:34 AM 'Chris Taylor' via Prometheus Developers, < prometheus-developers@googlegroups.com> wrote: > Dear Prometheans, > > posting this here because the Github issue template suggested discussing > changes on the >

[prometheus-developers] client_golang: lenient version of promauto.Filter

2020-04-22 Thread 'Chris Taylor' via Prometheus Developers
Dear Prometheans, posting this here because the Github issue template suggested discussing changes on the mailing list first. I just discovered the `promauto.With(Reigsterer)` API[1] today, which looked like a nice way to ensure that metrics are registered with a Registerer when they are