Download the PHP package lkaemmerling/prometheus_push_gateway_php without Composer
On this page you can find all versions of the php package lkaemmerling/prometheus_push_gateway_php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lkaemmerling/prometheus_push_gateway_php
More information about lkaemmerling/prometheus_push_gateway_php
Files in lkaemmerling/prometheus_push_gateway_php
Package prometheus_push_gateway_php
Short Description Prometheus Push Gateway client for PHP applications.
License Apache-2.0
Informations about the package prometheus_push_gateway_php
A prometheus push gateway client library written in PHP
This package provides an easy PHP API for Prometheus Push Gateway. It was part of promphp/prometheus_client_php and was moved into a seperate package as of Prometheus Client PHP Version 2.0.0.
How does it work?
The PushGateway allows Prometheus to get Metrics from Systems that are not scrableable (Your Prometheus cannot access that systems). With this library you can easily send your metrics to the PushGateway.
Installation
Add as Composer dependency:
Usage
Let's assume you have that simple counter and want to send it to your PushGateway.
Also look at the examples.
Development
Dependencies
- PHP ^7.2 | ^8.0
- Composer
Black box testing
Just start the PushGateway by using docker-compose
Use composer to grab all dependencies
Execute the tests:
All versions of prometheus_push_gateway_php with dependencies
guzzlehttp/guzzle Version ^6.3|^7.0
promphp/prometheus_client_php Version ^1.0|^2.0