Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Prevent exception from being thrown on 200 #122

Open
wants to merge 40 commits into
base: master
Choose a base branch
from

Conversation

bvisness
Copy link

@bvisness bvisness commented Oct 16, 2019

The pushgateway now returns 200s in most cases. 202 is only used for deletes.

Should fix #120.

Daniel Noel-Davies and others added 30 commits July 19, 2019 11:31
Upgrade Prometheus client to PHP 7

Approved-by: Andre Ferraz <[email protected]>
Approved-by: DuShaun Alderson-Claeys <[email protected]>
Bump to version 1.0.0 (API is the same, but requires php 7.1)

Approved-by: Andre Ferraz <[email protected]>
Approved-by: DuShaun Alderson-Claeys <[email protected]>
Approved-by: Robin Shimield <[email protected]>
^7.3 is required version of php
Run tests for PHP 7.3 and 7.4, no more support for < 7.3 (required in composer)
NoelDavies and others added 10 commits October 23, 2019 15:31
Add original package (`jimdo/prometheus_client_php`) to the replace list
* WIP CI
* Move few things around in CI pipeline
* remove unneeded CI job
* allow status 202 in case of downwards compatibility
* add allowance of status 200 for prometheus/pushgateway >=0.10.0 
* fix grouping key, because of not matching declerations
* simplify if to add more status code easier
* Inject Redis via named constructor

* change method name

* Added withExistingConnection test

* Fix for redis prefix support and respective tests

* removed unneeded code

* phpcbf
* Update phpunit to version 8

* fix shield

* Require PHPUnit version at least 8.4
@bvisness bvisness force-pushed the master branch 3 times, most recently from a02baed to 65662f5 Compare January 6, 2020 21:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incompatibility with promethus/pushgateway:0.10.0
7 participants