vend / phanglia
Ganglia integration for PHP
Installs: 123 723
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 106
Forks: 3
Open Issues: 1
Requires
- php: >=5.4.0
- psr/log: 1.0.*
Requires (Dev)
- phpunit/phpunit: 4.1.*
This package is not auto-updated.
Last update: 2022-04-11 02:58:07 UTC
README
PHP bindings for Ganglia
A small library for producing and sending GMetric packets for Ganglia monitoring.
Usage
// Gets a metric definition $metric = new Phanglia\Metric('name', Ganglia::TYPE_STRING, Ganglia::SLOPE_UNSPECIFIED); // The metadata and value packets as binary strings, in case you want to send them yourself $meta = $metric->getMetadataPacket(); $value = $metric->getValuePacket('some value') // Sending them on to a Ganglia collector (default udp://127.0.0.1:8649) $socket = new Phanglia\Socket(); $socket->sendMetric($metric, 'some value');
Installation
Phanglia is available via composer, with a package name of vend/phanglia
. Or
point your PSR-4 autoloader at the lib directory.