influxdata / influxdata/influxdb
jmeter integraton with Influxdb v2.2 -- influxdb url issue
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
2022-05-24 07:26:17,340 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2022-05-24 07:26:17,341 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2022-05-24 07:26:17,343 INFO o.a.j.v.b.BackendListener: Backend Listener: Starting worker with class: class org.apache.jmeter.visualizers.backend.influxdb.InfluxdbBackendListenerClient and queue capacity: 5000
2022-05-24 07:26:17,343 INFO o.a.j.v.b.BackendListener: Backend Listener: Started worker with class: class org.apache.jmeter.visualizers.backend.influxdb.InfluxdbBackendListenerClient
2022-05-24 07:26:17,346 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)
2022-05-24 07:26:17,424 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2022-05-24 07:26:17,424 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2022-05-24 07:26:17,424 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2022-05-24 07:26:17,424 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 delayedStart=true
2022-05-24 07:26:17,424 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2022-05-24 07:26:17,429 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started
2022-05-24 07:26:17,431 ERROR o.a.j.v.b.i.HttpMetricsSender: Error writing metrics to influxDB Url: http://localhost:8086/api/v2/write?org=myOrg&bucket=myDb, responseCode: 401, responseBody: {"error":"unable to parse authentication credentials"}
2022-05-24 07:26:17,434 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1
2022-05-24 07:26:22,361 ERROR o.a.j.v.b.i.HttpMetricsSender: Error writing metrics to influxDB Url: http://localhost:8086/api/v2/write?org=myOrg&bucket=myDb, responseCode: 401, responseBody: {"error":"unable to parse authentication credentials"}
2022-05-24 07:26:27,356 ERROR o.a.j.v.b.i.HttpMetricsSender: Error writing metrics to influxDB Url: http://localhost:8086/api/v2/write?org=myOrg&bucket=myDb, responseCode: 401, responseBody: {"error":"unable to parse authentication credentials"}
2022-05-24 07:26:32,354 ERROR o.a.j.v.b.i.HttpMetricsSender: Error writing metrics to influxDB Url: http://localhost:8086/api/v2/write?org=myOrg&bucket=myDb, responseCode: 401, responseBody: {"error":"unable to parse authentication credentials"}
2022-05-24 07:26:37,358 ERROR o.a.j.v.b.i.HttpMetricsSender: Error writing metrics to influxDB Url: http://localhost:8086/api/v2/write?org=myOrg&bucket=myDb, responseCode: 401, responseBody: {"error":"unable to parse authentication credentials"}
2022-05-24 07:26:38,455 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-1
2022-05-24 07:26:38,455 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-1
2022-05-24 07:26:38,455 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test
2022-05-24 07:26:38,475 INFO o.a.j.v.b.BackendListener: Worker ended
2022-05-24 07:26:38,475 INFO o.a.j.v.b.i.InfluxdbBackendListenerClient: Sending last metrics to InfluxDB
2022-05-24 07:26:38,475 INFO o.a.j.v.b.i.HttpMetricsSender: Destroying
**2022-05-24 07:26:38,478 ERROR o.a.j.v.b.i.HttpMetricsSender: Error writing metrics to influxDB Url: http://localhost:8086/api/v2/write?org=myOrg&bucket=myDb, responseCode: 401, responseBody: {"error":"unable to parse authentication credentials"}
2022-05-24 07:26:38,479 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)**
Contributor guide
Research direction
Start with the JMeter InfluxdbBackendListenerClient and the HttpMetricsSender entry point shown in the logs, then review how the InfluxDB v2.2 write URL and authentication are handled. Reproduce the 401 response and identify the expected request configuration; done means metrics are accepted without the authentication parsing error.
Written by the indexing model from the issue text.
Assessment
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100