Skip to content
Prometheus remote storage adapter for RedisTimeSeries
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Update circleci with new github paths. Mar 26, 2019
bin
build
cmd/redis-ts-adapter update project paths Mar 26, 2019
compose
internal/redis_ts adjust the adapter to the new redis-timeseries api, make the tests do… Mar 7, 2019
vendor see RED-26118, performance improvements: use bytes buffer instead of … Feb 19, 2019
.dockerignore add a docker-compose with grafana, prometheus, redis-timeseries Mar 19, 2019
.gitignore rename project to redis-ts-adapter Nov 20, 2018
CONTRIBUTING.md update README.md with basic usage Nov 28, 2018
Dockerfile
LICENSE
Makefile Remove all references to RedisLabs/redis-ts-adapter Mar 26, 2019
README.md Remove all references to RedisLabs/redis-ts-adapter Mar 26, 2019
go.mod Remove all references to RedisLabs/redis-ts-adapter Mar 26, 2019
go.sum see RED-26118, performance improvements: use bytes buffer instead of … Feb 19, 2019

README.md

license CircleCI GitHub issues

Prometheus-RedisTimeSeries Adapter

Redis TimeSeries Adapter receives Prometheus metrics via the remote write, and writes to Redis with TimeSeries module.

QuickStart

You can tryout the Prometheus-RedisTimeSeries and RedisTimeSeries with Prometheus and Grafana in a single docker compose

cd compose
docker-compose up

Grafana can be accessed on port 3000 (admin:admin) Prometheus on port 9090

Getting Started

to build the project:

make build
cd bin

To send metrics to Redis, provide address in host:port format.

redis-ts-adapter --redis-address localhost:6379

To receive metrics from Prometheus, Add remote write section to prometheus configuration:

remote_write:
  - url: 'http://127.0.0.1:9201/write'

Makefile commands

run tests:

make test

go linting:

make lint

Redis Sentinel

If you have Redis Sentinel set up for high availability redis, use the redis-sentinel flags:

redis-ts-adapter --redis-sentinel-address localhost:26379 --redis-sentinel-master mydb

Additional flags

Print help:

redis-ts-adapter --help

Set log level:

redis-ts-adapter --log.level debug

Set the timeout to use when sending samples to the remote storage:

redis-ts-adapter --send-timeout 60s

Set the listening port for prometheus to send metrics:

redis-ts-adapter --web.listen-address 127.0.0.1:9201

Contributing

Contribution guidelines for this project

Releases

See the releases on this repository.

Contributors

See also the list of contributors who participated in this project.

License

See the LICENSE file for details.

Acknowledgments

You can’t perform that action at this time.