influxdata / influxdata/influxdb
can't write to telegraf (inputs.influxdb_v2_listener) instead of influx
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
Hi
currently send metric from my java app via "influx java client library" to influxdb.
now need to send telegraf instead of influx , so add below parameter to telegraf.
[[inputs.influxdb_v2_listener]]
service_address = ":8086"
after reset telegraf got this error on my java app:
2023-10-17 09:11:34,731 ERROR [ApiWriter] Can not write to influx, writeApi is null!
here is the code:
import com.influxdb.client.*;
import com.influxdb.client.write.Point;
public void write(Point point) {
if (writeApi == null) {
LOGGER.error("Can not write to influx, writeApi is null!");
return;
Any idea?
Thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Java entry point write(Point point) and the shown inputs.influxdb_v2_listener configuration. Check how the client creates writeApi and whether this listener accepts the client’s requests; done means a reproducible configuration and a confirmed write path or a documented incompatibility.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100