PrometheusListener

A listener for Prometheus' stat scrape.

Once instantiated with the set of callbacks that collect stats for given stats and labels, the callbacks will be called for every incoming prometheus request, and the accumulated stats will be appended to the response message.

Derives from SelectListener with four generic parameters, the last three of which are used to instantiate the handler used by this listener.

Constructors

this
this(sockaddr* address, ISocket socket, CollectorRegistry collector_registry, EpollSelectDispatcher epoll, size_t stack_size)

Constructor

Members

Functions

connectionLog
void connectionLog()

Logs the information about connections to the log file.

registerEventHandling
void registerEventHandling(EpollSelectDispatcher epoll)

Registers the listener with a given epoll, so that it can be activated in the latter's event loop.

Meta