import themen from ‘theme/styles/styled-colors’; import * as theme from ‘react-syntax-highlighter/dist/esm/styles/hljs’; import SyntaxHighlighter from ‘react-syntax-highlighter’;
This bridge connects to a Couchbase cluster using DCP protocol and performs real-time analysis and metadata extraction from stored on the cluster documents. The extracted metadata is then sent to Atlas via its REST API
The bridge uses environment variables for configuration.
Environment variable | Description | Default Value |
---|---|---|
ATLAS_URL | Atlas REST API url | “http://localhost:21000” |
ATLAS_USERNAME | Atlas REST API username | “admin” |
ATLAS_PASSWORD | Atlas REST API password | “admin” |
Environment variable | Description | Default Value |
---|---|---|
CB_CLUSTER | Couchbase Cluster connection string | “couchbase://localhost” |
CB_USERNAME | Couchbase Cluster username | “Administrator” |
CB_PASSWORD | Couchbase Cluster password | “password” |
CB_ENABLE_TLS | Use TLS | false |
CB_BUCKET | Couchbase bucket to monitor | “default” |
CB_COLLECTIONS | Comma-separated list of collections to monitor with each collection listed as . | |
DCP_PORT | DCP port to use | 11210 |
DCP_FIELD_THRESHOLD | A threshold that indicates in what percentage of analyzed messages per collection a field must appear before it is sent to Atlas | 0 |
DCP_SAMPLE_RATIO | Percentage of DCP messages to be analyzed in form of a short between 0 and 1. | 1 |
In the following commands, replace <VARNAME>
and <version>
with appropriate values.
export <VARNAME>=...
or prefix them before the next command.java -cp couchbase-bridge-<version>.jar com.couchbase.atlas.connector.CouchbaseHook
.couchbase_cluster
, couchbase_bucket
objects were created on your Atlas cluster.couchbase_scope
, couchbase_collection
, and couchbase_field
objects were created on your Atlas cluster.