Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

feat(router): improve nginx status page #4290

Merged
merged 1 commit into from Aug 18, 2015

Conversation

aledbf
Copy link
Contributor

@aledbf aledbf commented Aug 18, 2015

Replace the default status page with one that provides more details using the nginx-module-vts module.
By default /status returns html but is possible to get a json representation using the /status/format/json path

status page

@aledbf
Copy link
Contributor Author

aledbf commented Aug 18, 2015

This is a screenshot from one of the nginx deis-router running the CI job.

captura de pantalla 2015-08-18 a las 11 12 27

@jchauncey
Copy link
Member

@aledbf i could hug you right now. As part of my metrics spike I was actually parsing the nginx log stream to get these stats which is a terrible and brittle way to get that information. With this I can actually hit /status/format/json and get that information and it looks like more.

👍

@@ -63,6 +63,9 @@ get_src 501f299abdb81b992a980bda182e5de5a4b2b3e275fbf72ee34dd7ae84c4b679 \
get_src 8d280fc083420afb41dbe10df9a8ceec98f1d391bd2caa42ebae67d5bc9295d8 \
"https://github.com/openresty/set-misc-nginx-module/archive/v$VERSION_SETMISC.tar.gz"

get_src 47340cf0c711b10a0231fca9264d73ea791ff8420b823b0295ae3df2d968a205 \
"https://github.com/vozlt/nginx-module-vts/archive/22c51e201a550bb94e96239fef541347beb4eeca.tar.gz"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a fix we need here that isn't in a specific release? We generally prefer that to SHAs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carmstrong the only reason to use the commit and not a release is because in the last ones there's a fix for the counters and layout of the html

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I think that's fine, then. Could we add a comment with that info above that line?

@technosophos
Copy link
Member

Code LGTM.

And FWIW, @jchauncey has never given me a hug before.

@bacongobbler
Copy link
Member

code LGTM.

aledbf added a commit that referenced this pull request Aug 18, 2015
feat(router): improve nginx status page
@aledbf aledbf merged commit d3a333f into deis:master Aug 18, 2015
@aledbf aledbf deleted the improve-nginx-status branch August 18, 2015 19:38
@mboersma mboersma modified the milestone: v1.10 Aug 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants