Sponsored by Les-Tilleuls.coop
DocumentationSpecificationCloudDemos
Contribute!

Metrics

The Mercure.rocks Hub relies on Caddy's metrics and extends them with Mercure-specific collectors.

Enable Caddy's Prometheus scrape endpoint as described in the Caddy documentation. In addition to Caddy's HTTP, filesystem, and reverse-proxy metrics, the Hub registers the following collectors:

NameTypeDescription
mercure_subscribers_totalCounterTotal number of subscribers handled since the hub started
mercure_subscribers_connectedGaugeCurrent number of connected subscribers
mercure_updates_totalCounterTotal number of updates dispatched since the hub started