can anyone recommend an analytics solution for my ...
# ktor
a
can anyone recommend an analytics solution for my
ktor
backend? E.g. which endpoints get called the most, from which countries, which browsers etc?
🚫 1
d
You could use Micrometer.io, or just simply the Dropwizard metrics plugin and instrument your code with one of them. For Dropwizard there's an existing Feature, for micrometer, I made a pull request (the current code is usable), then you gain Prometheus support (which is standard in Kubernetes and Docker worlds..)
❤️ 2
a
thank you so much man
d
Also see best practices section in https://prometheus.io/docs/introduction/overview/.. nice pointers for instrumenting.
a
@dave08 can’t find an existing
ktor.Feature
for Dropwizard. Is it public?
And the micrometer pull request https://github.com/ktorio/ktor/pull/718
s
@dave08 how does micrometer comapre to dropwizard metrics
d
It's a wrapper around dropwizard and other libs like prometheus, so you just instrument your code once, then you can switch the backend metrics db according to your needs. I think Prometheus is one of the more popular metrics dbs out there and I don't think dropwizard by itself supports it, which is why I made the pull request. @Saša Šijak