apache / apache/jmeter

Support HTTPS / TLS to send metrics to influxdb

Open
#6,294 0 comments 0 reactions 0 assignees View on GitHub
enhancement to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.