Skip to content

feat(fluentd): add metrics.serviceMonitor.path value - #758

Merged
stevehipwell merged 2 commits into
fluent:mainfrom
yakir-shriker:fluentd-servicemonitor-path
Oct 7, 2026
Merged

stevehipwell merged 2 commits into
fluent:mainfrom
yakir-shriker:fluentd-servicemonitor-path

Conversation

@yakir-shriker

@yakir-shriker yakir-shriker commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #757.

The ServiceMonitor hardcodes path: /metrics, which only returns worker 0 when running multiple workers. This adds metrics.serviceMonitor.path (default /metrics) so /aggregated_metrics can be scraped.

Rendered output is identical to main when the value is unset.

  • values.yaml helm-docs comment + README (just docs clean)
  • CHANGELOG entry under [UNRELEASED], just lint clean
  • DCO sign-off

@stevehipwell stevehipwell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @yakir-shriker, please see my review comments. You will also need to rebase.

Comment thread charts/fluentd/CHANGELOG.md Outdated
Comment thread charts/fluentd/templates/servicemonitor.yaml Outdated
The ServiceMonitor hardcodes path /metrics, which only returns worker 0
when Fluentd runs with multiple workers. Make the path configurable so
/aggregated_metrics can be scraped instead. Default is unchanged.

Signed-off-by: Yakir Shriker <yakirshr@gmail.com>
Signed-off-by: Yakir Shriker <yakirshr@gmail.com>
@yakir-shriker

Copy link
Copy Markdown
Contributor Author

Thanks @stevehipwell! Applied both suggestions and rebased on main.

@yakir-shriker
yakir-shriker force-pushed the fluentd-servicemonitor-path branch from 65b7f10 to 02d2891 Compare October 4, 2026 07:57

@stevehipwell stevehipwell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stevehipwell
stevehipwell merged commit 5c5a81d into fluent:main Oct 7, 2026
5 checks passed
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

Successfully merging this pull request may close these issues.

[fluentd] ServiceMonitor path is hardcoded to /metrics, misses workers 1..N

2 participants