Functionality to export metrics to prometheus format, or push them to a pushgateway.
Originally we used micrometer-clj
, but it's really old and incompatible with recent
versions of the Prometheus libs. Since we're fixed on Prometheus (for now), it's not
necessary to maintain all the other formats, so the micrometer layer was essentially
ballast. This namespace accesses the Prometheus code directly.
Functionality to export metrics to prometheus format, or push them to a pushgateway. Originally we used `micrometer-clj`, but it's really old and incompatible with recent versions of the Prometheus libs. Since we're fixed on Prometheus (for now), it's not necessary to maintain all the other formats, so the micrometer layer was essentially ballast. This namespace accesses the Prometheus code directly.
(make-registry)
Creates a new prometheus registry
Creates a new prometheus registry
(push gw)
Pushes all registered datapoints to the push gateway
Pushes all registered datapoints to the push gateway
(push-gw host port reg job)
Creates a PushGateway object to push metrics to
Creates a PushGateway object to push metrics to
(scrape reg)
Returns metrics formatted to Prometheus scrape format as a string.
Returns metrics formatted to Prometheus scrape format as a string.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close