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 ordinals service metrics #219

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

Conversation

jeremy-babylonlabs
Copy link
Contributor

@jeremy-babylonlabs jeremy-babylonlabs self-assigned this Jul 26, 2024
@jeremy-babylonlabs jeremy-babylonlabs marked this pull request as draft July 26, 2024 12:38
@jeremy-babylonlabs jeremy-babylonlabs marked this pull request as ready for review July 29, 2024 04:53
@@ -114,13 +117,31 @@ func registerMetrics() {
[]string{"baseurl", "method", "path", "status"},
)

httpServiceErrorCounter = prometheus.NewCounterVec(
Copy link
Collaborator

@jrwbabylonlab jrwbabylonlab Jul 29, 2024

Choose a reason for hiding this comment

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

hmm... @jeremy-babylonchain i think u mis-understood my suggestion on the task.
We don't need a new metric emitter in the code as the existing clientRequestDurationHistogram has already covered the error and successful cases.

What we are missing is the alerts based on the clientRequestDurationHistogram metric based on its baseurl, path and status
You don't need code implementation in the staking api service, it shall live inside a repo from devops. fyi @hiepmai-babylonchain can probably help you on this

@jrwbabylonlab
Copy link
Collaborator

let's close this PR as i don't think we need it

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.

2 participants