Skip to content

Commit

Permalink
Bug 1791336: Fix fluent metrics config to support ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
jcantrill committed Jan 16, 2020
1 parent 549ddc5 commit 1473937
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/generators/forwarding/fluentd/fluent_conf_test.go
Expand Up @@ -108,6 +108,7 @@ var _ = Describe("Generating fluentd config", func() {
## ordered so that syslog always runs last...
<source>
@type prometheus
bind '::'
<ssl>
enable true
certificate_path "#{ENV['METRICS_CERT'] || '/etc/fluent/metrics/tls.crt'}"
Expand Down Expand Up @@ -448,6 +449,7 @@ var _ = Describe("Generating fluentd config", func() {
## ordered so that syslog always runs last...
<source>
@type prometheus
bind '::'
<ssl>
enable true
certificate_path "#{ENV['METRICS_CERT'] || '/etc/fluent/metrics/tls.crt'}"
Expand Down
1 change: 1 addition & 0 deletions pkg/generators/forwarding/fluentd/templates.go
Expand Up @@ -32,6 +32,7 @@ const fluentConfTemplate = `{{- define "fluentConf" }}
## ordered so that syslog always runs last...
<source>
@type prometheus
bind '::'
<ssl>
enable true
certificate_path "#{ENV['METRICS_CERT'] || '/etc/fluent/metrics/tls.crt'}"
Expand Down
2 changes: 1 addition & 1 deletion scripts/cert_generation.sh
Expand Up @@ -226,7 +226,7 @@ function generate_extensions() {
local use_comma=0

if [ "$add_localhost" == "true" ]; then
extension_names="IP.1:127.0.0.1,DNS.1:localhost"
extension_names="IP.1:127.0.0.1,IP.2:0:0:0:0:0:0:0:1,DNS.1:localhost"
extension_index=2
use_comma=1
fi
Expand Down

0 comments on commit 1473937

Please sign in to comment.