News for hackers. Stuff that matters.
Re:Nginx 1.25.0: experimental HTTP/3 support by pachico on Tuesday May 23, 2023 @03:27PM (#36049561)
I just wish Nginx had the good will to include decent metrics. The built-in stubs are far from enough.

It's the main reason why I'm thinking about migrating everything to Caddy.

Re:Nginx 1.25.0: experimental HTTP/3 support by capableweb on Tuesday May 23, 2023 @03:41PM (#36049805)
That's the issue with doing one FOSS version + one paid version, some things will be gated behind the paid version and probably never end up in the FOSS one, as it drives people to purchase the paid version.

In this particular case, the ngx_http_api module offers way more monitoring options but is gated behind nginx Plus.

Re:Nginx 1.25.0: experimental HTTP/3 support by brabel on Tuesday May 23, 2023 @04:54PM (#36050742)
I think that if there's one feature they should put behind Plus, that's monitoring.

Only "serious" companies need that (as a hobby project maintainer you probably don't need it)... and if you really want to make sure you don't give them a cent, you can build your own monitoring on top of nginx easily enough.

Re:Nginx 1.25.0: experimental HTTP/3 support by getcrunk on Tuesday May 23, 2023 @03:39PM (#36049765)
Here here! There are 2 or 3 other goodies they lock behind their paywall which I think would be prudent from them to release so they stop ceeding ground/mindshare.
Re:Nginx 1.25.0: experimental HTTP/3 support by codetrotter on Tuesday May 23, 2023 @03:53PM (#36049974)
Interesting! I’ve been using Caddy for a while and actually recently went back to Nginx just because I am now self hosting PeerTube and there was a config file for Nginx to proxy PeerTube server ready made.

But if Caddy can serve metrics which I can then collect with for example Grafana, that’s very interesting!

Re:Nginx 1.25.0: experimental HTTP/3 support by francislavoie on Tuesday May 23, 2023 @04:14PM (#36050237)
Yep, Caddy has metrics: https://caddyserver.com/docs/metrics

But caveat: we don't have maintainers who understand metrics currently, so it's nowhere near as good as we'd hope it to be. Help wanted!

Re:Nginx 1.25.0: experimental HTTP/3 support by misleading1 on Tuesday May 23, 2023 @04:29PM (#36050437)
Caddy's metrics have been disabled for like 9 months because they cause a massive performance penalty

https://github.com/caddyserver/caddy/issues/4644

Re:Nginx 1.25.0: experimental HTTP/3 support by francislavoie on Tuesday May 23, 2023 @04:32PM (#36050471)
HTTP metrics (and only HTTP metrics, not all metrics) were changed to being opt-in, support wasn't removed. See my docs link above. But yes, there are performance consideration we're not satisfied with, and we need help to get them resolved.
Re:Nginx 1.25.0: experimental HTTP/3 support by mholt on Tuesday May 23, 2023 @06:04PM (#36051418)
They're not disabled, just off-by-default for now.
Re:Nginx 1.25.0: experimental HTTP/3 support by danwee on Tuesday May 23, 2023 @03:57PM (#36050036)
I'm on the same boat. I started to use Nginx for side projects a while ago. When things became a little more serious and I needed decent metrics, my only option was to upgrade to Nginx Plus. So now I'm learning Caddy.
Re:Nginx 1.25.0: experimental HTTP/3 support by malkia on Tuesday May 23, 2023 @04:25PM (#36050380)
Not sure if this would help, but saw it some months ago - https://github.com/open-telemetry/opentelemetry-cpp-contrib/... - I've not used nginx myself, so not sure how viable/useful this is
Re:Nginx 1.25.0: experimental HTTP/3 support by hnwizard on Tuesday May 23, 2023 @06:22PM (#36051592)
nginx has been a fantastic project ever since its launch with little real competition out there.

That said, I've been running it since the early days, on super heavy production loads and never felt the need to have some more "decent" metrics out of it. I assume you're referring to real time metrics here.

Most if not everything can be gathered from the logs, which nginx is very flexible with.

I fail to understand why some missing metrics in a great product make you think to migrate everything to Caddy?

Re:Nginx 1.25.0: experimental HTTP/3 support by pachico on Wednesday May 24, 2023 @02:01AM (#36054604)
Because I use as a gateway for fastcgi and as TLS initiator, mostly. Nginx doesn't allow you to have distinct metrics for both use cases, which is far from ideal.

My tests in controlled environments show that caddy is absolutely fine for my workload and has perks that make my life easier. Some have been mentioned in this thread already.

Metrics is a must have in our case as we have many things to manage, few people to maintain things and alerts are the only way to grow. For alerts you need metrics.

Re:Nginx 1.25.0: experimental HTTP/3 support by pachico on Wednesday May 24, 2023 @02:03AM (#36054616)
Regarding metrics from logs, you might agree that it's now an overkill.
Re:Nginx 1.25.0: experimental HTTP/3 support by hnwizard on Wednesday May 24, 2023 @06:52AM (#36056242)
I don't disagree, but there are always multiple solutions to problems we face, and the solution is not always simply to move on to the next product.

No product would ever cater to each and every need, and that's fine.

You have choice, if something doesn't satisfy you, you can sometimes fix the problem, improve the product or write your own module (when its opensource), or switch to another solution. Look at the opentelemetry comment below as another possibility to get what you want done.

There are so many choices today, and you enjoy the freedom of choice. If something else works better for you, use that other something.

There's no need to complain.

Re:Nginx 1.25.0: experimental HTTP/3 support by 6ak74rfy on Wednesday May 24, 2023 @12:51AM (#36054205)
How do Nginx and Caddy compare with Traefik in this regard?