Skip to content

Simple retryable wrapper for prometheus `MustRegister` function for use in DECODE

Notifications You must be signed in to change notification settings

thingful/retryable-registry-prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

retryable-registry-prometheus

This library is a tiny wrapper around prometheus's MustRegister function that does a single round of trying to unregister and re-register before panicking.

The reason for creating this library is that when starting DECODE components we use a simple backoff retry wrapper when booting the server to deal with waiting for the database to be ready. This sometimes panics because of Prometheus metrics as the default provider immediately panics if we attempt to register the same collector twice.

The hope with this library is that we will instead unregister the old collector and register a new one.

About

Simple retryable wrapper for prometheus `MustRegister` function for use in DECODE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages