feat: add group_count metric and status file to health endpoint#26
Closed
wolffcatskyy wants to merge 1 commit intomainfrom
Closed
feat: add group_count metric and status file to health endpoint#26wolffcatskyy wants to merge 1 commit intomainfrom
wolffcatskyy wants to merge 1 commit intomainfrom
Conversation
Closes #6 - Add group_count to health status JSON response - Add HEALTH_STATUS_FILE env var for writing status to a JSON file - Status file written after each sync for file-based monitoring tools - HealthStatus.set_last_sync() now accepts group_count parameter Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Owner
Author
|
Closing: this PR modifies Health endpoint improvements are no longer applicable — the native Go bouncer does not use a Python HTTP health endpoint. Health monitoring in v2.0 is done via systemd service status ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
group_countfield to health endpoint JSON responseHEALTH_STATUS_FILEenv var for writing status to a JSON file (for file-based monitors)Closes #6
New health response
{ "status": "healthy", "version": "1.5.0", "uptime_seconds": 3600, "crowdsec_connected": true, "unifi_connected": true, "last_sync_time": 1706500000.123, "last_sync_ips": 4521, "group_count": 5, "last_error": null, "memory_mb": 45.2 }New env var
HEALTH_STATUS_FILE/tmp/bouncer-status.json)Test plan
Generated with Claude Code