Jimdo / prometheus_client_php

Prometheus instrumentation library for PHP applications
https://prometheus.io/docs/concepts/metric_types/
Apache License 2.0
281 stars 213 forks source link

Incompatibility with promethus/pushgateway:0.10.0 #120

Open Gounlaf opened 5 years ago

Gounlaf commented 5 years ago

Hi,

Version 0.10.0 of promethus/pushgateway introduced a change in response:

[CHANGE] Check pushed metrics immediately and reject them if inconsistent. Successful pushes now result in code 200 (not 202)

Current version of this client doesn't support it, throwing an exception (see below)

https://github.com/Jimdo/prometheus_client_php/blob/215c9ae5ea006634e908be78b29edad88d36f94f/src/Prometheus/PushGateway.php#L85