-
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.
[Metricbeat] Add Couchbase's Sync Gateway module (#25599)
- Loading branch information
Showing
43 changed files
with
4,538 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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,57 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
|
||
[[metricbeat-module-syncgateway]] | ||
[role="xpack"] | ||
== SyncGateway module | ||
|
||
beta[] | ||
|
||
Sync Gateway is the synchronization server in a Couchbase for Mobile and Edge deployment. This metricset allows to monitor a Sync Gateway instance by using its REST API. | ||
|
||
Sync Gateway access `[host]:[port]/_expvar` on Sync Gateway nodes to fetch metrics data, ensure that the URL is accessible from the host where Metricbeat is running. | ||
|
||
|
||
[float] | ||
=== Example configuration | ||
|
||
The SyncGateway module supports the standard configuration options that are described | ||
in <<configuration-metricbeat>>. Here is an example configuration: | ||
|
||
[source,yaml] | ||
---- | ||
metricbeat.modules: | ||
- module: syncgateway | ||
metricsets: | ||
- db | ||
# - memory | ||
# - replication | ||
# - resources | ||
period: 10s | ||
# SyncGateway hosts | ||
hosts: ["127.0.0.1:4985"] | ||
---- | ||
|
||
[float] | ||
=== Metricsets | ||
|
||
The following metricsets are available: | ||
|
||
* <<metricbeat-metricset-syncgateway-db,db>> | ||
|
||
* <<metricbeat-metricset-syncgateway-memory,memory>> | ||
|
||
* <<metricbeat-metricset-syncgateway-replication,replication>> | ||
|
||
* <<metricbeat-metricset-syncgateway-resources,resources>> | ||
|
||
include::syncgateway/db.asciidoc[] | ||
|
||
include::syncgateway/memory.asciidoc[] | ||
|
||
include::syncgateway/replication.asciidoc[] | ||
|
||
include::syncgateway/resources.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,25 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
|
||
[[metricbeat-metricset-syncgateway-db]] | ||
[role="xpack"] | ||
=== SyncGateway db metricset | ||
|
||
beta[] | ||
|
||
include::../../../../x-pack/metricbeat/module/syncgateway/db/_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-syncgateway,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../../x-pack/metricbeat/module/syncgateway/db/_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-syncgateway-memory]] | ||
[role="xpack"] | ||
=== SyncGateway memory metricset | ||
|
||
beta[] | ||
|
||
include::../../../../x-pack/metricbeat/module/syncgateway/memory/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-syncgateway,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../../x-pack/metricbeat/module/syncgateway/memory/_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,18 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
|
||
[[metricbeat-metricset-syncgateway-replication]] | ||
[role="xpack"] | ||
=== SyncGateway replication metricset | ||
|
||
beta[] | ||
|
||
include::../../../../x-pack/metricbeat/module/syncgateway/replication/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-syncgateway,exported fields>> section. | ||
|
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,25 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
|
||
[[metricbeat-metricset-syncgateway-resources]] | ||
[role="xpack"] | ||
=== SyncGateway resources metricset | ||
|
||
beta[] | ||
|
||
include::../../../../x-pack/metricbeat/module/syncgateway/resources/_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-syncgateway,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../../x-pack/metricbeat/module/syncgateway/resources/_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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- module: syncgateway | ||
metricsets: | ||
- db | ||
# - memory | ||
# - replication | ||
# - resources | ||
period: 10s | ||
|
||
# SyncGateway hosts | ||
hosts: ["127.0.0.1:4985"] |
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 @@ | ||
Sync Gateway is the synchronization server in a Couchbase for Mobile and Edge deployment. This metricset allows to monitor a Sync Gateway instance by using its REST API. | ||
|
||
Sync Gateway access `[host]:[port]/_expvar` on Sync Gateway nodes to fetch metrics data, ensure that the URL is accessible from the host where Metricbeat is running. |
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,10 @@ | ||
- key: syncgateway | ||
title: "SyncGateway" | ||
description: SyncGateway metrics | ||
release: beta | ||
fields: | ||
- name: syncgateway | ||
type: group | ||
description: > | ||
`syncgateway` contains the information and statistics from SyncGateway. | ||
fields: |
76 changes: 76 additions & 0 deletions
76
x-pack/metricbeat/module/syncgateway/_meta/testdata/config.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,76 @@ | ||
{ | ||
"interface": ":4984", | ||
"logging": { | ||
"log_file_path": "/var/tmp/sglogs", | ||
"console": { | ||
"log_level": "debug", | ||
"log_keys": [ | ||
"*" | ||
] | ||
}, | ||
"error": { | ||
"enabled": true, | ||
"rotation": { | ||
"max_size": 20, | ||
"max_age": 180 | ||
} | ||
}, | ||
"warn": { | ||
"enabled": true, | ||
"rotation": { | ||
"max_size": 20, | ||
"max_age": 90 | ||
} | ||
}, | ||
"info": { | ||
"enabled": false | ||
}, | ||
"debug": { | ||
"enabled": false | ||
} | ||
}, | ||
"databases": { | ||
"beer-sample": { | ||
"import_docs": "continuous", | ||
"enable_shared_bucket_access": true, | ||
"bucket": "beer-sample", | ||
"server": "http://172.17.0.2:8091", | ||
"username": "admin", | ||
"password": "123456", | ||
"num_index_replicas": 0, | ||
"users": { | ||
"GUEST": { | ||
"disabled": true | ||
}, | ||
"admin": { | ||
"password": "123456", | ||
"admin_channels": [ | ||
"*" | ||
] | ||
} | ||
}, | ||
"revs_limit": 20 | ||
}, | ||
"travel-sample": { | ||
"import_docs": "continuous", | ||
"enable_shared_bucket_access": true, | ||
"bucket": "travel-sample", | ||
"server": "http://172.17.0.2:8091", | ||
"username": "admin", | ||
"password": "123456", | ||
"num_index_replicas": 0, | ||
"users": { | ||
"GUEST": { | ||
"disabled": true | ||
}, | ||
"admin": { | ||
"password": "123456", | ||
"admin_channels": [ | ||
"*" | ||
] | ||
} | ||
}, | ||
"revs_limit": 20 | ||
} | ||
} | ||
} |
Oops, something went wrong.