Closed kswzr closed 4 years ago
The prometheus/pushgateway release 0.10. changed the response status code when pushing metrics from 202 to 200 (see: https://github.com/prometheus/pushgateway/releases/tag/v0.10.0).
This fix it and let it downwards compatible for older pushgateway releases. I've also added some tests and added the guzzlehttp/client per injection for easier testing. Additionally I've fixed an issue with wrong type declerations of groupingKeys.
Closes #15 Closes #16
The prometheus/pushgateway release 0.10. changed the response status code when pushing metrics from 202 to 200 (see: https://github.com/prometheus/pushgateway/releases/tag/v0.10.0).
This fix it and let it downwards compatible for older pushgateway releases. I've also added some tests and added the guzzlehttp/client per injection for easier testing. Additionally I've fixed an issue with wrong type declerations of groupingKeys.
Closes #15 Closes #16