off-topic

ppandis 2025-07-10T18:16:17.109819Z

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.

seancorfield 2025-07-10T18:41:06.928619Z

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.

ppandis 2025-07-10T18:44:50.843369Z

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.

sheluchin 2025-07-10T18:52:43.204639Z

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.

seancorfield 2025-07-10T19:08:11.998189Z

There's a specific #clj-otel channel if you can't get unstuck @ppandis

1
seancorfield 2025-07-10T19:11:25.731489Z

@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%.

sheluchin 2025-07-10T21:04:46.580979Z

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.

Ben Sless 2025-07-11T03:17:05.224539Z

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

seancorfield 2025-07-11T03:21:11.610589Z

Makes New Relic seem even more attractive...

Omar 2025-07-11T11:22:36.194659Z

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.