Skip to content

[cgv2] io: Use omitempty for Pressure#276

Merged
orestisfl merged 1 commit intoelastic:mainfrom
orestisfl:io-omitempty
Dec 17, 2025
Merged

[cgv2] io: Use omitempty for Pressure#276
orestisfl merged 1 commit intoelastic:mainfrom
orestisfl:io-omitempty

Conversation

@orestisfl
Copy link
Copy Markdown
Contributor

What does this PR do?

Consistent with memory and cpu pressure stats

Relevant when pressure stats are disabled e.g. with

echo 0 | sudo tee /sys/fs/cgroup/<some cgroup>/cgroup.pressure

Why is it important?

To consistently format metricbeat output

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.md

Consistent with memory and cpu pressure stats
@orestisfl orestisfl self-assigned this Dec 15, 2025
@orestisfl orestisfl requested a review from a team as a code owner December 15, 2025 17:39
@orestisfl orestisfl requested review from faec and leehinman and removed request for a team December 15, 2025 17:39
@orestisfl orestisfl added bug Something isn't working Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Dec 15, 2025
@pierrehilbert pierrehilbert requested a review from rdner December 16, 2025 08:43
@orestisfl orestisfl merged commit 6ebac76 into elastic:main Dec 17, 2025
5 checks passed
@orestisfl orestisfl deleted the io-omitempty branch December 17, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants