Skip to content

Commit

Permalink
[Stack Monitoring] Put elasticsearch.node.stats.jvm.mem.pools.* (#4…
Browse files Browse the repository at this point in the history
…0571)

This re-adds the pools to the `node_stats` metric set.
  • Loading branch information
pickypg authored Aug 22, 2024
1 parent 00e44ba commit 9146875
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
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 @@ -356,13 +357,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

0 comments on commit 9146875

Please sign in to comment.