Skip to content

feat: Implement dedicated microcks health check command - #472

Open
kunal-yelgate wants to merge 3 commits into
microcks:masterfrom
kunal-yelgate:feat/health-cheack
Open

feat: Implement dedicated microcks health check command#472
kunal-yelgate wants to merge 3 commits into
microcks:masterfrom
kunal-yelgate:feat/health-cheack

Conversation

@kunal-yelgate

Copy link
Copy Markdown

Description

This pull request implements the new microcks health command to provide quick diagnostics about configured Microcks server instances. It determines reachability, request latency, API responsiveness, subsystem health (Database, Keycloak, Async Minion), and detects the active server version.

Key Features

  • Diagnostics command: Hitting microcks health gives a formatted overview of the server's health status.
  • Machine-readable JSON: Supports --json flag to print structured JSON representing server health and latency.
  • Watch mode: Supports --watch and --interval options to continuously check status on a loop.
  • Automation-friendly exit codes: Returns 0 if healthy, 1 if unreachable or network/API failure occurs, and 2 if reachable but degraded.
  • Complete Test Coverage: Includes a comprehensive test suite in cmd/health_test.go verifying parsing, output formats, watch mode, and exit codes.

@github-actions

Copy link
Copy Markdown

👋 @kunal-yelgate

Welcome to the Microcks community! 💖

Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly.

Hope you have a great time there!

Comment thread cmd/health_test.go Outdated
@kunal-yelgate
kunal-yelgate force-pushed the feat/health-cheack branch 4 times, most recently from 6c7b744 to c3327c9 Compare June 30, 2026 12:44
Signed-off-by: kunal_yelgate <kunalyelgatew@gmail.com>
Signed-off-by: kunal_yelgate <kunalyelgatew@gmail.com>
Signed-off-by: kunal_yelgate <kunalyelgatew@gmail.com>
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 30 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation.

There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. Microcks is a Cloud Native Computing Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions Bot added the stale State due to inactivity label Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale State due to inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants