couchdbreceiver

package module
v0.64.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 21 Imported by: 7

README

CouchDB Receiver

Status
Stability beta
Supported pipeline types metrics
Distributions contrib

This receiver fetches stats from a couchdb server using the /_node/{node-name}/_stats/couchdb endpoint.

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: $COUCHDB_PASSWORD
    collection_interval: 60s

The full list of settings exposed for this receiver are documented here with detailed sample configurations here. 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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ReceiverFactory

NewFactory creates the couchdbreceiver factory

Types

type Config

type Config struct {
	scraperhelper.ScraperControllerSettings `mapstructure:",squash"`
	confighttp.HTTPClientSettings           `mapstructure:",squash"`
	Metrics                                 metadata.MetricsSettings `mapstructure:"metrics"`
	Username                                string                   `mapstructure:"username"`
	Password                                string                   `mapstructure:"password"`
}

Config defines the configuration for the various elements of the receiver agent.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate validates missing and invalid configuration fields.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL