-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add elasticsearch module with stats metricset (#3903)
This adds the stats metricset for the elasticsearch module. The stats metricset gives and overview over the current state of the cluster.
- Loading branch information
Showing
27 changed files
with
2,570 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-module-elasticsearch]] | ||
== elasticsearch Module | ||
|
||
This is the elasticsearch Module. The elasticsearch module contains a minimal set of metrics to enable monitoring of elasticsearch across multiple versions. | ||
|
||
|
||
|
||
[float] | ||
=== Example Configuration | ||
|
||
The elasticsearch module supports the standard configuration options that are described | ||
in <<configuration-metricbeat>>. Here is an example configuration: | ||
|
||
[source,yaml] | ||
---- | ||
metricbeat.modules: | ||
#- module: elasticsearch | ||
# metricsets: ["stats"] | ||
# enabled: true | ||
# period: 10s | ||
# hosts: ["localhost:9200"] | ||
---- | ||
|
||
[float] | ||
=== Metricsets | ||
|
||
The following metricsets are available: | ||
|
||
* <<metricbeat-metricset-elasticsearch-stats,stats>> | ||
|
||
include::elasticsearch/stats.asciidoc[] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-elasticsearch-stats]] | ||
include::../../../module/elasticsearch/stats/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-elasticsearch,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/elasticsearch/stats/_meta/data.json[] | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#- module: elasticsearch | ||
# metricsets: ["stats"] | ||
# enabled: true | ||
# period: 10s | ||
# hosts: ["localhost:9200"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
== elasticsearch Module | ||
|
||
This is the elasticsearch Module. The elasticsearch module contains a minimal set of metrics to enable monitoring of elasticsearch across multiple versions. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ELASTICSEARCH_HOST=elasticsearch | ||
ELASTICSEARCH_PORT=9200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
- key: elasticsearch | ||
title: "elasticsearch" | ||
description: > | ||
[]experimental | ||
elasticsearch Module | ||
short_config: false | ||
fields: | ||
- name: elasticsearch | ||
type: group | ||
description: > | ||
fields: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* | ||
Package elasticsearch is a Metricbeat module that contains MetricSets. | ||
*/ | ||
package elasticsearch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"@timestamp": "2016-05-23T08:05:34.853Z", | ||
"beat": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
}, | ||
"elasticsearch": { | ||
"stats": { | ||
"docs": { | ||
"count": 4, | ||
"deleted": 0 | ||
}, | ||
"segments": { | ||
"count": 4, | ||
"memory": { | ||
"bytes": 6647 | ||
} | ||
}, | ||
"shards": { | ||
"failed": 0, | ||
"successful": 11, | ||
"total": 22 | ||
}, | ||
"store": { | ||
"size": { | ||
"bytes": 16148 | ||
} | ||
} | ||
} | ||
}, | ||
"metricset": { | ||
"host": "127.0.0.1:9200", | ||
"module": "elasticsearch", | ||
"name": "stats", | ||
"rtt": 115 | ||
}, | ||
"type": "metricsets" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
=== elasticsearch stats MetricSet | ||
|
||
This is the stats metricset of the module elasticsearch. This provides statistics across all indices. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
- name: stats | ||
type: group | ||
description: > | ||
stats | ||
fields: | ||
- name: docs.count | ||
type: long | ||
description: > | ||
Total number of existing documents. | ||
- name: docs.deleted | ||
type: long | ||
description: > | ||
Total number of deleted documents. | ||
- name: segments.count | ||
type: long | ||
description: > | ||
Total number of segments. | ||
- name: segments.memory.bytes | ||
type: long | ||
format: bytes | ||
description: > | ||
Total size of segments in bytes. | ||
- name: shards.failed | ||
type: long | ||
description: > | ||
Number of failed shards. | ||
- name: shards.successful | ||
type: long | ||
description: > | ||
Number of successful shards. | ||
- name: shards.total | ||
type: long | ||
description: > | ||
Total number of shards. | ||
- name: store.size.bytes | ||
type: long | ||
description: > | ||
Total size of the store in bytes. |
Oops, something went wrong.