influxdb_push_data($url, $db, $data [, quiet => 1])
Builds an influx-db query and write it to the given database specified with url
and db
for the Influx DB name. data
is a hash containing the table name in Influx DB, the tags and the values to plot.
Example of data: $data = { table => 'my_db_table_name', tags => { BUILD => '42', KERNEL => '4.12.14-lp151.28.20-default'}, values => { io_reads' => 1337, io_writes => 1338 } }
Builds an Influx DB query and read data from specified database with url_base
and db
for the Influx DB name. query
contains SELECT query for given DB.
returns json with results of SELECT query.
Pushes data to specified with url
and db
for the Postgres DB name using curl.