Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11175,11 +11175,11 @@ Contents of probable licence file $GOMODCACHE/github.com/elastic/elastic-agent-l

--------------------------------------------------------------------------------
Dependency : github.com/elastic/elastic-agent-system-metrics
Version: v0.14.1
Version: v0.14.3
Licence type (autodetected): Apache-2.0
--------------------------------------------------------------------------------

Contents of probable licence file $GOMODCACHE/github.com/elastic/elastic-agent-system-metrics@v0.14.1/LICENSE.txt:
Contents of probable licence file $GOMODCACHE/github.com/elastic/elastic-agent-system-metrics@v0.14.3/LICENSE.txt:

Apache License
Version 2.0, January 2004
Expand Down
45 changes: 45 additions & 0 deletions changelog/fragments/1772011445-zswap-metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# REQUIRED
# Kind can be one of:
# - breaking-change: a change to previously-documented behavior
# - deprecation: functionality that is being removed in a later release
# - bug-fix: fixes a problem in a previous version
# - enhancement: extends functionality but does not break or fix existing behavior
# - feature: new functionality
# - known-issue: problems that we are aware of in a given version
# - security: impacts on the security of a product or a user’s deployment.
# - upgrade: important information for someone upgrading from a prior version
# - other: does not fit into any of the other categories
kind: feature

# REQUIRED for all kinds
# Change summary; a 80ish characters long description of the change.
summary: Add zswap compressed swap cache metrics to system memory metricset

# REQUIRED for breaking-change, deprecation, known-issue
# Long description; in case the summary is not enough to describe the change
# this field accommodate a description without length limits.
# description:

# REQUIRED for breaking-change, deprecation, known-issue
# impact:

# REQUIRED for breaking-change, deprecation, known-issue
# action:

# REQUIRED for all kinds
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
component: metricbeat

# AUTOMATED
# OPTIONAL to manually add other PR URLs
# PR URL: A link the PR that added the changeset.
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
# Please provide it if you are adding a fragment for a different PR.
# pr: https://github.com/owner/repo/1234

# AUTOMATED
# OPTIONAL to manually add other issue URLs
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
# If not present is automatically filled by the tooling with the issue linked to the PR number.
# issue: https://github.com/owner/repo/1234
45 changes: 45 additions & 0 deletions changelog/fragments/1772636540-zswap-metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# REQUIRED
# Kind can be one of:
# - breaking-change: a change to previously-documented behavior
# - deprecation: functionality that is being removed in a later release
# - bug-fix: fixes a problem in a previous version
# - enhancement: extends functionality but does not break or fix existing behavior
# - feature: new functionality
# - known-issue: problems that we are aware of in a given version
# - security: impacts on the security of a product or a user’s deployment.
# - upgrade: important information for someone upgrading from a prior version
# - other: does not fit into any of the other categories
kind: feature

# REQUIRED for all kinds
# Change summary; a 80ish characters long description of the change.
summary: Add cgroupv2 CPU metrics to system.process dataset

# REQUIRED for breaking-change, deprecation, known-issue
# Long description; in case the summary is not enough to describe the change
# this field accommodate a description without length limits.
# description:

# REQUIRED for breaking-change, deprecation, known-issue
# impact:

# REQUIRED for breaking-change, deprecation, known-issue
# action:

# REQUIRED for all kinds
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
component: metricbeat

# AUTOMATED
# OPTIONAL to manually add other PR URLs
# PR URL: A link the PR that added the changeset.
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
# Please provide it if you are adding a fragment for a different PR.
# pr: https://github.com/owner/repo/1234

# AUTOMATED
# OPTIONAL to manually add other issue URLs
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
# If not present is automatically filled by the tooling with the issue linked to the PR number.
# issue: https://github.com/owner/repo/1234
98 changes: 98 additions & 0 deletions docs/reference/metricbeat/exported-fields-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,98 @@
format: percent


## zswap [_zswap]

zswap compressed swap cache metrics. Available on Linux when zswap is enabled.

**`system.memory.zswap.compressed`**
: Current compressed size of data stored in zswap.

type: long

format: bytes


**`system.memory.zswap.uncompressed`**
: Original uncompressed size of data stored in zswap.

type: long

format: bytes


## debug [_debug]

Detailed zswap statistics from /sys/kernel/debug/zswap. Requires debugfs to be mounted and accessible.

**`system.memory.zswap.debug.decompress_fail`**
: Number of load or writeback attempts that failed due to decompression failure.

type: long


**`system.memory.zswap.debug.pool_limit_hit`**
: Number of times the zswap pool limit was hit, as configured by the zswap.max_pool_percent kernel parameter.

Check notice on line 810 in docs/reference/metricbeat/exported-fields-system.md

View workflow job for this annotation

GitHub Actions / docs-preview / vale

Elastic.WordChoice: Consider using 'select, press, visits' instead of 'hit', unless the term is in the UI.

type: long


**`system.memory.zswap.debug.pool_total_size`**
: Total size of the zswap pool in bytes.

type: long

format: bytes


**`system.memory.zswap.debug.reject_alloc_fail`**
: Number of store attempts that failed because the underlying allocator could not get memory.

type: long


**`system.memory.zswap.debug.reject_compress_fail`**
: Number of store attempts that failed due to compression algorithm failure.

type: long


**`system.memory.zswap.debug.reject_compress_poor`**
: Number of store attempts rejected because the compressed page was too big for the allocator to optimally store.

type: long


**`system.memory.zswap.debug.reject_kmemcache_fail`**
: Number of store attempts that failed because the entry metadata could not be allocated (rare).

type: long


**`system.memory.zswap.debug.reject_reclaim_fail`**
: Number of store attempts that failed due to a reclaim failure after pool limit was reached.

type: long


**`system.memory.zswap.debug.stored_incompressible_pages`**
: Number of incompressible pages currently stored in zswap.

type: long


**`system.memory.zswap.debug.stored_pages`**
: Number of pages currently stored in zswap.

type: long


**`system.memory.zswap.debug.written_back_pages`**
: Number of pages written back from zswap to swap when pool limit was reached.

type: long


## network [_network]

`network` contains network IO metrics for a single network interface.
Expand Down Expand Up @@ -1238,6 +1330,12 @@
type: long


**`system.process.cgroup.cpu.cfs.weight`**
: CPU weight for the cgroup (cgroupv2). Used by the CFS scheduler to determine the share of CPU time available to the cgroup. Range is 1 to 10000, default 100.
Copy link
Member

Choose a reason for hiding this comment

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

Just a curiosity: I assume this metrics apply to EEVDF as well, now that it has been the default Linux scheduler since v6.6. It just feels a bit weird that we still have cfs in the metric name.


type: long


**`system.process.cgroup.cpu.rt.period.us`**
: Period of time in microseconds for how regularly a cgroup's access to CPU resources is reallocated.

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ require (
github.com/elastic/ebpfevents v0.8.0
github.com/elastic/elastic-agent-autodiscover v0.10.2
github.com/elastic/elastic-agent-libs v0.33.3
github.com/elastic/elastic-agent-system-metrics v0.14.1
github.com/elastic/elastic-agent-system-metrics v0.14.3
github.com/elastic/go-elasticsearch/v8 v8.19.0
github.com/elastic/go-freelru v0.16.0
github.com/elastic/go-quark v0.3.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ github.com/elastic/elastic-agent-client/v7 v7.18.0 h1:zXdoErqECfvRjj1c+1Ko4VGuUn
github.com/elastic/elastic-agent-client/v7 v7.18.0/go.mod h1:ChFjpIfSsQOnhWT3se5Euw/o8P4Vf77FxeObE/vUfSc=
github.com/elastic/elastic-agent-libs v0.33.3 h1:Gsq5FA29sUbbZVJbeLCKPyRkAxCrOhv3VtXvuG9Uu6k=
github.com/elastic/elastic-agent-libs v0.33.3/go.mod h1:0xUg7alsNE/WhY9DZRIdTYW75nqSHC1octIAg//j/PQ=
github.com/elastic/elastic-agent-system-metrics v0.14.1 h1:XdV3KWbug/M1dkn8h9Yth9pfdyeFR2Z1iqaypX+ohBg=
github.com/elastic/elastic-agent-system-metrics v0.14.1/go.mod h1:JNfnZrC0viAjlJRUzQKKuMpDlXgjXBn4WdWEXQF7jcA=
github.com/elastic/elastic-agent-system-metrics v0.14.3 h1:v867kcgCVguOX3AYIHEVn2RNracdH40FqqXiZq71pDU=
github.com/elastic/elastic-agent-system-metrics v0.14.3/go.mod h1:JNfnZrC0viAjlJRUzQKKuMpDlXgjXBn4WdWEXQF7jcA=
github.com/elastic/elastic-transport-go/v8 v8.8.0 h1:7k1Ua+qluFr6p1jfJjGDl97ssJS/P7cHNInzfxgBQAo=
github.com/elastic/elastic-transport-go/v8 v8.8.0/go.mod h1:YLHer5cj0csTzNFXoNQ8qhtGY1GTvSqPnKWKaqQE3Hk=
github.com/elastic/fsevents v0.0.0-20181029231046-e1d381a4d270 h1:cWPqxlPtir4RoQVCpGSRXmLqjEHpJKbR60rxh1nQZY4=
Expand Down
Loading
Loading