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

Scrape metrics via prometheus for each zone #373

Open
rjnz2023 opened this issue Feb 22, 2024 · 1 comment
Open

Scrape metrics via prometheus for each zone #373

rjnz2023 opened this issue Feb 22, 2024 · 1 comment

Comments

@rjnz2023
Copy link
Contributor

I was curious to know if there was a way to scrape metrics based on each zone via Prometheus. I know you can scrape it as a whole through /metrics endpoint, but is there a query we can do to get per-zone metrics by specific the zone in the query parameter?

If not, does anyone know how we can probably go about coding this and potentially making a pull request? Any guidance would be appreciated.

@andris9
Copy link
Member

andris9 commented Feb 22, 2024

The problem with Zone-MTA, in this case, is that it is a multi-process application. The primary process forks a bunch of worker processes, and all "action" happens in these forked processes. You can not ask for metrics from each process individually, so to get numbers to Prometheus output you would have to send counter updates from child processes to the main process that then would gather these values and generate the aggregated metrics output. Current metrics are defined here.

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

No branches or pull requests

2 participants