yada 2019-08-30

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

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!)

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 🦜