Fork me on GitHub
#yada
<
2019-08-30
>
mikepjb21:08:08

Has anyone used Prometheus to collect stats on a yada based webserver?

mikepjb21:08:31

I've been looking at iapetos (which seems to be the way to go but it has a ring collector only) (also I'm not tied to Prometheus if there's a stats gathering service that works better with yada, open to suggestions there too!)

mikepjb22:08:49

Using the iapetos.export namespace to create a bidi entry like so:

["/metrics" (yada/resource
                     {:methods
                      {:get
                       {:produces "text/plain"
                        :response (export/text-format registry)}}})]
works like a charm parrot