Skip to content

system/network: Fix interfaces filtering#15883

Merged
shmsr merged 2 commits intoelastic:mainfrom
shmsr:fix-system-bug-net
Nov 11, 2025
Merged

system/network: Fix interfaces filtering#15883
shmsr merged 2 commits intoelastic:mainfrom
shmsr:fix-system-bug-net

Conversation

@shmsr
Copy link
Copy Markdown
Member

@shmsr shmsr commented Nov 6, 2025

Proposed commit message

So far interfaces added by the user were populating network.interfaces but that does not populate the list internally as the config is at module level and not at metricset level; so instead of configuring network.interfaces, one must configure interfaces and it will populate the list of interfaces and it will work as expected.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

How to test this PR locally

When configured, in debug mode, the code should trigger:

base.Logger().Named("system-network").Debugf("network io stats will be included for %v", interfaceSet)

^ Implementation in beats

So, with this fix, I am able to get the right interfaces configured.

@shmsr shmsr requested review from a team as code owners November 6, 2025 11:14
@shmsr shmsr requested a review from Copilot November 6, 2025 11:14
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes network data stream interface filtering by populating both the legacy top-level interfaces field and the nested network.interfaces field to maintain backward compatibility with existing Beats behavior.

  • Version bumped to 2.7.1
  • Added dual population of interfaces and network.interfaces fields in the stream template
  • Improved documentation clarity for the network interfaces configuration

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
packages/system/manifest.yml Bumped version to 2.7.1 for the bugfix release
packages/system/data_stream/network/manifest.yml Improved description clarity for interface monitoring behavior
packages/system/data_stream/network/agent/stream/stream.yml.hbs Added legacy interfaces field alongside network.interfaces to fix filtering
packages/system/changelog.yml Documented the bugfix with link to PR

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@elastic-vault-github-plugin-prod
Copy link
Copy Markdown

elastic-vault-github-plugin-prod bot commented Nov 6, 2025

🚀 Benchmarks report

Package system 👍(2) 💚(0) 💔(1)

Expand to view
Data stream Previous EPS New EPS Diff (%) Result
syslog 500000 250000 -250000 (-50%) 💔

To see the full report comment with /test benchmark fullreport

@andrewkroh andrewkroh added Integration:system System Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] labels Nov 6, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@shmsr shmsr self-assigned this Nov 6, 2025
@elasticmachine
Copy link
Copy Markdown

💚 Build Succeeded

History

cc @shmsr

@shmsr shmsr merged commit b71b93a into elastic:main Nov 11, 2025
7 checks passed
@elastic-vault-github-plugin-prod
Copy link
Copy Markdown

Package system - 2.7.1 containing this change is available at https://epr.elastic.co/package/system/2.7.1/

tehbooom pushed a commit to tehbooom/integrations that referenced this pull request Nov 19, 2025
@andrewkroh andrewkroh added the bugfix Pull request that fixes a bug issue label Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes a bug issue Integration:system System Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants