Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

This does not seem to get pushed to the gateway for short lived jobs? #1

Open
seanleblancicdtech opened this issue Apr 14, 2020 · 1 comment

Comments

@seanleblancicdtech
Copy link

I can get your sample to run, but that's a server that stays running to demonstrate a counter via a web interface.

In the case of a short-lived job, the app finishes before these get published? If I set a breakpoint, it eventually seems to get sent, but is there a way to flush the metrics to the gateway before quitting?

@mbenalirichard
Copy link

Hello,
I had the same problem. I tried to set the value of management.metrics.export.prometheus.pushgateway.shutdown-operation to push in the application.properties and it solved the problem for me.

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

No branches or pull requests

2 participants