mirror of
https://github.com/abh/geodns.git
synced 2026-04-27 03:45:53 +03:00
[GH-ISSUE #41] status as json #33
Labels
No labels
bug
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/geodns#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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
@leifj commented on GitHub (Aug 16, 2013):
Yeah /status.json and /status/<zone>.json or something...
@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.
@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. :-)