Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

v 0.2.0 request #2

Merged
merged 5 commits into from
Jun 28, 2016
Merged

v 0.2.0 request #2

merged 5 commits into from
Jun 28, 2016

Conversation

agentd00nut
Copy link

A branch from timeZynk that gives clearer instructions in the readme on how to use the client for new users while providing a counter and histogram test script.

In addition this restores the ability for the client to push to a pushgateway that timeZynk had removed.
It also provides an example config for the prometheus server to show how to pull from a pushgateway.

I would update the composer files but i don't know composer.

I don't know how to use composer and don't want to waste time with it right now.
autoload.php was required but not included which was... frustrating.

The Client class had required an outside library, "GuzzleHttp".  Instead now we just rely on php's
curl extension which is much more likely to already be setup on an average users system.

In addition there is a working version of the test.php script which will be cleaned up and explained
in the next push.
…d pushMetrics function

Added a detailed readme that covers the concept of the push gateway and why its needed here.
Included an example_config for a prometheus server to pull from the push gateway.
included @timeZynks Histogram.php and relevant code into the fork.
Split the test script into a test for each metric type to offer more guidance.
Added the pushMetrics() function which returns the ability for the client to push the serialized data to
a push gateway.
@Lazyshot
Copy link
Owner

I'll update the composer and gitignore so this can be merged.

@Dnile
Copy link

Dnile commented Mar 28, 2016

any news on this?

@LukasGrebe
Copy link

This would be great. Just found this Repo and now found a Readme to go with it.

@Lazyshot Lazyshot merged commit b8371e6 into Lazyshot:master Jun 28, 2016
@Lazyshot
Copy link
Owner

Sorry about the long delay, but this has been merged. I added back the composer stuff and a couple other things.

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.

5 participants