forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server Metricset for Zookeeper Metricbeat module (elastic#10341)
(cherry picked from commit 3895a23) # Conflicts: # metricbeat/module/zookeeper/fields.go # x-pack/metricbeat/module/mssql/performance/data_integration_test.go
- Loading branch information
Showing
22 changed files
with
816 additions
and
8 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
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,21 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-zookeeper-server]] | ||
=== ZooKeeper server metricset | ||
|
||
include::../../../module/zookeeper/server/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-zookeeper,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/zookeeper/server/_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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
- module: zookeeper | ||
enabled: true | ||
metricsets: ["mntr"] | ||
metricsets: ["mntr", "server"] | ||
period: 10s | ||
hosts: ["localhost:2181"] |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
- module: zookeeper | ||
#metricsets: | ||
# - mntr | ||
# - server | ||
period: 10s | ||
hosts: ["localhost:2181"] |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,39 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"agent": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
}, | ||
"event": { | ||
"dataset": "zookeeper.server", | ||
"duration": 115000, | ||
"module": "zookeeper" | ||
}, | ||
"metricset": { | ||
"name": "server" | ||
}, | ||
"service": { | ||
"address": "localhost:2181", | ||
"type": "zookeeper", | ||
"version": "3.4.13-2d71af4dbe22557fda74f9a9b4309b15a7487f03" | ||
}, | ||
"zookeeper": { | ||
"server": { | ||
"connections": 1, | ||
"count": 0, | ||
"epoch": 0, | ||
"latency": { | ||
"avg": 0, | ||
"max": 0, | ||
"min": 0 | ||
}, | ||
"mode": "standalone", | ||
"node_count": 4, | ||
"outstanding": 0, | ||
"received": 38, | ||
"sent": 37, | ||
"version_date": "06/29/2018 04:05 GMT", | ||
"zxid": "0x0" | ||
} | ||
} | ||
} |
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,15 @@ | ||
`server` Metricset fetches the data returned by the `srvr` admin keyword. | ||
|
||
* *connections*: Connections established by the server | ||
* *latency.avg*: Average latency of the server | ||
* *latency.max*: Max latency reached by the server | ||
* *latency.min*: Minimum latency that has been reached by the server | ||
* *mode*: Server mode | ||
* *node_count*: Total number of nodes | ||
* *outstanding*: Outstanding | ||
* *received*: Received requests to the server | ||
* *sent*: Requests sent by the server | ||
* *version_date*: Date of the Zookeeper release in use | ||
* *zxid*: Original value of the Zookeeper transaction ID | ||
* *count*: Total transactions of the leader in epoch | ||
* *epoch*: Epoch value of the Zookeeper transaction ID |
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,47 @@ | ||
- name: server | ||
type: group | ||
description: 'server contains the metrics reported by the four-letter `srvr` command.' | ||
release: ga | ||
fields: | ||
- name: connections | ||
type: long | ||
description: Connections established by the server | ||
- name: latency | ||
type: group | ||
fields: | ||
- name: avg | ||
type: long | ||
description: Average latency of the server | ||
- name: max | ||
type: long | ||
description: Max latency reached by the server | ||
- name: min | ||
type: long | ||
description: Minimum latency that has been reached by the server | ||
- name: mode | ||
type: keyword | ||
description: Server mode | ||
- name: node_count | ||
type: long | ||
description: Total number of nodes | ||
- name: outstanding | ||
type: long | ||
description: Outstanding | ||
- name: received | ||
type: long | ||
description: Received requests to the server | ||
- name: sent | ||
type: long | ||
description: Requests sent by the server | ||
- name: version_date | ||
type: date | ||
description: Date of the Zookeeper release in use | ||
- name: zxid | ||
type: keyword | ||
description: Original value of the Zookeeper transaction ID | ||
- name: count | ||
type: long | ||
description: Total transactions of the leader in epoch | ||
- name: epoch | ||
type: long | ||
description: Epoch value of the Zookeeper transaction ID |
Oops, something went wrong.