Giter Site home page Giter Site logo

prometheus-exporter's Introduction

RethinkDB Prometheus exporter

GitHub tag GoDoc Build status

RethinkDB statistics exporter for Prometheus.

Current version: v1.0.1 (RethinkDB v2.4)

Build and Run

Local build and run:

git clone https://github.com/rethinkdb/prometheus-exporter.git
cd prometheus-exporter
go build -o rethinkdb-exporter
./rethinkdb-exporter

Docker build and run:

git clone https://github.com/rethinkdb/prometheus-exporter.git
cd prometheus-exporter
docker build --tag rethinkdb-exporter .
docker run -d -p 9050:9050 rethinkdb-exporter 

Parameters

Exporter can get parameters from config file, CLI flags or Environment variables.

CLI flag Env var name Config key Description
--config - - Config file (default to prometheus-exporter.yaml)
--web.listen-address string WEB_LISTEN_ADDRESS web.listen_address Address to listen on for web interface and telemetry (default "0.0.0.0:9055")
--web.telemetry-path string WEB_TELEMETRY_PATH web.telemetry_path Path under which to expose metrics (default "/metrics")
--db.address DB_ADDRESSES db.rethinkdb_addresses Address of one or more nodes of rethinkdb (default [localhost:28015])
--db.enable-tls DB_ENABLE_TLS db.enable_tls Enable to use tls connection
--db.ca DB_CA db.ca_file Path to CA certificate file for tls connection
--db.cert DB_CERT db.certificate_file Path to certificate file for tls connection
--db.key DB_KEY db.key_file Path to key file for tls connection
--db.username DB_USERNAME db.username Username of rethinkdb user
--db.password DB_PASSWORD db.password Password of rethinkdb user
--db.pool-size DB_POOL_SIZE db.connection_pool_size Size of connection pool to rethinkdb (default 5)
--log.debug LOG_DEBUG log.debug Verbose debug logs
--log.json-output LOG_JSON_OUTPUT log.json_output Use JSON output for logs
--stats.table-estimates STATS_TABLE_ESTIMATES stats.table_docs_estimates Collect docs count estimates for each table

Config file can be yaml or json. Example:

web:
    listen_address: "0.0.0.0:9050"
db:
    rethinkdb_addresses:
      - "0.0.0.0:28015"
      - "0.0.0.0:28016"
stats:
    table_docs_estimates: true

Metrics

Most of the RethinkDB stats table are exported.

Optionally table rows count estimates can be exported from Table info.

Grafana dashboard

Grafana can be found here.

image

Contribution

Pull requests and issues are welcome.

prometheus-exporter's People

Contributors

cmogilko avatar gabor-boros avatar mterzo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.