couchbase

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 13 Imported by: 18

README

Couchbase Input Plugin

Couchbase is a distributed NoSQL database. This plugin gets metrics for each Couchbase node, as well as detailed metrics for each bucket, for a given couchbase server.

Global configuration options

In addition to the plugin-specific configuration settings, plugins support additional global and plugin configuration settings. These settings are used to modify metrics, tags, and field or create aliases and configure ordering, etc. See the CONFIGURATION.md for more details.

Configuration

# Read per-node and per-bucket metrics from Couchbase
[[inputs.couchbase]]
  ## specify servers via a url matching:
  ##  [protocol://][:password]@address[:port]
  ##  e.g.
  ##    http://couchbase-0.example.com/
  ##    http://admin:secret@couchbase-0.example.com:8091/
  ##
  ## If no servers are specified, then localhost is used as the host.
  ## If no protocol is specified, HTTP is used.
  ## If no port is specified, 8091 is used.
  servers = ["http://localhost:8091"]

  ## Filter bucket fields to include only here.
  # bucket_stats_included = ["quota_percent_used", "ops_per_sec", "disk_fetches", "item_count", "disk_used", "data_used", "mem_used"]

  ## Optional TLS Config
  # tls_ca = "/etc/telegraf/ca.pem"
  # tls_cert = "/etc/telegraf/cert.pem"
  # tls_key = "/etc/telegraf/key.pem"
  ## Use TLS but skip chain & host verification (defaults to false)
  ## If set to false, tls_cert and tls_key are required
  # insecure_skip_verify = false

  ## Whether to collect cluster-wide bucket statistics
  ## It is recommended to disable this in favor of node_stats
  ## to get a better view of the cluster.
  # cluster_bucket_stats = true

  ## Whether to collect bucket stats for each individual node
  # node_bucket_stats = false

  ## List of additional stats to collect, choose from:
  ##  * autofailover
  # additional_stats = []

Metrics

couchbase_node

Tags:

  • cluster: sanitized string from servers configuration field e.g.: http://user:password@couchbase-0.example.com:8091/endpoint becomes http://couchbase-0.example.com:8091/endpoint
  • hostname: Couchbase's name for the node and port, e.g., 172.16.10.187:8091

Fields:

  • memory_free (unit: bytes, example: 23181365248.0)
  • memory_total (unit: bytes, example: 64424656896.0)
couchbase_autofailover

Tags:

  • cluster: sanitized string from servers configuration field e.g.: http://user:password@couchbase-0.example.com:8091/endpoint becomes http://couchbase-0.example.com:8091/endpoint

Fields:

  • count (unit: int, example: 1)
  • enabled (unit: bool, example: true)
  • max_count (unit: int, example: 2)
  • timeout (unit: int, example: 72)
couchbase_bucket and couchbase_node_bucket

Tags:

  • cluster: whatever you called it in servers in the configuration, e.g. http://couchbase-0.example.com/
  • bucket: the name of the couchbase bucket, e.g., blastro-df
  • hostname: the hostname of the node the bucket metrics were collected from, e.g. 172.16.10.187:8091 (only present in couchbase_node_bucket)

Default bucket fields:

  • quota_percent_used (unit: percent, example: 68.85424936294555)
  • ops_per_sec (unit: count, example: 5686.789686789687)
  • disk_fetches (unit: count, example: 0.0)
  • item_count (unit: count, example: 943239752.0)
  • disk_used (unit: bytes, example: 409178772321.0)
  • data_used (unit: bytes, example: 212179309111.0)
  • mem_used (unit: bytes, example: 202156957464.0)

Additional fields that can be configured with the bucket_stats_included option:

  • couch_total_disk_size
  • couch_docs_fragmentation
  • couch_views_fragmentation
  • hit_ratio
  • ep_cache_miss_rate
  • ep_resident_items_rate
  • vb_avg_active_queue_age
  • vb_avg_replica_queue_age
  • vb_avg_pending_queue_age
  • vb_avg_total_queue_age
  • vb_active_resident_items_ratio
  • vb_replica_resident_items_ratio
  • vb_pending_resident_items_ratio
  • avg_disk_update_time
  • avg_disk_commit_time
  • avg_bg_wait_time
  • avg_active_timestamp_drift
  • avg_replica_timestamp_drift
  • ep_dcp_views+indexes_count
  • ep_dcp_views+indexes_items_remaining
  • ep_dcp_views+indexes_producer_count
  • ep_dcp_views+indexes_total_backlog_size
  • ep_dcp_views+indexes_items_sent
  • ep_dcp_views+indexes_total_bytes
  • ep_dcp_views+indexes_backoff
  • bg_wait_count
  • bg_wait_total
  • bytes_read
  • bytes_written
  • cas_badval
  • cas_hits
  • cas_misses
  • cmd_get
  • cmd_lookup
  • cmd_set
  • couch_docs_actual_disk_size
  • couch_docs_data_size
  • couch_docs_disk_size
  • couch_spatial_data_size
  • couch_spatial_disk_size
  • couch_spatial_ops
  • couch_views_actual_disk_size
  • couch_views_data_size
  • couch_views_disk_size
  • couch_views_ops
  • curr_connections
  • curr_items
  • curr_items_tot
  • decr_hits
  • decr_misses
  • delete_hits
  • delete_misses
  • disk_commit_count
  • disk_commit_total
  • disk_update_count
  • disk_update_total
  • disk_write_queue
  • ep_active_ahead_exceptions
  • ep_active_hlc_drift
  • ep_active_hlc_drift_count
  • ep_bg_fetched
  • ep_clock_cas_drift_threshold_exceeded
  • ep_data_read_failed
  • ep_data_write_failed
  • ep_dcp_2i_backoff
  • ep_dcp_2i_count
  • ep_dcp_2i_items_remaining
  • ep_dcp_2i_items_sent
  • ep_dcp_2i_producer_count
  • ep_dcp_2i_total_backlog_size
  • ep_dcp_2i_total_bytes
  • ep_dcp_cbas_backoff
  • ep_dcp_cbas_count
  • ep_dcp_cbas_items_remaining
  • ep_dcp_cbas_items_sent
  • ep_dcp_cbas_producer_count
  • ep_dcp_cbas_total_backlog_size
  • ep_dcp_cbas_total_bytes
  • ep_dcp_eventing_backoff
  • ep_dcp_eventing_count
  • ep_dcp_eventing_items_remaining
  • ep_dcp_eventing_items_sent
  • ep_dcp_eventing_producer_count
  • ep_dcp_eventing_total_backlog_size
  • ep_dcp_eventing_total_bytes
  • ep_dcp_fts_backoff
  • ep_dcp_fts_count
  • ep_dcp_fts_items_remaining
  • ep_dcp_fts_items_sent
  • ep_dcp_fts_producer_count
  • ep_dcp_fts_total_backlog_size
  • ep_dcp_fts_total_bytes
  • ep_dcp_other_backoff
  • ep_dcp_other_count
  • ep_dcp_other_items_remaining
  • ep_dcp_other_items_sent
  • ep_dcp_other_producer_count
  • ep_dcp_other_total_backlog_size
  • ep_dcp_other_total_bytes
  • ep_dcp_replica_backoff
  • ep_dcp_replica_count
  • ep_dcp_replica_items_remaining
  • ep_dcp_replica_items_sent
  • ep_dcp_replica_producer_count
  • ep_dcp_replica_total_backlog_size
  • ep_dcp_replica_total_bytes
  • ep_dcp_views_backoff
  • ep_dcp_views_count
  • ep_dcp_views_items_remaining
  • ep_dcp_views_items_sent
  • ep_dcp_views_producer_count
  • ep_dcp_views_total_backlog_size
  • ep_dcp_views_total_bytes
  • ep_dcp_xdcr_backoff
  • ep_dcp_xdcr_count
  • ep_dcp_xdcr_items_remaining
  • ep_dcp_xdcr_items_sent
  • ep_dcp_xdcr_producer_count
  • ep_dcp_xdcr_total_backlog_size
  • ep_dcp_xdcr_total_bytes
  • ep_diskqueue_drain
  • ep_diskqueue_fill
  • ep_diskqueue_items
  • ep_flusher_todo
  • ep_item_commit_failed
  • ep_kv_size
  • ep_max_size
  • ep_mem_high_wat
  • ep_mem_low_wat
  • ep_meta_data_memory
  • ep_num_non_resident
  • ep_num_ops_del_meta
  • ep_num_ops_del_ret_meta
  • ep_num_ops_get_meta
  • ep_num_ops_set_meta
  • ep_num_ops_set_ret_meta
  • ep_num_value_ejects
  • ep_oom_errors
  • ep_ops_create
  • ep_ops_update
  • ep_overhead
  • ep_queue_size
  • ep_replica_ahead_exceptions
  • ep_replica_hlc_drift
  • ep_replica_hlc_drift_count
  • ep_tmp_oom_errors
  • ep_vb_total
  • evictions
  • get_hits
  • get_misses
  • incr_hits
  • incr_misses
  • mem_used
  • misses
  • ops
  • timestamp
  • vb_active_eject
  • vb_active_itm_memory
  • vb_active_meta_data_memory
  • vb_active_num
  • vb_active_num_non_resident
  • vb_active_ops_create
  • vb_active_ops_update
  • vb_active_queue_age
  • vb_active_queue_drain
  • vb_active_queue_fill
  • vb_active_queue_size
  • vb_active_sync_write_aborted_count
  • vb_active_sync_write_accepted_count
  • vb_active_sync_write_committed_count
  • vb_pending_curr_items
  • vb_pending_eject
  • vb_pending_itm_memory
  • vb_pending_meta_data_memory
  • vb_pending_num
  • vb_pending_num_non_resident
  • vb_pending_ops_create
  • vb_pending_ops_update
  • vb_pending_queue_age
  • vb_pending_queue_drain
  • vb_pending_queue_fill
  • vb_pending_queue_size
  • vb_replica_curr_items
  • vb_replica_eject
  • vb_replica_itm_memory
  • vb_replica_meta_data_memory
  • vb_replica_num
  • vb_replica_num_non_resident
  • vb_replica_ops_create
  • vb_replica_ops_update
  • vb_replica_queue_age
  • vb_replica_queue_drain
  • vb_replica_queue_fill
  • vb_replica_queue_size
  • vb_total_queue_age
  • xdc_ops
  • allocstall
  • cpu_cores_available
  • cpu_irq_rate
  • cpu_stolen_rate
  • cpu_sys_rate
  • cpu_user_rate
  • cpu_utilization_rate
  • hibernated_requests
  • hibernated_waked
  • mem_actual_free
  • mem_actual_used
  • mem_free
  • mem_limit
  • mem_total
  • mem_used_sys
  • odp_report_failed
  • rest_requests
  • swap_total
  • swap_used

Example Output

couchbase_node,cluster=http://localhost:8091/,hostname=172.17.0.2:8091 memory_free=7705575424,memory_total=16558182400 1547829754000000000
couchbase_bucket,bucket=beer-sample,cluster=http://localhost:8091/ quota_percent_used=27.09285736083984,ops_per_sec=0,disk_fetches=0,item_count=7303,disk_used=21662946,data_used=9325087,mem_used=28408920 1547829754000000000

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketStats added in v1.18.3

type BucketStats struct {
	Op struct {
		Samples struct {
			CouchTotalDiskSize                []float64 `json:"couch_total_disk_size"`
			CouchDocsFragmentation            []float64 `json:"couch_docs_fragmentation"`
			CouchViewsFragmentation           []float64 `json:"couch_views_fragmentation"`
			HitRatio                          []float64 `json:"hit_ratio"`
			EpCacheMissRate                   []float64 `json:"ep_cache_miss_rate"`
			EpResidentItemsRate               []float64 `json:"ep_resident_items_rate"`
			VbAvgActiveQueueAge               []float64 `json:"vb_avg_active_queue_age"`
			VbAvgReplicaQueueAge              []float64 `json:"vb_avg_replica_queue_age"`
			VbAvgPendingQueueAge              []float64 `json:"vb_avg_pending_queue_age"`
			VbAvgTotalQueueAge                []float64 `json:"vb_avg_total_queue_age"`
			VbActiveResidentItemsRatio        []float64 `json:"vb_active_resident_items_ratio"`
			VbReplicaResidentItemsRatio       []float64 `json:"vb_replica_resident_items_ratio"`
			VbPendingResidentItemsRatio       []float64 `json:"vb_pending_resident_items_ratio"`
			AvgDiskUpdateTime                 []float64 `json:"avg_disk_update_time"`
			AvgDiskCommitTime                 []float64 `json:"avg_disk_commit_time"`
			AvgBgWaitTime                     []float64 `json:"avg_bg_wait_time"`
			AvgActiveTimestampDrift           []float64 `json:"avg_active_timestamp_drift"`
			AvgReplicaTimestampDrift          []float64 `json:"avg_replica_timestamp_drift"`
			EpDcpViewsIndexesCount            []float64 `json:"ep_dcp_views+indexes_count"`
			EpDcpViewsIndexesItemsRemaining   []float64 `json:"ep_dcp_views+indexes_items_remaining"`
			EpDcpViewsIndexesProducerCount    []float64 `json:"ep_dcp_views+indexes_producer_count"`
			EpDcpViewsIndexesTotalBacklogSize []float64 `json:"ep_dcp_views+indexes_total_backlog_size"`
			EpDcpViewsIndexesItemsSent        []float64 `json:"ep_dcp_views+indexes_items_sent"`
			EpDcpViewsIndexesTotalBytes       []float64 `json:"ep_dcp_views+indexes_total_bytes"`
			EpDcpViewsIndexesBackoff          []float64 `json:"ep_dcp_views+indexes_backoff"`
			BgWaitCount                       []float64 `json:"bg_wait_count"`
			BgWaitTotal                       []float64 `json:"bg_wait_total"`
			BytesRead                         []float64 `json:"bytes_read"`
			BytesWritten                      []float64 `json:"bytes_written"`
			CasBadval                         []float64 `json:"cas_badval"`
			CasHits                           []float64 `json:"cas_hits"`
			CasMisses                         []float64 `json:"cas_misses"`
			CmdGet                            []float64 `json:"cmd_get"`
			CmdLookup                         []float64 `json:"cmd_lookup"`
			CmdSet                            []float64 `json:"cmd_set"`
			CouchDocsActualDiskSize           []float64 `json:"couch_docs_actual_disk_size"`
			CouchDocsDataSize                 []float64 `json:"couch_docs_data_size"`
			CouchDocsDiskSize                 []float64 `json:"couch_docs_disk_size"`
			CouchSpatialDataSize              []float64 `json:"couch_spatial_data_size"`
			CouchSpatialDiskSize              []float64 `json:"couch_spatial_disk_size"`
			CouchSpatialOps                   []float64 `json:"couch_spatial_ops"`
			CouchViewsActualDiskSize          []float64 `json:"couch_views_actual_disk_size"`
			CouchViewsDataSize                []float64 `json:"couch_views_data_size"`
			CouchViewsDiskSize                []float64 `json:"couch_views_disk_size"`
			CouchViewsOps                     []float64 `json:"couch_views_ops"`
			CurrConnections                   []float64 `json:"curr_connections"`
			CurrItems                         []float64 `json:"curr_items"`
			CurrItemsTot                      []float64 `json:"curr_items_tot"`
			DecrHits                          []float64 `json:"decr_hits"`
			DecrMisses                        []float64 `json:"decr_misses"`
			DeleteHits                        []float64 `json:"delete_hits"`
			DeleteMisses                      []float64 `json:"delete_misses"`
			DiskCommitCount                   []float64 `json:"disk_commit_count"`
			DiskCommitTotal                   []float64 `json:"disk_commit_total"`
			DiskUpdateCount                   []float64 `json:"disk_update_count"`
			DiskUpdateTotal                   []float64 `json:"disk_update_total"`
			DiskWriteQueue                    []float64 `json:"disk_write_queue"`
			EpActiveAheadExceptions           []float64 `json:"ep_active_ahead_exceptions"`
			EpActiveHlcDrift                  []float64 `json:"ep_active_hlc_drift"`
			EpActiveHlcDriftCount             []float64 `json:"ep_active_hlc_drift_count"`
			EpBgFetched                       []float64 `json:"ep_bg_fetched"`
			EpClockCasDriftThresholdExceeded  []float64 `json:"ep_clock_cas_drift_threshold_exceeded"`
			EpDataReadFailed                  []float64 `json:"ep_data_read_failed"`
			EpDataWriteFailed                 []float64 `json:"ep_data_write_failed"`
			EpDcp2IBackoff                    []float64 `json:"ep_dcp_2i_backoff"`
			EpDcp2ICount                      []float64 `json:"ep_dcp_2i_count"`
			EpDcp2IItemsRemaining             []float64 `json:"ep_dcp_2i_items_remaining"`
			EpDcp2IItemsSent                  []float64 `json:"ep_dcp_2i_items_sent"`
			EpDcp2IProducerCount              []float64 `json:"ep_dcp_2i_producer_count"`
			EpDcp2ITotalBacklogSize           []float64 `json:"ep_dcp_2i_total_backlog_size"`
			EpDcp2ITotalBytes                 []float64 `json:"ep_dcp_2i_total_bytes"`
			EpDcpCbasBackoff                  []float64 `json:"ep_dcp_cbas_backoff"`
			EpDcpCbasCount                    []float64 `json:"ep_dcp_cbas_count"`
			EpDcpCbasItemsRemaining           []float64 `json:"ep_dcp_cbas_items_remaining"`
			EpDcpCbasItemsSent                []float64 `json:"ep_dcp_cbas_items_sent"`
			EpDcpCbasProducerCount            []float64 `json:"ep_dcp_cbas_producer_count"`
			EpDcpCbasTotalBacklogSize         []float64 `json:"ep_dcp_cbas_total_backlog_size"`
			EpDcpCbasTotalBytes               []float64 `json:"ep_dcp_cbas_total_bytes"`
			EpDcpEventingBackoff              []float64 `json:"ep_dcp_eventing_backoff"`
			EpDcpEventingCount                []float64 `json:"ep_dcp_eventing_count"`
			EpDcpEventingItemsRemaining       []float64 `json:"ep_dcp_eventing_items_remaining"`
			EpDcpEventingItemsSent            []float64 `json:"ep_dcp_eventing_items_sent"`
			EpDcpEventingProducerCount        []float64 `json:"ep_dcp_eventing_producer_count"`
			EpDcpEventingTotalBacklogSize     []float64 `json:"ep_dcp_eventing_total_backlog_size"`
			EpDcpEventingTotalBytes           []float64 `json:"ep_dcp_eventing_total_bytes"`
			EpDcpFtsBackoff                   []float64 `json:"ep_dcp_fts_backoff"`
			EpDcpFtsCount                     []float64 `json:"ep_dcp_fts_count"`
			EpDcpFtsItemsRemaining            []float64 `json:"ep_dcp_fts_items_remaining"`
			EpDcpFtsItemsSent                 []float64 `json:"ep_dcp_fts_items_sent"`
			EpDcpFtsProducerCount             []float64 `json:"ep_dcp_fts_producer_count"`
			EpDcpFtsTotalBacklogSize          []float64 `json:"ep_dcp_fts_total_backlog_size"`
			EpDcpFtsTotalBytes                []float64 `json:"ep_dcp_fts_total_bytes"`
			EpDcpOtherBackoff                 []float64 `json:"ep_dcp_other_backoff"`
			EpDcpOtherCount                   []float64 `json:"ep_dcp_other_count"`
			EpDcpOtherItemsRemaining          []float64 `json:"ep_dcp_other_items_remaining"`
			EpDcpOtherItemsSent               []float64 `json:"ep_dcp_other_items_sent"`
			EpDcpOtherProducerCount           []float64 `json:"ep_dcp_other_producer_count"`
			EpDcpOtherTotalBacklogSize        []float64 `json:"ep_dcp_other_total_backlog_size"`
			EpDcpOtherTotalBytes              []float64 `json:"ep_dcp_other_total_bytes"`
			EpDcpReplicaBackoff               []float64 `json:"ep_dcp_replica_backoff"`
			EpDcpReplicaCount                 []float64 `json:"ep_dcp_replica_count"`
			EpDcpReplicaItemsRemaining        []float64 `json:"ep_dcp_replica_items_remaining"`
			EpDcpReplicaItemsSent             []float64 `json:"ep_dcp_replica_items_sent"`
			EpDcpReplicaProducerCount         []float64 `json:"ep_dcp_replica_producer_count"`
			EpDcpReplicaTotalBacklogSize      []float64 `json:"ep_dcp_replica_total_backlog_size"`
			EpDcpReplicaTotalBytes            []float64 `json:"ep_dcp_replica_total_bytes"`
			EpDcpViewsBackoff                 []float64 `json:"ep_dcp_views_backoff"`
			EpDcpViewsCount                   []float64 `json:"ep_dcp_views_count"`
			EpDcpViewsItemsRemaining          []float64 `json:"ep_dcp_views_items_remaining"`
			EpDcpViewsItemsSent               []float64 `json:"ep_dcp_views_items_sent"`
			EpDcpViewsProducerCount           []float64 `json:"ep_dcp_views_producer_count"`
			EpDcpViewsTotalBacklogSize        []float64 `json:"ep_dcp_views_total_backlog_size"`
			EpDcpViewsTotalBytes              []float64 `json:"ep_dcp_views_total_bytes"`
			EpDcpXdcrBackoff                  []float64 `json:"ep_dcp_xdcr_backoff"`
			EpDcpXdcrCount                    []float64 `json:"ep_dcp_xdcr_count"`
			EpDcpXdcrItemsRemaining           []float64 `json:"ep_dcp_xdcr_items_remaining"`
			EpDcpXdcrItemsSent                []float64 `json:"ep_dcp_xdcr_items_sent"`
			EpDcpXdcrProducerCount            []float64 `json:"ep_dcp_xdcr_producer_count"`
			EpDcpXdcrTotalBacklogSize         []float64 `json:"ep_dcp_xdcr_total_backlog_size"`
			EpDcpXdcrTotalBytes               []float64 `json:"ep_dcp_xdcr_total_bytes"`
			EpDiskqueueDrain                  []float64 `json:"ep_diskqueue_drain"`
			EpDiskqueueFill                   []float64 `json:"ep_diskqueue_fill"`
			EpDiskqueueItems                  []float64 `json:"ep_diskqueue_items"`
			EpFlusherTodo                     []float64 `json:"ep_flusher_todo"`
			EpItemCommitFailed                []float64 `json:"ep_item_commit_failed"`
			EpKvSize                          []float64 `json:"ep_kv_size"`
			EpMaxSize                         []float64 `json:"ep_max_size"`
			EpMemHighWat                      []float64 `json:"ep_mem_high_wat"`
			EpMemLowWat                       []float64 `json:"ep_mem_low_wat"`
			EpMetaDataMemory                  []float64 `json:"ep_meta_data_memory"`
			EpNumNonResident                  []float64 `json:"ep_num_non_resident"`
			EpNumOpsDelMeta                   []float64 `json:"ep_num_ops_del_meta"`
			EpNumOpsDelRetMeta                []float64 `json:"ep_num_ops_del_ret_meta"`
			EpNumOpsGetMeta                   []float64 `json:"ep_num_ops_get_meta"`
			EpNumOpsSetMeta                   []float64 `json:"ep_num_ops_set_meta"`
			EpNumOpsSetRetMeta                []float64 `json:"ep_num_ops_set_ret_meta"`
			EpNumValueEjects                  []float64 `json:"ep_num_value_ejects"`
			EpOomErrors                       []float64 `json:"ep_oom_errors"`
			EpOpsCreate                       []float64 `json:"ep_ops_create"`
			EpOpsUpdate                       []float64 `json:"ep_ops_update"`
			EpOverhead                        []float64 `json:"ep_overhead"`
			EpQueueSize                       []float64 `json:"ep_queue_size"`
			EpReplicaAheadExceptions          []float64 `json:"ep_replica_ahead_exceptions"`
			EpReplicaHlcDrift                 []float64 `json:"ep_replica_hlc_drift"`
			EpReplicaHlcDriftCount            []float64 `json:"ep_replica_hlc_drift_count"`
			EpTmpOomErrors                    []float64 `json:"ep_tmp_oom_errors"`
			EpVbTotal                         []float64 `json:"ep_vb_total"`
			Evictions                         []float64 `json:"evictions"`
			GetHits                           []float64 `json:"get_hits"`
			GetMisses                         []float64 `json:"get_misses"`
			IncrHits                          []float64 `json:"incr_hits"`
			IncrMisses                        []float64 `json:"incr_misses"`
			MemUsed                           []float64 `json:"mem_used"`
			Misses                            []float64 `json:"misses"`
			Ops                               []float64 `json:"ops"`
			Timestamp                         []float64 `json:"timestamp"`
			VbActiveEject                     []float64 `json:"vb_active_eject"`
			VbActiveItmMemory                 []float64 `json:"vb_active_itm_memory"`
			VbActiveMetaDataMemory            []float64 `json:"vb_active_meta_data_memory"`
			VbActiveNum                       []float64 `json:"vb_active_num"`
			VbActiveNumNonResident            []float64 `json:"vb_active_num_non_resident"`
			VbActiveOpsCreate                 []float64 `json:"vb_active_ops_create"`
			VbActiveOpsUpdate                 []float64 `json:"vb_active_ops_update"`
			VbActiveQueueAge                  []float64 `json:"vb_active_queue_age"`
			VbActiveQueueDrain                []float64 `json:"vb_active_queue_drain"`
			VbActiveQueueFill                 []float64 `json:"vb_active_queue_fill"`
			VbActiveQueueSize                 []float64 `json:"vb_active_queue_size"`
			VbActiveSyncWriteAbortedCount     []float64 `json:"vb_active_sync_write_aborted_count"`
			VbActiveSyncWriteAcceptedCount    []float64 `json:"vb_active_sync_write_accepted_count"`
			VbActiveSyncWriteCommittedCount   []float64 `json:"vb_active_sync_write_committed_count"`
			VbPendingCurrItems                []float64 `json:"vb_pending_curr_items"`
			VbPendingEject                    []float64 `json:"vb_pending_eject"`
			VbPendingItmMemory                []float64 `json:"vb_pending_itm_memory"`
			VbPendingMetaDataMemory           []float64 `json:"vb_pending_meta_data_memory"`
			VbPendingNum                      []float64 `json:"vb_pending_num"`
			VbPendingNumNonResident           []float64 `json:"vb_pending_num_non_resident"`
			VbPendingOpsCreate                []float64 `json:"vb_pending_ops_create"`
			VbPendingOpsUpdate                []float64 `json:"vb_pending_ops_update"`
			VbPendingQueueAge                 []float64 `json:"vb_pending_queue_age"`
			VbPendingQueueDrain               []float64 `json:"vb_pending_queue_drain"`
			VbPendingQueueFill                []float64 `json:"vb_pending_queue_fill"`
			VbPendingQueueSize                []float64 `json:"vb_pending_queue_size"`
			VbReplicaCurrItems                []float64 `json:"vb_replica_curr_items"`
			VbReplicaEject                    []float64 `json:"vb_replica_eject"`
			VbReplicaItmMemory                []float64 `json:"vb_replica_itm_memory"`
			VbReplicaMetaDataMemory           []float64 `json:"vb_replica_meta_data_memory"`
			VbReplicaNum                      []float64 `json:"vb_replica_num"`
			VbReplicaNumNonResident           []float64 `json:"vb_replica_num_non_resident"`
			VbReplicaOpsCreate                []float64 `json:"vb_replica_ops_create"`
			VbReplicaOpsUpdate                []float64 `json:"vb_replica_ops_update"`
			VbReplicaQueueAge                 []float64 `json:"vb_replica_queue_age"`
			VbReplicaQueueDrain               []float64 `json:"vb_replica_queue_drain"`
			VbReplicaQueueFill                []float64 `json:"vb_replica_queue_fill"`
			VbReplicaQueueSize                []float64 `json:"vb_replica_queue_size"`
			VbTotalQueueAge                   []float64 `json:"vb_total_queue_age"`
			XdcOps                            []float64 `json:"xdc_ops"`
			Allocstall                        []float64 `json:"allocstall"`
			CPUCoresAvailable                 []float64 `json:"cpu_cores_available"`
			CPUIrqRate                        []float64 `json:"cpu_irq_rate"`
			CPUStolenRate                     []float64 `json:"cpu_stolen_rate"`
			CPUSysRate                        []float64 `json:"cpu_sys_rate"`
			CPUUserRate                       []float64 `json:"cpu_user_rate"`
			CPUUtilizationRate                []float64 `json:"cpu_utilization_rate"`
			HibernatedRequests                []float64 `json:"hibernated_requests"`
			HibernatedWaked                   []float64 `json:"hibernated_waked"`
			MemActualFree                     []float64 `json:"mem_actual_free"`
			MemActualUsed                     []float64 `json:"mem_actual_used"`
			MemFree                           []float64 `json:"mem_free"`
			MemLimit                          []float64 `json:"mem_limit"`
			MemTotal                          []float64 `json:"mem_total"`
			MemUsedSys                        []float64 `json:"mem_used_sys"`
			OdpReportFailed                   []float64 `json:"odp_report_failed"`
			RestRequests                      []float64 `json:"rest_requests"`
			SwapTotal                         []float64 `json:"swap_total"`
			SwapUsed                          []float64 `json:"swap_used"`
		} `json:"samples"`
		Samplescount int   `json:"samplesCount"`
		Ispersistent bool  `json:"isPersistent"`
		Lasttstamp   int64 `json:"lastTStamp"`
		Interval     int   `json:"interval"`
	} `json:"op"`
	HotKeys []interface{} `json:"hot_keys"`
}

type Couchbase

type Couchbase struct {
	Servers             []string `toml:"servers"`
	BucketStatsIncluded []string `toml:"bucket_stats_included"`
	ClusterBucketStats  bool     `toml:"cluster_bucket_stats"`
	NodeBucketStats     bool     `toml:"node_bucket_stats"`
	AdditionalStats     []string `toml:"additional_stats"`

	tls.ClientConfig
	// contains filtered or unexported fields
}

func (*Couchbase) Gather

func (cb *Couchbase) Gather(acc telegraf.Accumulator) error

Reads stats from all configured clusters. Accumulates stats. Returns one of the errors encountered while gathering stats (if any).

func (*Couchbase) Init added in v1.18.3

func (cb *Couchbase) Init() error

func (*Couchbase) SampleConfig

func (*Couchbase) SampleConfig() string

Jump to

Keyboard shortcuts

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