endclothing / prometheus_client_php

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

Wrong statuscode - Add support for prometheus/pushgateway: >=0.10 #16

Closed kswzr closed 4 years ago

kswzr commented 4 years ago

Prometheus/Pushgateway changed in the release of 0.10.0 (https://github.com/prometheus/pushgateway/releases/tag/v0.10.0) the response code of the pushgateway from 202 to 200 which leads in a RuntimeException in Prometheus/Pushgateway.php.