-
Notifications
You must be signed in to change notification settings - Fork 5k
[Metricbeat] Redis Enterprise: add "node" and "proxy" metricsets #16482
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
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
dd6399a
Prepare redis-enterprise docker image
7091a29
All existing tests are passing
7411396
Add metricsets - node and proxy
3ded196
Fix: system tests
79a4b88
Fix: set secondary source
aea45fa
Fix: mage check
7944c73
Merge branch 'master' into 15269-redis-node-proxy
d0ef810
Fix: typo
0d88674
Try: increase timeout
08c0b6b
Shorten timeout
bb7e861
Fix
1710d20
Fix
8999ed9
Fix: use proper port
6fb8360
Fix: use proper port
792df87
Fix: dashboard setup issue
79316ee
OSX: increase limit of open files
a8f0673
Fix: skip integration tests
b436634
Merge branch 'master' into 15269-redis-node-proxy
76bc109
Use metrics_filters
f96dd2f
Fix: skip 'up' metric
34b5fcb
Container inspection
666e6eb
Remove enterprise code
e848ed7
Add redisenterprise to x-pack/metricbeat
99c1832
Fix: typo
5836744
Fix: rename to redisenterprise
0013324
Update docs
65ea1b5
Fix
44b2ce4
Use capability: SYS_RESOURCE
80382f4
mage check
83bf0e3
Merge branch 'master' into 15269-redis-node-proxy
806a89b
Exclude 'up'
514cec0
Adjust source after review
30f7afc
Fix
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.