Support HTTPS / TLS to send metrics to influxdb
Use case
We use the HttpMetricsSender in src/components/src/main/java/org/apache/jmeter/visualizers/backend/influxdb to send metrics to an influxdb instance.
This instance is only reachable via HTTPS / TLS endpoints. It is not possible to use the HttpMetricsSender, since its HTTP client is not configured with an sslContext.
Adding an sslContext configuration would allow to send results to influxdb instances only reachable over HTTPS.
Possible solution
There is already a fork of the HttpMetricsSender here: https://github.com/YuriiChukhrai/jmeter-https-metrics implementing the sslContext. This implementation also allows for self-signed certificates.
A similar implementation using a default sslContext
SSLContext sslContext = SSLContexts.createSystemDefault();
should cover most use cases where certificate stores are correctly setup and does not open security holes.
Possible workarounds
No response
JMeter Version
6.0.0
Java Version
openjdk version "21.0.3" 2024-04-16 LTS
OS Version
No response