Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Latest commit

 

History

History
70 lines (57 loc) · 2.28 KB

CONFIGURATION.md

File metadata and controls

70 lines (57 loc) · 2.28 KB

Configuration

Mewpoke get all infos from its configuration's file config.yml

Sections

app

  • measurementPeriodInSec: time between metrics refresh
  • refreshDiscoveryPeriodInSec: time between discovery refresh
  • httpServerPort: port used to expose metrics

discovery

  • consul: use consul as endpoint for discovery -- host: consul endpoint targeted -- port: consul port -- timeoutInSec: timeout for consul requests -- readConsistency: define consul consistency mode (see [Consistency-modes] (https://www.consul.io/api/index.html#consistency-modes) for more infos) -- tags: list of tags for consul parsing
  • staticDns use static host as endpoint for discovery -- clustername: name of the cluster -- host: hostname

service

  • type:
Service Metrics provided
COUCHBASE_STATS Couchbase metrics from API: (buckets by node and XDCR stats)
COUCHBASE return metrics Latency to persist Data on disk and process up
MEMCACHED return metrics Lateny on buckets by node
MEMCACHED_STATS return Memcached metrics from getStats
MEMCACHED_SLABS return Memcached slabs specific metrics
  • timeoutInSec: timeout for service requests
  • username: Couchbase username
  • password: Couchbase password
  • bucketpassword: bucket's password specified in the "Access Control" part of Bucket settings (all buckets within the cluster should have the same password). This feature will disable dedicated port used by Memcached driver for set/get. So latency won't be available.

couchbaseStats

  • bucket: list all bucket stats exported (if empty, will export all metrics)
  • xdcr: list all xdcr stats exported (if empty, will export all metrics)

Example

app:
  tickRateInSec: 20
  httpServerPort: 8000

discovery:
  refreshEveryMin: 1
  consul:
    host: consul01.domain.local
    port: 8500
    timeoutInSec: 10
    readConsistency: STALE
    refreshEveryMin: 1
    tags:
      - cluster=couchbase01

service:
  type:  COUCHBASE_STATS
  timeoutInSec: 60
  username: Administrator
  password: password

couchbaseStats:
    bucket:
    xdcr: