-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added HTTPS support to the Prometheus endpoint. Changed the name to adhere to the Apache Software Foundation's (ASF) trademark policies Code cleanup.
- Loading branch information
Showing
18 changed files
with
574 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Configuration examples | ||
|
||
---- | ||
|
||
Filename | ||
|
||
- `test.properties` | ||
|
||
Configuration scenario | ||
|
||
- Basic self-managed Kafka cluster with 3 brokers | ||
- No Kafka authentication | ||
- HTTP BASIC authentication disable | ||
- HTTP SSL server disabled | ||
|
||
Usage | ||
|
||
```shell | ||
java -jar target/k-synthetic-test-0.0.5.jar configuration/test.properties | ||
``` | ||
|
||
--- | ||
|
||
Filename | ||
|
||
- `test.ssl.properties` | ||
|
||
Configuration scenario | ||
|
||
- Basic self-managed Kafka cluster with 3 brokers | ||
- No Kafka authentication | ||
- HTTP BASIC authentication enabled | ||
- HTTP SSL server enabled | ||
|
||
```shell | ||
java \ | ||
-Djavax.net.ssl.keyStore=configuration/keystore.pkcs12 \ | ||
-Djavax.net.ssl.keyStorePassword=changeit \ | ||
-jar target/k-synthetic-test-0.0.5.jar configuration/test.ssl.properties | ||
``` | ||
|
||
--- | ||
|
||
Filename | ||
|
||
- `test.confluent-cloud.properties` | ||
|
||
Configuration scenario | ||
|
||
- Basic shared Confluent Cloud cluster | ||
- Confluent Cloud authentication | ||
- HTTP BASIC authentication enabled | ||
- HTTP SSL server enabled | ||
|
||
```shell | ||
java \ | ||
-Djavax.net.ssl.keyStore=configuration/keystore.pkcs12 \ | ||
-Djavax.net.ssl.keyStorePassword=changeit \ | ||
-jar target/k-synthetic-test-0.0.5.jar configuration/test.confluent-cloud.properties | ||
``` |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Test instance id | ||
id=source-10.0.0.1 | ||
|
||
# Delay period before starting production of test messages | ||
delay.ms=0 | ||
|
||
# Producer period for test messages | ||
period.ms=1000 | ||
|
||
# | ||
# Metric expiration TTL (expire data "value = -1.0" if not update within TTL period) | ||
# | ||
# This should be a multiple of "period.ms" | ||
# | ||
# Example: | ||
# | ||
# period.ms=1000 | ||
# metric.expiration.period.ms=10000 | ||
# | ||
# Results: | ||
# | ||
# Produce messages every 1000 ms | ||
# Set the gauge value to -1 if there hasn't been an update in 10000 ms | ||
# | ||
metric.expiration.period.ms=10000 | ||
|
||
# Log responses to the console (optional) | ||
#log.responses=true | ||
|
||
# HTTP server address to expose metrics | ||
http.server.address=0.0.0.0 | ||
|
||
# HTTP server port to expose metrics | ||
http.server.port=9191 | ||
|
||
# HTTP server basic authentication (optional) | ||
# | ||
# If enabled, http.server.basic.authentication.username / http.server.basic.authentication.password required | ||
# | ||
http.server.basic.authentication.enabled=true | ||
http.server.basic.authentication.username=prometheus | ||
http.server.basic.authentication.password=secret | ||
|
||
# HTTPS support (optional) | ||
# | ||
# If enabled, Java keystore / truststore system properties | ||
# must be defined along with the certificate alias | ||
# | ||
http.server.ssl.enabled=true | ||
http.server.ssl.certificate.alias=localhost | ||
|
||
# | ||
# Topic for test messages | ||
# | ||
# The most common naming pattern would be "k-synthetic-test-<id>" | ||
# | ||
# Example: | ||
# | ||
# id=source-10.0.0.1 | ||
# topic=k-synthetic-test-source-10.0.0.1 | ||
# | ||
# Example 2: | ||
# | ||
# id=us-east1.project-1.network-1.ip-1.2.3.4 | ||
# topic=k-synthetic-test-us-east1.project-1.network-1.ip-1.2.3.4 | ||
# | ||
topic=k-synthetic-test-source-10.0.0.1 | ||
|
||
# Confluent Cloud properties | ||
bootstrap.servers=<Confluent Cloud bootstrap servers> | ||
security.protocol=SASL_SSL | ||
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username='<Confluent Cloud API Key>' password='<Confluent Cloud API Secret'; | ||
sasl.mechanism=PLAIN | ||
client.dns.lookup=use_all_dns_ips | ||
session.timeout.ms=45000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Configuration scenario | ||
# | ||
# Basic self-managed Kafka cluster with 3 brokers | ||
# No Kafka authentication | ||
# HTTP authentication disabled | ||
# HTTPS disabled | ||
|
||
# Test instance id | ||
id=source-10.0.0.1 | ||
|
||
# Delay period before starting production of test messages | ||
delay.ms=0 | ||
|
||
# Producer period for test messages | ||
period.ms=1000 | ||
|
||
# | ||
# Metric expiration TTL (expire data "value = -1.0" if not update within TTL period) | ||
# | ||
# This should be a multiple of "period.ms" | ||
# | ||
# Example: | ||
# | ||
# period.ms=1000 | ||
# metric.expiration.period.ms=10000 | ||
# | ||
# Results: | ||
# | ||
# Produce messages every 1000 ms | ||
# Set the gauge value to -1 if there hasn't been an update in 10000 ms | ||
# | ||
metric.expiration.period.ms=10000 | ||
|
||
# Log responses to the console (optional) | ||
#log.responses=true | ||
|
||
# HTTP server address to expose metrics | ||
http.server.address=0.0.0.0 | ||
|
||
# HTTP server port to expose metrics | ||
http.server.port=9191 | ||
|
||
# HTTP server basic authentication (optional) | ||
# | ||
# If enabled, http.server.basic.authentication.username / http.server.basic.authentication.password required | ||
# | ||
http.server.basic.authentication.enabled=false | ||
http.server.basic.authentication.username=prometheus | ||
http.server.basic.authentication.password=secret | ||
|
||
# HTTPS support (optional) | ||
# | ||
# If enabled, Java keystore / truststore system properties | ||
# must be defined along with the certificate alias | ||
# | ||
http.server.ssl.enabled=false | ||
http.server.ssl.certificate.alias=localhost | ||
|
||
# | ||
# Topic for test messages | ||
# | ||
# The most common naming pattern would be "k-synthetic-test-<id>" | ||
# | ||
# Example: | ||
# | ||
# id=source-10.0.0.1 | ||
# topic=k-synthetic-test-source-10.0.0.1 | ||
# | ||
# Example 2: | ||
# | ||
# id=us-east1.project-1.network-1.ip-1.2.3.4 | ||
# topic=k-synthetic-test-us-east1.project-1.network-1.ip-1.2.3.4 | ||
# | ||
topic=k-synthetic-test-source-10.0.0.1 | ||
|
||
# Kafka properties | ||
bootstrap.servers=cp-1:9092,cp-2:9092,cp-3:9092 |
Oops, something went wrong.