[GH-ISSUE #41] status as json #33

Closed
opened 2026-02-28 14:15:59 +03:00 by kerem · 4 comments
Owner

Originally created by @leifj on GitHub (Aug 16, 2013).
Original GitHub issue: https://github.com/abh/geodns/issues/41

I'm trying to build a munin-plugin (StatHat isn't for me) and it would be good to have a json-formatted status page so one doesn't have to parse html to get at the counters.

I guess the "clean" way to do this would be to use the Accept-header but that might be overdoing it.

Thoughts?

I might take a whack at it unless somebody already has/wants to.

Originally created by @leifj on GitHub (Aug 16, 2013). Original GitHub issue: https://github.com/abh/geodns/issues/41 I'm trying to build a munin-plugin (StatHat isn't for me) and it would be good to have a json-formatted status page so one doesn't have to parse html to get at the counters. I guess the "clean" way to do this would be to use the Accept-header but that might be overdoing it. Thoughts? I might take a whack at it unless somebody already has/wants to.
kerem closed this issue 2026-02-28 14:15:59 +03:00
Author
Owner

@abh commented on GitHub (Aug 16, 2013):

Nice idea!

Maybe just make it /status.json ?

As a variation maybe have it be /status.json and default to just the basic query counts and then have options to also get the per-zone data.

Ask

<!-- gh-comment-id:22798851 --> @abh commented on GitHub (Aug 16, 2013): Nice idea! Maybe just make it /status.json ? As a variation maybe have it be /status.json and default to just the basic query counts and then have options to also get the per-zone data. Ask
Author
Owner

@leifj commented on GitHub (Aug 16, 2013):

Yeah /status.json and /status/<zone>.json or something...

<!-- gh-comment-id:22798900 --> @leifj commented on GitHub (Aug 16, 2013): Yeah /status.json and /status/&lt;zone&gt;.json or something...
Author
Owner

@leifj commented on GitHub (Aug 18, 2013):

A first take - added a parameter to StatusServer and moved the template parser to the end (should be ok since the template is bound to parse ok). Sending a pull-request for review presently.

<!-- gh-comment-id:22839331 --> @leifj commented on GitHub (Aug 18, 2013): A first take - added a parameter to StatusServer and moved the template parser to the end (should be ok since the template is bound to parse ok). Sending a pull-request for review presently.
Author
Owner

@abh commented on GitHub (Sep 6, 2015):

I've merged this now and changed it a little to make it easier to extend. More coming soon. :-)

<!-- gh-comment-id:138135968 --> @abh commented on GitHub (Sep 6, 2015): I've merged this now and changed it a little to make it easier to extend. More coming soon. :-)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/geodns#33
No description provided.