forked from google/cadvisor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add optional TLS client auth to Kafka storage
- Loading branch information
Showing
4 changed files
with
90 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,43 @@ | ||
# Exporting cAdvisor Stats to Kafka | ||
|
||
cAdvisor supports exporting stats to [Kafka](http://kafka.apache.org/). To use Kafka, you need to provide the additional flags to cAdvisor: | ||
|
||
Set the storage driver as Kafka: | ||
|
||
``` | ||
-storage_driver=kafka | ||
``` | ||
|
||
If no broker are provided it will default to a broker listening at localhost:9092, with 'stats' as the default topic. | ||
|
||
|
||
Specify a Kafka broker address: | ||
|
||
``` | ||
-storage_driver_kafka_broker_list=localhost:9092 | ||
``` | ||
|
||
Specify a Kafka topic: | ||
|
||
``` | ||
-storage_driver_kafka_topic=myTopic | ||
``` | ||
|
||
As of version 9.0. Kafka supports TLS client auth: | ||
|
||
``` | ||
# To enable TLS client auth support you need to provide the following: | ||
# Location to Certificate Authority certificate | ||
-storage_driver_kafka_ssl_ca=/path/to/ca.pem | ||
# Location to client certificate certificate | ||
-storage_driver_kafka_ssl_cert=/path/to/client_cert.pem | ||
# Location to client certificate key | ||
-storage_driver_kafka_ssl_key=/path/to/client_key.pem | ||
# Verify SSL certificate chain (default: true) | ||
-storage_driver_kafka_ssl_verify=false | ||
``` |
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