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

Added support for shards total count in Elasticsearch Module #38891

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
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff]

*Metricbeat*

- Add support for shards_stats.total_count in Elasticsearch Monitoring data. {pull}38891[38891]
- Add new fields to configure the lease duration, retry and renew when using leader elector with kubernetes autodiscover.{pull}38471[38471]
- Add per-thread metrics to system_summary {pull}33614[33614]
- Add GCP CloudSQL metadata {pull}33066[33066]
Expand Down
8 changes: 8 additions & 0 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -32239,6 +32239,14 @@ type: long
--


*`elasticsearch.node.stats.indices.shard_stats.total_count`*::
+
--
type: long

--


*`elasticsearch.node.stats.indices.segments.doc_values.memory.bytes`*::
+
--
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/elasticsearch/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
"count": 15325
}
},
"shard_stats": {
"total_count": 1753
},
"segments": {
"count": 24,
"doc_values": {
Expand Down Expand Up @@ -209,4 +212,4 @@
"name": "elasticsearch",
"type": "elasticsearch"
}
}
}
5 changes: 5 additions & 0 deletions metricbeat/module/elasticsearch/node_stats/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@
type: long
- name: query_total.count
type: long
- name: shard_stats
type: group
fields:
- name: total_count
type: long
- name: segments
type: group
fields:
Expand Down
3 changes: 3 additions & 0 deletions metricbeat/module/elasticsearch/node_stats/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ var (
"count": c.Int("query_total"),
},
}),
"shard_stats": c.Dict("shard_stats", s.Schema{
"total_count": c.Int("total_count"),
}, c.DictOptional),
"store": c.Dict("store", s.Schema{
"size": s.Object{
"bytes": c.Int("size_in_bytes"),
Expand Down
Loading