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.
[Metricbeat] Add new module for Redis Enterprise (elastic#16482)
Add metricsets: node, proxy (cherry picked from commit 96bebe4)
- Loading branch information
Showing
46 changed files
with
1,220 additions
and
6 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
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,62 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
|
||
[[metricbeat-module-redisenterprise]] | ||
[role="xpack"] | ||
== Redis Enterprise module | ||
|
||
beta[] | ||
|
||
This module periodically fetches metrics from https://redislabs.com/redis-enterprise/[Redis Enterprise Software]. | ||
|
||
The defaut metricsets are `node` and `proxy`. | ||
|
||
[float] | ||
=== Module-specific configuration notes | ||
|
||
The Redis module has these additional config options: | ||
|
||
*`hosts`*:: URLs that are used to connect to Redis. | ||
URL format: | ||
https://HOST[:PORT] | ||
|
||
[float] | ||
=== Compatibility | ||
|
||
The metricsets `node` and `proxy` are compatible with Redis Enterprise Software (RES). There were tested with RES | ||
5.4.10-22 and are expected to work with all versions >= 5.0.2. | ||
|
||
|
||
[float] | ||
=== Example configuration | ||
|
||
The Redis Enterprise module supports the standard configuration options that are described | ||
in <<configuration-metricbeat>>. Here is an example configuration: | ||
|
||
[source,yaml] | ||
---- | ||
metricbeat.modules: | ||
- module: redisenterprise | ||
metricsets: | ||
- node | ||
- proxy | ||
period: 1m | ||
# Metrics endpoint | ||
hosts: ["https://127.0.0.1:8070/"] | ||
---- | ||
|
||
[float] | ||
=== Metricsets | ||
|
||
The following metricsets are available: | ||
|
||
* <<metricbeat-metricset-redisenterprise-node,node>> | ||
|
||
* <<metricbeat-metricset-redisenterprise-proxy,proxy>> | ||
|
||
include::redisenterprise/node.asciidoc[] | ||
|
||
include::redisenterprise/proxy.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,24 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
|
||
[[metricbeat-metricset-redisenterprise-node]] | ||
=== Redis Enterprise node metricset | ||
|
||
beta[] | ||
|
||
include::../../../../x-pack/metricbeat/module/redisenterprise/node/_meta/docs.asciidoc[] | ||
|
||
This is a default metricset. If the host module is unconfigured, this metricset is enabled by default. | ||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-redisenterprise,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../../x-pack/metricbeat/module/redisenterprise/node/_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
|
||
[[metricbeat-metricset-redisenterprise-proxy]] | ||
=== Redis Enterprise proxy metricset | ||
|
||
beta[] | ||
|
||
include::../../../../x-pack/metricbeat/module/redisenterprise/proxy/_meta/docs.asciidoc[] | ||
|
||
This is a default metricset. If the host module is unconfigured, this metricset is enabled by default. | ||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-redisenterprise,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../../x-pack/metricbeat/module/redisenterprise/proxy/_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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ services: | |
context: ./_meta | ||
args: | ||
REDIS_VERSION: ${REDIS_VERSION:-3.2.12} | ||
privileged: true | ||
ports: | ||
- 6379 |
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,3 +1,4 @@ | ||
name: redis | ||
dashboards: | ||
- id: AV4YjZ5pux-M-tCAunxK | ||
file: Metricbeat-redis-overview.json | ||
- id: AV4YjZ5pux-M-tCAunxK | ||
file: Metricbeat-redis-overview.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ARG REDISENTERPRISE_VERSION | ||
FROM redislabs/redis:${REDISENTERPRISE_VERSION} | ||
|
||
# Wait for the health endpoint to have monitors information | ||
ADD healthcheck.sh / | ||
HEALTHCHECK --interval=1s --retries=300 CMD /healthcheck.sh |
8 changes: 8 additions & 0 deletions
8
x-pack/metricbeat/module/redisenterprise/_meta/config.reference.yml
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,8 @@ | ||
- module: redisenterprise | ||
metricsets: | ||
- node | ||
- proxy | ||
period: 1m | ||
|
||
# Metrics endpoint | ||
hosts: ["https://127.0.0.1:8070/"] |
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,8 @@ | ||
- module: redisenterprise | ||
metricsets: | ||
- node | ||
- proxy | ||
period: 1m | ||
|
||
# Metrics endpoint | ||
hosts: ["https://127.0.0.1:8070/"] |
18 changes: 18 additions & 0 deletions
18
x-pack/metricbeat/module/redisenterprise/_meta/docs.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,18 @@ | ||
This module periodically fetches metrics from https://redislabs.com/redis-enterprise/[Redis Enterprise Software]. | ||
|
||
The defaut metricsets are `node` and `proxy`. | ||
|
||
[float] | ||
=== Module-specific configuration notes | ||
|
||
The Redis module has these additional config options: | ||
|
||
*`hosts`*:: URLs that are used to connect to Redis. | ||
URL format: | ||
https://HOST[:PORT] | ||
|
||
[float] | ||
=== Compatibility | ||
|
||
The metricsets `node` and `proxy` are compatible with Redis Enterprise Software (RES). There were tested with RES | ||
5.4.10-22 and are expected to work with all versions >= 5.0.2. |
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,11 @@ | ||
- key: redisenterprise | ||
title: "Redis Enterprise" | ||
description: > | ||
Redis metrics collected from Redis Enterprise Server. | ||
release: beta | ||
fields: | ||
- name: redisenterprise | ||
type: group | ||
description: > | ||
`redisenterprise` contains the information and statistics from Redis Enterprise Server. | ||
fields: |
Oops, something went wrong.