Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Stack Monitoring] Put elasticsearch.node.stats.jvm.mem.pools.* #40571

Merged
merged 4 commits into from
Aug 22, 2024
Merged
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
11 changes: 1 addition & 10 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ https:/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff]
- Remove fallback to the node limit for the `kubernetes.pod.cpu.usage.limit.pct` and `kubernetes.pod.memory.usage.limit.pct` metrics calculation
- Add support for Kibana status metricset in v8 format {pull}40275[40275]
- Update metrics for the vSphere Host metricset. {pull}40429[40429]
- Added back `elasticsearch.node.stats.jvm.mem.pools.*` to the `node_stats` metricset {pull}40571[40571]

*Osquerybeat*

Expand Down Expand Up @@ -355,13 +356,3 @@ https:/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff]


==== Known Issues










20 changes: 20 additions & 0 deletions metricbeat/module/elasticsearch/node_stats/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ var (
"pct": c.Int("heap_used_percent"),
},
},
"pools": c.Dict("pools", s.Schema{
"young": c.Dict("young", poolSchema),
"survivor": c.Dict("survivor", poolSchema),
"old": c.Dict("old", poolSchema),
}),
}),
"gc": c.Dict("gc", s.Schema{
"collectors": c.Dict("collectors", s.Schema{
Expand Down Expand Up @@ -308,6 +313,21 @@ var (
},
}

poolSchema = s.Schema{
"used": s.Object{
"bytes": c.Int("used_in_bytes"),
},
"max": s.Object{
"bytes": c.Int("max_in_bytes"),
},
"peak": s.Object{
"bytes": c.Int("peak_used_in_bytes"),
},
"peak_max": s.Object{
"bytes": c.Int("peak_max_in_bytes"),
},
}

totalMemoryPressureSchema = s.Schema{
"primary": s.Object{
"rejections": c.Int("primary_rejections"),
Expand Down
Loading