Not sure if this is the place for this but what is everyone using for metrics these days? All I want is to be able to track every call to my API endpoints (ideally mostly automatically) and also create some custom metrics plus monitor JVM stats and target prometheus. I'm using reitit and can use either httpkit or jetty. So far, I have found iapetos and metrics-clojure which seem to be less active in terms of development (and I struggle to add a middleware with iapetos and reitit to track uris with path params. A single tutorial uses duct and for the life of me I don't understand it) and then there is Telemere and Otel which are probably a bit more complicated than what I'd expect.
The #observability channel is quiet but delves deep into this. I was going to suggest OpenTelemetry and https://github.com/steffan-westcott/clj-otel which is actively maintained and targets Prometheus (amongst other things). At work, we use New Relic which is very slick and well-rounded: tracks a variety of databases too, plus HTTP calls etc, all pretty much automatically via the JVM agent. We have two dozen processes running on half a dozen servers, so a paid service with configurable alerts to Slack/email is worth it for us.
Thank you @seancorfield. I've made some small progress testing clj-otel but open telemetry is a bigger subject I'm not familiar with and I have not yet figured out how the prometheus integration works out in the examples. I'll probably have to come back to it with a clearer mind tomorrow.
I'm wondering what the best lightweight options in this space are. New Relic is great but expensive. I haven't tried OT, but people on here have commented that it's hard to maintain. I'm looking for something I can set up for both local and remote apps and can give me basic metrics.
There's a specific #clj-otel channel if you can't get unstuck @ppandis
@alex.sheluchin NR has a free tier nowadays and their pricing model is much more competitive than it used to be: https://docs.newrelic.com/docs/accounts/accounts-billing/new-relic-one-pricing-billing/new-relic-one-pricing-billing/ When they introduced the PAYG model, our monthly costs dropped by well over 50%.
Thanks for the heads up on that, @seancorfield. It's been a very long time since I used them, but this puts it back on my radar.
Using OTEL and not going insane is a PhD level project. It also produces very high cardinality data which will drive your costs up. Unless you have someone dedicated in your company for dealing with it I recommend anything else
Makes New Relic seem even more attractive...
I just used an endpoint no one knows about for a few things I wanted to track https://sayartii.com/perf-report. This is simply a raw dump of tufte. Nothing fancy and low effort, but free and ended not needing anything more.