Skip to content

Commit

Permalink
expose fluentd metrics also on IPv6
Browse files Browse the repository at this point in the history
Currently, IPv6 only clusters cannot scrape metrics from fluentd, as fluentd's `bind` default is `0.0.0.0`. Any IPv6 only cluster will fail scrapes.

fluentd currently does not support binding both IPv6 and IPv4 in a single source. Adding a second IPv6 source makes fluentd listen on both IPv4 and IPv6, allowing scrapes universally.

Fixes #1835
  • Loading branch information
JensErat committed Oct 30, 2024
1 parent 5d8c774 commit 84cd5f2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/resources/fluentd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ var fluentdInputTemplate = `
metrics_path {{ .Monitor.Path }}
{{- end }}
</source>
<source>
@type prometheus
@id in_prometheus6
bind "::"
port {{ .Monitor.Port }}
{{- if .Monitor.Path }}
metrics_path {{ .Monitor.Path }}
{{- end }}
</source>
<source>
@type prometheus_monitor
</source>
Expand Down

0 comments on commit 84cd5f2

Please sign in to comment.