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

Monitoring statistics #79

Open
AGWA opened this issue Oct 22, 2023 · 6 comments
Open

Monitoring statistics #79

AGWA opened this issue Oct 22, 2023 · 6 comments
Labels
Milestone

Comments

@AGWA
Copy link
Member

AGWA commented Oct 22, 2023

It should be possible for users to see the current state of monitoring - e.g. which logs are being monitored, how recently they were contacted, what the backlog is

Maybe this could be provided by an optional HTTP server?

@AGWA AGWA added this to the Testability milestone Oct 22, 2023
@AGWA AGWA changed the title UI for monitoring statistics Provide monitoring statistics Oct 22, 2023
@AGWA AGWA added the feature label Oct 22, 2023
@AGWA AGWA changed the title Provide monitoring statistics Monitoring statistics Oct 22, 2023
@chayleaf
Copy link
Contributor

A /metrics endpoint for Prometheus would be the best option imo

@AGWA
Copy link
Member Author

AGWA commented Oct 23, 2023

@chayleaf I don't have any experience with Prometheus. Could a metrics endpoint be implemented by outputting some JSON or some other simple format? How would Prometheus know how to interpret the data?

@chayleaf
Copy link
Contributor

chayleaf commented Oct 23, 2023

it looks like it got standardized as OpenMetrics. The spec is obviously quite wordy, a short overview is available here.

To make Prometheus scrape it, you just have to add the metrics endpoint to Prometheus config, and it will periodically dial it.

@vt-alt
Copy link

vt-alt commented Oct 23, 2023

Prometheus metrics is good and modern way for a centralized monitoring, but just some stat into systemd journal would be as good when people don't run Prometheus.

ps. Just an example Prometheus metrics for our debuginfod instance: (how simple they look)
https://debuginfod.altlinux.org/metrics
https://debuginfod.elfutils.org/metrics

@schildbach
Copy link

Yes, I think some statistics printed to the log/stdout from time to time would already help a lot.

@chayleaf
Copy link
Contributor

chayleaf commented Nov 2, 2023

also gonna link this here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants