Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Write using Telegraf Service #134

Open
akalongman opened this issue Aug 16, 2019 · 6 comments
Open

Write using Telegraf Service #134

akalongman opened this issue Aug 16, 2019 · 6 comments

Comments

@akalongman
Copy link

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

@akalongman
Copy link
Author

Any ideas?

@andig
Copy link
Contributor

andig commented Oct 29, 2019

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

@akalongman
Copy link
Author

@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
Copy link
Contributor

andig commented Oct 30, 2019

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?

@akalongman
Copy link
Author

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
Copy link
Contributor

andig commented Oct 30, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants