bragfoo / TiPrometheus

Apache License 2.0
74 stars 12 forks source link

TiPrometheus

A adapter/gateway for TiKV.

Supports remote write and read.

Transport security is optional and can be enabled both between Prometheus and the adapter and for communication with the TiKV cluster.

Quick Start

Build:

go build -o tiprometheus cmd/tiprometheus/app.go

Rename the example configuration conf.example.toml to conf.toml and adapt the parameters to your needs.

Run with:

./tiprometheus -conf conf.toml

Configuration

TiPrometheus is configured through a TOML file. See conf.example.toml for an example.

Options

Sections

The configuration file can contain multiple sections to allow quick switching between development/production environments.

Set the environment variable RunTime to the section you would like to enable:

Run with:

RunTime=dev ./tiprometheus -conf conf.toml