Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for prometheus/pushgateway:>=0.10 #17

Merged
merged 3 commits into from
Nov 19, 2019

Conversation

kswzr
Copy link

@kswzr kswzr commented Nov 8, 2019

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

Copy link

@piotrooo piotrooo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice.

@NoelDavies NoelDavies modified the milestone: 1.0.2 Nov 19, 2019
@NoelDavies NoelDavies merged commit 4668eeb into endclothing:master Nov 19, 2019
@NoelDavies NoelDavies added this to the 1.0.3 milestone Nov 19, 2019
martinssipenko added a commit to martinssipenko/prometheus_client_php that referenced this pull request Nov 19, 2019
* master:
  Add support for prometheus/pushgateway:>=0.10 (endclothing#17)
  Introduce Continuous Integration (endclothing#20)
martinssipenko added a commit to martinssipenko/prometheus_client_php that referenced this pull request Nov 29, 2019
* master:
  Add support for prometheus/pushgateway:>=0.10 (endclothing#17)
  Introduce Continuous Integration (endclothing#20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong statuscode - Add support for prometheus/pushgateway: >=0.10 groupingKey has wrong type decleration
3 participants