https://kotlinlang.org logo
Title
m

Marcin Wisniowski

06/17/2020, 9:00 PM
What is everyone using for metrics? I need a simple dashboard with some graphs and counters to see some stats / the volume of hits for my ktor API.
b

Ben

06/17/2020, 10:08 PM
Micrometer for publishing the metrics. For viewing the dashboards you have a ton of options
☝️ 1
m

Marcin Wisniowski

06/17/2020, 10:32 PM
I've looked into Micrometer but it seems all dashboards are a paid SaaS, and all self-hosted/open-source dashboards are very old. Is there no Micrometer compatible dashboard that is free to self-host while being a modern, maintained open source project? Maybe I ask for too much but I'd like to know if there is something I am missing.
b

Ben

06/17/2020, 10:37 PM
Micrometer is just a facade around the different formats so if there is an open source dashboard that you like it might have a provider for micrometer. Otherwise you could easily add one. Are you running the application on prem or in some cloud provider?
Grafana is pretty decent for an open source one
3
m

Marcin Wisniowski

06/17/2020, 10:46 PM
I'm running it in Docker on a cloud server. Grafana indeed looks good, I wasn't aware it could work with Micrometer. Although it makes sense in retrospect.
a

Anders Sveen

06/18/2020, 6:47 AM
If you don't mind paying a little bit we use MicroMeter to send the stats to New Relic. Of course New Relic is awesome so I would pay for that anyway. Then the Insights part lets you graph stuff pretty easily. Hosted Graphite is also an option that is not super expensive (includes Grafana).
m

Matteo Mirk

06/18/2020, 10:03 AM
I work for Expedia Group, we use Grafana constantly in production to monitor our systems, it works very well. Here are some concepts that can help you decide: • Micrometer is just a facade for metric reporting libs, think of it as an equivalent of slf4j for metrics • there are various metrics protocols (graphite, prometheus, etc), so client-side you’ll use a Micrometer connector which will provide the implementation • on the other side there are various metric collectors that will store the time-series in appropriate data stores (InfluxDB, for example) that understand those protocols, so you want to use the one that understands your format of choice • Grafana is just a graphic front-end for such data stores, it supports various formats
m

Marcin Wisniowski

06/18/2020, 3:58 PM
I'll try out Grafana + Micrometer, New Relic looks great, but in this case it's just a hobby project with no profits, so I want to avoid costs other than the actual server. Thanks for the suggestions everyone.
I used Micrometer --> Graphite --> Grafana. Works great. 🙂
👍 2