Loading

Couchbase Integration

<div class="condensed-table">
| | |
| --- | --- |
| Version | 1.8.0 (View all) |
| Compatible Kibana version(s) | 8.13.0 or higher |
| Supported Serverless project types
What’s this? | Security
Observability |
| Subscription level
What’s this? | Basic |
| Level of support
What’s this? | Elastic |

</div>

The Couchbase integration allows you to monitor your Couchbase instance. Couchbase Server is an open-source, distributed multi-model NoSQL document-oriented database software package optimized for interactive applications.

Use the Couchbase integration to collect metrics related to the bucket, cluster, node, and sync gateway. Then visualize that data in Kibana, create alerts to notify you if something goes wrong, and reference logs when troubleshooting an issue.

For example, you could use the data from this integration to know when there are more than some number of failed authentication requests for a single piece of content in a given time period. You could also use the data to troubleshoot the underlying issue by looking at the documents ingested in Elasticsearch.

The Couchbase integration collects metrics data.

Metrics give you insight into the state of the Couchbase. Metrics data streams collected by the Couchbase integration include Bucket, Cluster, Cache, Couchbase Lite Replication, Database, Delta Sync, Eventing, GSI views, Import, Index, Node, Query, Resource Utilization, Security, and XDCR metrics from Couchbase so that the user could monitor and troubleshoot the performance of the Couchbase instances.

This integration uses:

  • http metricbeat module to collect bucket, cluster, eventing, index, query, and xdcr metrics.
  • httpjson filebeat input to collect node metrics.
  • prometheus metricbeat module to collect cache, cbl_replication, database_stats, delta_sync, gsi_views, import, resource, and security metrics.

Note:

  • For Couchbase cluster setup, there is an ideal scenario of a single host with administrator access for the entire cluster to collect metrics. Providing multiple hosts from the same cluster might lead to data duplication. In the case of multiple clusters, adding a new integration to collect data from different cluster hosts is a good option.
  • For Couchbase node metrics, the metrics would be fetched from the first host only and the rest of the hosts will be ignored.

This integration has been tested against Couchbase v6.6, v7.0, and v7.1.

You need Elasticsearch for storing and searching your data and Kibana for visualizing and managing it. You can use our hosted Elasticsearch Service on Elastic Cloud, which is recommended, or self-manage the Elastic Stack on your own hardware.

In order to ingest data from Couchbase, you must know the host(s) and the administrator credentials for the Couchbase instance(s).

Host Configuration Format: http[s]://[username:password@]hostname[:port]

Example Host Configuration: http://Administrator:password@localhost:8091

Note

To mask the password in the Hosts connection string, remove the username and password from the string. Then, set up the Hosts field with only the host address and port (localhost:5984 in the example) and any additional connection parameters. Finally, use the username and password fields under advanced options for configuration.

In order to collect data using Sync Gateway, follow the steps given below:

  • Download and configure Sync Gateway
  • Download and configure Sync Gateway Promethus Exporter and provide Sync Gateway Host using --sgw.url flag while running the Exporter App
  • Example configuration: --sgw.url=http://sgw:4985

For Couchbase node metrics, the metrics would be fetched from the first host only and the rest of the hosts will be ignored.

This is the bucket data stream. A bucket is a logical container for a related set of items such as key-value pairs or documents.

ECS Field Reference

Please refer to the following document for detailed information on ECS fields.

This is the cache data stream. The cache is hardware or software that is used to store something, usually data, temporarily in a computing environment. These metrics are related to caching in Couchbase.

ECS Field Reference

Please refer to the following document for detailed information on ECS fields.

This is the cluster data stream. A cluster is a collection of nodes that are accessed and managed as a single group. Each node is an equal partner in orchestrating the cluster to provide facilities such as operational information (monitoring) or managing cluster membership of nodes and the health of nodes.

ECS Field Reference

Please refer to the following document for detailed information on ECS fields.

This is the cbl_replication data stream.

CBL Replication push is a process by which clients upload database changes from the local source database to the remote (server) target database.

CBL Replication pull is a process by which clients download database changes from the remote (server) source database to the local target database.

ECS Field Reference

Please refer to the following document for detailed information on ECS fields.

This is the database_stats data stream. Database statistics provides stats relative to the database like document writes, read and received.

ECS Field Reference

Please refer to the following document for detailed information on ECS fields.

This is the miscellaneous data stream.

The Delta Sync provides the ability to replicate only those parts of a Couchbase Mobile document that have changed.

The import is processed with an admin user context in the Sync Function, similar to writes made through the Sync Gateway Admin API.

The Security metrics give the metrics related to authentication requests such as number of authentication failures and number of access errors.

Global Secondary Indexes (GSI) support queries made by the Query Service.

ECS Field Reference

Please refer to the following document for detailed information on ECS fields.

This is the resource data stream. The Resource Utilization metrics are related to MemStats records statistics about the memory allocator.

ECS Field Reference

Please refer to the following document for detailed information on ECS fields.

This is the node data stream. A Couchbase Server node is a physical or virtual machine that hosts a single instance of Couchbase Server.

ECS Field Reference

Please refer to the following document for detailed information on ECS fields.

This is the query_index data stream. The Query service enables you to issue queries to extract data from the Couchbase server. The Index collects statistics provided by the Index service.

ECS Field Reference

Please refer to the following document for detailed information on ECS fields.

This is the xdcr data stream. Cross Data Center Replication (XDCR) replicates data between a source bucket and a target bucket. XDCR collects metrics related to statistics of XDCR. Metrics can be fetched from multiple buckets.

Note

It is preferable to add a new integration if user requires to fetch metrics from multiple hosts for XDCR data stream.

ECS Field Reference

Please refer to the following document for detailed information on ECS fields.