Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add monitoring routes #134

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Chengxuan
Copy link
Contributor

@Chengxuan Chengxuan commented Feb 19, 2025

As elaborated in hyperledger/firefly-common#167, there is a need to expose more endpoints for operational checks.

This PR propose a new monitoring sections in the configuration file for configurations of the monitoring server:

  • whether to enable the monitoring server
  • a metricsPath

The new monitoring server itself is a replacement for the existing metrics server.

  • Expose the readiness and liveness check routes
  • Expose the metrics routes

As a result the existing metrics section is marked as deprecated.

Signed-off-by: Chengxuan Xing <[email protected]>
@Chengxuan Chengxuan requested a review from a team as a code owner February 19, 2025 13:57
Signed-off-by: Chengxuan Xing <[email protected]>
Signed-off-by: Chengxuan Xing <[email protected]>
Signed-off-by: Chengxuan Xing <[email protected]>
Signed-off-by: Chengxuan Xing <[email protected]>
Signed-off-by: Chengxuan Xing <[email protected]>
Copy link
Contributor

@EnriqueL8 EnriqueL8 left a comment

Choose a reason for hiding this comment

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

Just need some clarification on a few things here:

  • It looks like we don't use any of the work to build the server in FF Common in that PR referenced as we are using httpserver pkg and not flap pkg. We use the config spelling I believe.
  • For some reason we have bundled a Golang version upgrade as part of this PR?
  • Loads of linting changes as well

Signed-off-by: Chengxuan Xing <[email protected]>
Copy link
Contributor

@EnriqueL8 EnriqueL8 left a comment

Choose a reason for hiding this comment

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

Thanks for the discussion on this one @Chengxuan

Signed-off-by: Chengxuan Xing <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants