Skip to main content

Couchdb Receiver

Status Available in: contrib Maintainers: @antonblock Source: opentelemetry-collector-contrib

Supported Telemetry

Metrics

Overview

Prerequisites

This receiver supports CouchDB versions 2.3+ and 3.1+.

Configuration

The following settings are required:
  • username
  • password
The following settings are optional:
  • endpoint (default: http://localhost:5984): The URL of the CouchDB endpoint
  • collection_interval (default = 60s): This receiver collects metrics on an interval. This value must be a string readable by Golang’s time.ParseDuration. Valid time units are ns, us (or µs), ms, s, m, h.

Example Configuration

receivers:
  couchdb:
    endpoint: http://localhost:5984
    username: otelu
    password: ${env:COUCHDB_PASSWORD}
    collection_interval: 60s
The full list of settings exposed for this receiver are documented in config.go with detailed sample configurations in testdata/config.yaml. TLS config is documented further under the opentelemetry collector’s configtls package.

Metrics

Details about the metrics produced by this receiver can be found in metadata.yaml

Metrics

Metric NameDescriptionUnitTypeAttributes
✅ couchdb.average_request_timeThe average duration of a served request.msGauge
✅ couchdb.database.openThe number of open databases.{databases}UpDownCounter
✅ couchdb.database.operationsThe number of database operations.{operations}Counteroperation
✅ couchdb.file_descriptor.openThe number of open file descriptors.{files}UpDownCounter
✅ couchdb.httpd.bulk_requestsThe number of bulk requests.{requests}Counter
✅ couchdb.httpd.requestsThe number of HTTP requests by method.{requests}Counterhttp.method
✅ couchdb.httpd.responsesThe number of each HTTP status code.{responses}Counterhttp.status_code
✅ couchdb.httpd.viewsThe number of views read.{views}Counterview

Attributes

Attribute NameDescriptionTypeValues
http.methodAn HTTP request method.stringCOPY, DELETE, GET, HEAD, OPTIONS, POST, PUT
http.status_codeAn HTTP status code.string
operationThe operation type.stringwrites, reads
viewThe view type.stringtemporary_view_reads, view_reads

Resource Attributes

Attribute NameDescriptionTypeEnabled
couchdb.node.nameThe name of the node.string✅

Configuration

Example Configuration

couchdb:
  endpoint: http://localhost:5984
  username: otelu
  password: ${env:COUCHDB_PASSWORD}
  collection_interval: 60s

Last generated: 2026-04-13