项目作者: helpdotcom

项目描述 :
Prometheus exporter for couchbase
高级语言: JavaScript
项目地址: git://github.com/helpdotcom/couchbase-exporter.git
创建时间: 2018-05-15T14:18:36Z
项目社区:https://github.com/helpdotcom/couchbase-exporter

开源协议:MIT License

下载


couchbase-exporter

A prometheus exporter for couchbase

Usage

  1. $ git clone git://github.com/helpdotcom/couchbase-exporter
  2. $ cd couchbase-exporter
  3. $ npm i
  4. $ node index.js

To run in a docker container:

  1. $ docker run -d --name couchbase-exporter \
  2. --env COUCHBASE_URL="<couchbase url>" \
  3. --env COUCHBASE_USER="<couchbase user>" \
  4. --env COUCHBASE_PASS="<couchbase pass>" \
  5. evanlucas/couchbase-exporter:2-latest

This is currently only tested with couchbase 5.x.

You will need to set some environment variables in order for this to work properly.

The following env vars are available:

Name Type Default Required Env Var
port number 7040 no PORT
couchbase-url string http://localhost:8091 no COUCHBASE_URL
couchbase-user string username no COUCHBASE_USER
couchbase-pass string password no COUCHBASE_PASS
fetch-delay number 10000 no FETCH_DELAY
loglevel string info no LOGLEVEL
ignore-buckets string ^$ no IGNORE_BUCKETS

The following log levels are valid and are ordered with decreasing verbosity:

  • silly
  • verbose
  • info
  • http
  • warn
  • error
  • silent

The value set for the IGNORE_BUCKETS environment variable will be
used to create a regular expression.


TODO

  1. Make this npm installable
  2. Add ability to filter out buckets by name
  3. Add ability to filter out stats by name
  4. Add bin script
  5. Add tests
  6. Add grafana dashboards

Author

Evan Lucas

License

MIT (See LICENSE for more info)