Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose nginx status from http_stub_status_module #189

Open
luser opened this issue May 26, 2024 · 0 comments
Open

Expose nginx status from http_stub_status_module #189

luser opened this issue May 26, 2024 · 0 comments

Comments

@luser
Copy link

luser commented May 26, 2024

I was looking into using telegraf to scrape nginx metrics from lancache into InfluxDB. The telegraf nginx agent wants to hit the nginx status page for some stats. It looks like the /nginx_status endpoint is configured in the base image:
https://github.com/lancachenet/ubuntu-nginx/blob/8adad4dcdea7297f7de386bd8cf8ef5fc21b8d2d/overlay/etc/nginx/sites-available/status.conf#L5

…but those site configs get removed in this repo's Dockerfile:

RUN rm /etc/nginx/sites-enabled/* /etc/nginx/stream-enabled/* ;\

I can hack this up myself for local usage but it would be nice if this worked out-of-the-box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant