influxdata / influxdata/kapacitor
Kapacitor log files is showing post messages to different influx DB
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 479
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
Hi Team,
I have installed both influx db and kapacitor in my linux machine using rpm packaging. In our project we have also influx db installed in other 2 server machines. Below is the configuration file kapacitor.conf(attached as well) in my local pointing to my local installation of influx db running on localhost:8086.
[[influxdb]]
enabled = true
default = true
name = "localhost"
urls = ["http://localhost:8086"]
username = ""
password = ""
timeout = 0
disable-subscriptions = true
[kapacitor.zip](https://github.com/influxdata/kapacitor/files/1853715/kapacitor.zip)
Now my problem is, as soon as I start my local instance of kapacitor, the kapacitor log file is filled up with below logs where host is pointing to the influx db servers installed in other 2 server machines and not in my local. I have nothing configured in my kapacitor conf file pointing to these servers. I removed and reinstalled the kapacitor local instance but same issue keeps happening. Any idea how to resolve this?
Below is few log entries from kapacitor.log file. I have also attached the kapacitor.conf file. After initial installation of kapacitor, I pointed it to influx db in server machines and then I repointed it back to my local influx installation. I am not sure if this started happening from that time onwards or not. That is why I removed and reinstalled kapacitor but not able to resolve the issue.
_ts=2018-03-27T20:05:36.869Z lvl=info msg="http request" service=http host=XXX.XX.XX.64 username=- start=2018-03-27T20:05:36.869421953Z method=POST uri=/write?consistency=&db=zzz&precision=ns&rp=autogen protocol=HTTP/1.1 status=204 referer=- user-agent=InfluxDBClient request-id=36f951d2-31fa-11e8-b884-000000000000 duration=192.208µs
ts=2018-03-27T20:05:36.869Z lvl=info msg="http request" service=http host=XXX.XX.XX.64 username=- start=2018-03-27T20:05:36.869421953Z method=POST uri=/write?consistency=&db=yyy&precision=ns&rp=autogen protocol=HTTP/1.1 status=204 referer=- user-agent=InfluxDBClient request-id=36f951d2-31fa-11e8-b884-000000000000 duration=192.208µs_
Contributor guide
Research direction
Start by reviewing the attached kapacitor.conf and kapacitor.zip, then compare its configured InfluxDB endpoints with the hosts shown in the kapacitor.log POST entries. Trace where those destinations are retained or selected after the configuration changes; the issue is done when a restarted local instance writes only to the configured localhost database and the cause is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100