You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a breaking update. The following features have been added.
Controlled shutdown of the HTTP server that presents the collector endpoint to scrapers has been added with signal based shutdown removed. This requires users to explicitly stop the server when all metrics have been collected.
Grace period for the server shutdown added to allow time for scrapers to retrieve the last metrics before the endpoint is shutdown. By default it is 0 seconds.
The server was decoupled from the metrics struct to keep locks from being copied when the labels and prefixes are added. Server options are specified when starting the server.
A logging interface was added to provide error and info logs for start up, shutdown, http server errors, and panic recovery.