pourquoi / influxdb-client
InfluxDB client UDP
dev-master
2014-06-20 13:42 UTC
This package is not auto-updated.
Last update: 2024-11-05 06:50:44 UTC
README
Send data to influxdb via UDP
$client = new \Pourquoi\InfluxDB\Client(); $client->setDBSender('my_db', new \Pourquoi\InfluxDB\Sender\UDPSender('127.0.0.1', '4444')); $client->insert('my_db', 'foo', array('v1', 'v2'), array('23', '456')); $client->insert('my_db', 'foo', array('v1', 'v2'), array('15', '412')); // this will be sent via http $client->insert('another_db', 'bar', array('foo'), array('baz')); $client->send();