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 record-metrics command to Horizon #4011

Closed
bartekn opened this issue Oct 18, 2021 · 0 comments · Fixed by #4023
Closed

Add record-metrics command to Horizon #4011

bartekn opened this issue Oct 18, 2021 · 0 comments · Fixed by #4023
Assignees
Labels

Comments

@bartekn
Copy link
Contributor

bartekn commented Oct 18, 2021

Many Horizon admins don't connect Prometheus to scrape Horizon metrics meanwhile checking metrics is essential to debug all kinds of issues. To help debug issues without asking to start Prometheus instance a new command can be added to Horizon that will record /metrics every 15 seconds for defined time (ex. 10 minutes). Then, results are zipped and can be sent to Horizon developers. Horizon developers can start a local Prometheus instance and scrape recorded metrics, then connect them to Horizon instance.

@stellar/horizon-committers thoughts? The solution is not ideal: scraping recorded metrics can take 10 minutes (we can automate it using docker image) but this will give us full picture of a given Horizon instance operations.

@bartekn bartekn self-assigned this Oct 21, 2021
@bartekn bartekn linked a pull request Oct 21, 2021 that will close this issue
7 tasks
@bartekn bartekn closed this as completed Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant