Skip to content

Commit

Permalink
[Metricbeat] Update Couchbase module to 6.5 version (elastic#19055)
Browse files Browse the repository at this point in the history
(cherry picked from commit c7f9937)
  • Loading branch information
sayden committed Jun 26, 2020
1 parent 54016b2 commit 8991eda
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 33 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fix compute and pubsub dashboard for googlecloud module. {issue}18962[18962] {pull}18980[18980]
- Fix crash on vsphere module when Host information is not available. {issue}18996[18996] {pull}19078[19078]
- Remove dedot for tag values in aws module. {issue}19112[19112] {pull}19221[19221]
- Stop counterCache only when already started {pull}19103[19103]
- Fix bug incorrect parsing of float numbers as integers in Couchbase module {issue}18949[18949] {pull}19055[19055]

*Packetbeat*

Expand Down Expand Up @@ -318,6 +320,11 @@ from being added to events by default. {pull}18159[18159]
- Release vsphere module as GA. {issue}15798[15798] {pull}17119[17119]
- Remove required for region/zone and make stackdriver a metricset in googlecloud. {issue}16785[16785] {pull}18398[18398]
- Add memory metrics into compute googlecloud. {pull}18802[18802]
- Add new fields to HAProxy module. {issue}18523[18523]
- Add Tomcat overview dashboard {pull}14026[14026]
- Update Couchbase to version 6.5 {issue}18595[18595] {pull}19055[19055]
- Add dashboards for googlecloud load balancing metricset. {pull}18369[18369]
- Add support for v1 consumer API in Cloud Foundry module, use it by default. {pull}19268[19268]

*Packetbeat*

Expand Down
10 changes: 5 additions & 5 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6650,7 +6650,7 @@ format: bytes
Number of disk fetches.


type: long
type: double

--

Expand Down Expand Up @@ -6708,7 +6708,7 @@ format: percent
Number of operations per second.


type: long
type: double

--

Expand Down Expand Up @@ -6805,7 +6805,7 @@ type: long
Memory quota setting for the Index service (Mbyte).


type: long
type: double

--

Expand All @@ -6815,7 +6815,7 @@ type: long
Memory quota setting for the cluster (Mbyte).


type: long
type: double

--

Expand Down Expand Up @@ -6916,7 +6916,7 @@ Couchbase node metrics.
Number of get commands


type: long
type: double

--

Expand Down
2 changes: 1 addition & 1 deletion metricbeat/docs/modules/couchbase.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ servers. The default metricsets are `bucket`, `cluster`, `node`.
[float]
=== Compatibility

The Couchbase module is tested with Couchbase 4.5.1.
The Couchbase module is tested with Couchbase 6.5.1.


[float]
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/couchbase/_meta/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG COUCHBASE_VERSION
FROM couchbase:${COUCHBASE_VERSION}
HEALTHCHECK --interval=1s --retries=90 CMD [ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8091/pools/default/buckets/beer-sample)" -eq "200" ]
HEALTHCHECK --interval=1s --retries=90 CMD [ "$(curl -s -o /dev/null -w ''%{http_code}'' -u Administrator:password http://localhost:8091/pools/default/buckets/beer-sample)" -eq "200" ]
COPY configure-node.sh /opt/couchbase

CMD ["/opt/couchbase/configure-node.sh"]
2 changes: 1 addition & 1 deletion metricbeat/module/couchbase/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ servers. The default metricsets are `bucket`, `cluster`, `node`.
[float]
=== Compatibility

The Couchbase module is tested with Couchbase 4.5.1.
The Couchbase module is tested with Couchbase 6.5.1.


[float]
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/module/couchbase/bucket/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
description: >
Size of user data within buckets of the specified state that are resident in RAM.
- name: disk.fetches
type: long
type: double
description: >
Number of disk fetches.
- name: disk.used.bytes
Expand All @@ -42,7 +42,7 @@
description: >
Percentage of RAM used (for active objects) against the configured bucket size (%).
- name: ops_per_sec
type: long
type: double
description: >
Number of operations per second.
- name: item_count
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/couchbase/bucket/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type BucketQuota struct {

type BucketBasicStats struct {
QuotaPercentUsed float64 `json:"quotaPercentUsed"`
OpsPerSec int64 `json:"opsPerSec"`
OpsPerSec float64 `json:"opsPerSec"`
DiskFetches int64 `json:"diskFetches"`
ItemCount int64 `json:"itemCount"`
DiskUsed int64 `json:"diskUsed"`
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/module/couchbase/cluster/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
description: >
Max bucket count setting.
- name: quota.index_memory.mb
type: long
type: double
description: >
Memory quota setting for the Index service (Mbyte).
- name: quota.memory.mb
type: long
type: double
description: >
Memory quota setting for the cluster (Mbyte).
- name: ram.quota.total.value.bytes
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/module/couchbase/cluster/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ type StorageTotals struct {

type Data struct {
StorageTotals StorageTotals `json:"storageTotals"`
IndexMemoryQuota int64 `json:"indexMemoryQuota"`
MemoryQuota int64 `json:"memoryQuota"`
IndexMemoryQuota float64 `json:"indexMemoryQuota"`
MemoryQuota float64 `json:"memoryQuota"`
RebalanceStatus string `json:"rebalanceStatus"`
RebalanceProgressURI string `json:"rebalanceProgressUri"`
StopRebalanceURI string `json:"stopRebalanceUri"`
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/module/couchbase/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ version: '2.3'

services:
couchbase:
image: docker.elastic.co/integrations-ci/beats-couchbase:${COUCHBASE_VERSION:-4.5.1}-1
image: docker.elastic.co/integrations-ci/beats-couchbase:${COUCHBASE_VERSION:-6.5.1}-1
build:
context: ./_meta
args:
COUCHBASE_VERSION: ${COUCHBASE_VERSION:-4.5.1}
COUCHBASE_VERSION: ${COUCHBASE_VERSION:-6.5.1}
ports:
- 8091
2 changes: 1 addition & 1 deletion metricbeat/module/couchbase/fields.go

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

2 changes: 1 addition & 1 deletion metricbeat/module/couchbase/node/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
release: ga
fields:
- name: cmd_get
type: long
type: double
description: >
Number of get commands
- name: couch.docs.disk_size.bytes
Expand Down
28 changes: 14 additions & 14 deletions metricbeat/module/couchbase/node/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@ type NodeSystemStats struct {
}

type NodeInterestingStats struct {
CmdGet int64 `json:"cmd_get"`
CouchDocsActualDiskSize int64 `json:"couch_docs_actual_disk_size"`
CouchDocsDataSize int64 `json:"couch_docs_data_size"`
CouchSpatialDataSize int64 `json:"couch_spatial_data_size"`
CouchSpatialDiskSize int64 `json:"couch_spatial_disk_size"`
CouchViewsActualDiskSize int64 `json:"couch_views_actual_disk_size"`
CouchViewsDataSize int64 `json:"couch_views_data_size"`
CurrItems int64 `json:"curr_items"`
CurrItemsTot int64 `json:"curr_items_tot"`
EpBgFetched int64 `json:"ep_bg_fetched"`
GetHits int64 `json:"get_hits"`
MemUsed int64 `json:"mem_used"`
Ops int64 `json:"ops"`
VbReplicaCurrItems int64 `json:"vb_replica_curr_items"`
CmdGet float64 `json:"cmd_get"`
CouchDocsActualDiskSize int64 `json:"couch_docs_actual_disk_size"`
CouchDocsDataSize int64 `json:"couch_docs_data_size"`
CouchSpatialDataSize int64 `json:"couch_spatial_data_size"`
CouchSpatialDiskSize int64 `json:"couch_spatial_disk_size"`
CouchViewsActualDiskSize int64 `json:"couch_views_actual_disk_size"`
CouchViewsDataSize int64 `json:"couch_views_data_size"`
CurrItems int64 `json:"curr_items"`
CurrItemsTot int64 `json:"curr_items_tot"`
EpBgFetched int64 `json:"ep_bg_fetched"`
GetHits int64 `json:"get_hits"`
MemUsed int64 `json:"mem_used"`
Ops int64 `json:"ops"`
VbReplicaCurrItems int64 `json:"vb_replica_curr_items"`
}

type Node struct {
Expand Down
3 changes: 3 additions & 0 deletions metricbeat/module/couchbase/test_couchbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ def test_couchbase(self, metricset):
couchbase metricsets tests
"""
self.check_metricset("couchbase", metricset, self.get_hosts(), self.FIELDS)

def get_hosts(self):
return ["http://Administrator:password@" + self.compose_host()]

0 comments on commit 8991eda

Please sign in to comment.