influxdata/influxdb-php

Write using Telegraf Service

Opened this issue · 6 comments

Is it possible to send data from PHP via Telegraf service, instead of writing directly in InfluxDB? It could increase performance by multiple times

Any ideas?

andig commented

You can write to Telegraf, but why should this increase performance?

@andig
Telegraf service is running on the same machine, but InfluxDB is running on another machine, right? So, I want to avoid network overhead

andig commented

Telegraf service is running on the same machine, but InfluxDB is running on another machine, right?

yes

So, I want to avoid network overhead

You mean by using Telegraf for batching writes if your client is not capable to do that?

You mean by using Telegraf for batching writes if your client is not capable to do that?

I do not want to use blocking network requests from my PHP app. Even batch requests, because I think it is better to write in locally running Telegraf service via socket or some other protocol.

andig commented

See https://www.influxdata.com/blog/influxdb-2-migration-path-instrumentation/ for how to use input listener/ influxdb output. I have not tested if this really improves performance.