Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kafka_exporter: error: unexpected true, try --help #456

Open
sunxuming2018 opened this issue Aug 27, 2024 · 2 comments
Open

kafka_exporter: error: unexpected true, try --help #456

sunxuming2018 opened this issue Aug 27, 2024 · 2 comments

Comments

@sunxuming2018
Copy link

--server. tls. enabled=true. Setting either true or false will result in an error.

kafka_exporter --kafka.server=IP:9092 --web.listen-address=:9309 --server.tls.enabled=true --server.tls.cert-file=kafka_exporter.crt --server.tls.key-file=kafka_exporter.key

kafka_exporter: error: unexpected true, try --help

@omarfakhreddine
Copy link

This section helps explain how to deal with this.

You need to use --server.tls.enabled to set enable it and --no-server.tls.enabled for true/false arguments

@sunxuming2018
Copy link
Author

Setting -- server. tls. enabled=enable -- no server. tls. enabled=true still reports an error.
./kafka_exporter --kafka.server=10.26.248.252:9092 --web.listen-address=:9308 --server.tls.enabled=enable --no-server.tls.enabled=true --server.tls.cert-file=kafka_exporter.crt --server.tls.key-file=kafka_exporter.key
kafka_exporter: error: unexpected enable, try --help

The version information is as follows.
kafka_exporter, version 1.8.0 (branch: HEAD, revision: 477643d)
build user: root@1badbd8df021
build date: 20240820-07:05:57
go version: go1.23.0
platform: linux/amd64
tags: netgo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants