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

Forward call to /metrics to pushgateway if pushgateway is enabled #63

Closed
hatchan opened this issue Jun 29, 2023 · 0 comments · Fixed by #81
Closed

Forward call to /metrics to pushgateway if pushgateway is enabled #63

hatchan opened this issue Jun 29, 2023 · 0 comments · Fixed by #81

Comments

@hatchan
Copy link
Contributor

hatchan commented Jun 29, 2023

The call to /metrics on the am web server should proxy this call to the pushgateway /pushgateway/metrics. This payload will contain the metrics from a component that is not able to be scraped, such as a function, batch job, or a client.

Note that we cannot redirect the request since it is a POST request. Even if we were to do a 307 I'm not sure how well that is implemented in all the different languages/packages. So it is easier just to proxy it.

Related discussion: #60 (comment)

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 a pull request may close this issue.

1 participant