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

[Metricbeat] Move Zookeeper/connection to GA #17043

Merged
merged 2 commits into from
Mar 17, 2020
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 @@ -237,6 +237,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Add Prometheus remote write endpoint {pull}16609[16609]
- Release STAN module as GA. {pull}16980[16980]
- Release ActiveMQ module as GA. {issue}17047[17047] {pull}17049[17049]
- Release Zookeeper/connection module as GA. {issue}14281[14281] {pull}17043[17043]

*Packetbeat*

Expand Down
2 changes: 1 addition & 1 deletion metricbeat/docs/modules/zookeeper.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This file is generated! See scripts/mage/docs_collector.go
== ZooKeeper module

The ZooKeeper module fetches statistics from the ZooKeeper service. The default
metricset is `mntr` and `server`.
metricsets are `mntr` and `server`.

[float]
=== Compatibility
Expand Down
2 changes: 0 additions & 2 deletions metricbeat/docs/modules/zookeeper/connection.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ This file is generated! See scripts/mage/docs_collector.go
[[metricbeat-metricset-zookeeper-connection]]
=== ZooKeeper connection metricset

beta[]

include::../../../module/zookeeper/connection/_meta/docs.asciidoc[]


Expand Down
2 changes: 1 addition & 1 deletion metricbeat/docs/modules_list.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ This file is generated! See scripts/mage/docs_collector.go
.2+| .2+| |<<metricbeat-metricset-windows-perfmon,perfmon>> beta[]
|<<metricbeat-metricset-windows-service,service>>
|<<metricbeat-module-zookeeper,ZooKeeper>> |image:./images/icon-yes.png[Prebuilt dashboards are available] |
.3+| .3+| |<<metricbeat-metricset-zookeeper-connection,connection>> beta[]
.3+| .3+| |<<metricbeat-metricset-zookeeper-connection,connection>>
|<<metricbeat-metricset-zookeeper-mntr,mntr>>
|<<metricbeat-metricset-zookeeper-server,server>>
|===
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/zookeeper/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The ZooKeeper module fetches statistics from the ZooKeeper service. The default
metricset is `mntr` and `server`.
metricsets are `mntr` and `server`.

[float]
=== Compatibility
Expand Down
7 changes: 6 additions & 1 deletion metricbeat/module/zookeeper/connection/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
This is the 'connection' metricset of the module zookeeper.
`connection` Metricset fetches the data returned by the `cons` admin keyword. It exposes the following metrics:

* `zookeeper.connection.interest_ops`: Interest ops
* `zookeeper.connection.queued`: Queued connections
* `zookeeper.connection.received`: Received connections
* `zookeeper.connection.sent`: Connections sent
2 changes: 1 addition & 1 deletion metricbeat/module/zookeeper/connection/_meta/fields.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- name: connection
type: group
release: beta
release: ga
description: >
connections
fields:
Expand Down
3 changes: 0 additions & 3 deletions metricbeat/module/zookeeper/connection/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package connection
import (
"github.com/pkg/errors"

"github.com/elastic/beats/v7/libbeat/common/cfgwarn"
"github.com/elastic/beats/v7/metricbeat/mb"
"github.com/elastic/beats/v7/metricbeat/mb/parse"
"github.com/elastic/beats/v7/metricbeat/module/zookeeper"
Expand All @@ -47,8 +46,6 @@ type MetricSet struct {
// New creates a new instance of the MetricSet. New is responsible for unpacking
// any MetricSet specific configuration options if there are any.
func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
cfgwarn.Beta("The zookeeper connection metricset is beta.")

config := struct{}{}
if err := base.Module().UnpackConfig(&config); err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/zookeeper/fields.go

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

22 changes: 21 additions & 1 deletion metricbeat/module/zookeeper/mntr/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
The ZooKeeper `mntr` metricset collects ZooKeeper monitoring statistics.
`mntr` Metricset fetches the data returned by the `mntr` admin keyword. It exposes the following metrics:

* `zookeeper.mntr.hostname`: ZooKeeper hostname.
* `zookeeper.mntr.approximate_data_size`: Approximate size of ZooKeeper data.
* `zookeeper.mntr.latency.avg`: Average latency between ensemble hosts in milliseconds.
* `zookeeper.mntr.ephemerals_count`: Number of ephemeral znodes.
* `zookeeper.mntr.followers`: Number of followers seen by the current host.
* `zookeeper.mntr.max_file_descriptor_count`: Maximum number of file descriptors allowed for the ZooKeeper process.
* `zookeeper.mntr.latency.max`: Maximum latency in milliseconds.
* `zookeeper.mntr.latency.min`: Minimum latency in milliseconds.
* `zookeeper.mntr.num_alive_connections`: Number of connections to ZooKeeper that are currently alive.
* `zookeeper.mntr.open_file_descriptor_count`: Number of file descriptors open by the ZooKeeper process.
* `zookeeper.mntr.outstanding_requests`: Number of outstanding requests that need to be processed by the cluster.
* `zookeeper.mntr.packets.received`: Number of ZooKeeper network packets received.
* `zookeeper.mntr.packets.sent`: Number of ZooKeeper network packets sent.
* `zookeeper.mntr.pending_syncs`: Number of pending syncs to carry out to ZooKeeper ensemble followers.
* `zookeeper.mntr.server_state`: Role in the ZooKeeper ensemble.
* `zookeeper.mntr.synced_followers`: Number of synced followers reported when a node server_state is leader.
* `zookeeper.mntr.version`: Version and build string reported.
* `zookeeper.mntr.watch_count`: Number of watches currently set on the local ZooKeeper process.
* `zookeeper.mntr.znode_count`: Number of znodes reported by the local ZooKeeper process.
26 changes: 13 additions & 13 deletions metricbeat/module/zookeeper/server/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
@@ -1,15 +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
* `zookeeper.server.connections`: Connections established by the server
* `zookeeper.server.latency.avg`: Average latency of the server
* `zookeeper.server.latency.max`: Max latency reached by the server
* `zookeeper.server.latency.min`: Minimum latency that has been reached by the server
* `zookeeper.server.mode`: Server mode
* `zookeeper.server.node_count`: Total number of nodes
* `zookeeper.server.outstanding`: Outstanding
* `zookeeper.server.received`: Received requests to the server
* `zookeeper.server.sent`: Requests sent by the server
* `zookeeper.server.version_date`: Date of the Zookeeper release in use
* `zookeeper.server.zxid`: Original value of the Zookeeper transaction ID
* `zookeeper.server.count`: Total transactions of the leader in epoch
* `zookeeper.server.epoch`: Epoch value of the Zookeeper transaction ID