artillery
artillery copied to clipboard
artillery-plugin-publish-metrics doesn't publish metrics to Prometheus
Version info:
2.0.0-22
Running this command:
artillery run
with plugin artillery-plugin-publish-metrics
with any scenarios.
I expected to see this happen:
The metrics are sent to the Prometheus push gateway.
Instead, this happened:
The requests are terminated before the requests are sent to the push gateway.
Files being used:
The plugin doesn't wait for the request in https://github.com/artilleryio/artillery-plugin-publish-metrics/blob/master/lib/prometheus.js#L120 to be terminated before calling done in the function cleanup
.
Suggested approach:
Wait for all push promises to be resolved before calling done()
thank you @cuonghuunguyen! is this something that broke in 2.0.0-22? or are you trying the plugin for the first time?
I used the plugin a long time ago and it was broken. Now I tried it again and it is still broken. In the past, I have to add the thought period at the end of the script to wait for the push promise to be resolved
Same issue here. Any news about the resolution?