-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
prometheus_client plugin: Add transport encryption via TLS and authentication via http basic_auth #3719
prometheus_client plugin: Add transport encryption via TLS and authentication via http basic_auth #3719
Changes from 2 commits
893d6a0
7f39fc5
de9d7fa
ffc0690
bfe91ac
ee04770
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,16 @@ This plugin starts a [Prometheus](https://prometheus.io/) Client, it exposes all | |
# Address to listen on | ||
listen = ":9273" | ||
|
||
# Use TLS | ||
tls = true | ||
tls_crt = "/etc/ssl/telegraf.crt" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Call this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in de9d7fa |
||
tls_key = "/etc/ssl/telegraf.key" | ||
|
||
# Use http basic authentication | ||
basic_auth = true | ||
username = "Foo" | ||
password = "Bar" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For basic auth lets do it like in #3496, enable if either username or password is set and no enable flag. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in bfe91ac |
||
|
||
# Path to publish the metrics on, defaults to /metrics | ||
path = "/metrics" | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this option, if other tls options are set then enable tls, see http_listener input for an example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in ffc0690