Redis TimeSeries Adapter receives Prometheus metrics via the remote write, and writes to Redis with TimeSeries module.
You can tryout the Prometheus-RedisTimeSeries and RedisTimeSeries with Prometheus and Grafana in a single docker compose
cd compose
docker-compose upGrafana can be accessed on port 3000 (admin:admin) Prometheus on port 9090
to build the project:
make build
cd binTo send metrics to Redis, provide address in host:port format.
redis-ts-adapter --redis-address localhost:6379To receive metrics from Prometheus, Add remote write section to prometheus configuration:
remote_write:
- url: 'http://127.0.0.1:9201/write'run tests:
make testgo linting:
make lintIf 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 mydbPrint help:
redis-ts-adapter --helpSet log level:
redis-ts-adapter --log.level debugSet the timeout to use when sending samples to the remote storage:
redis-ts-adapter --send-timeout 60sSet the listening port for prometheus to send metrics:
redis-ts-adapter --web.listen-address 127.0.0.1:9201Contribution guidelines for this project
See the releases on this repository.
See also the list of contributors who participated in this project.
See the LICENSE file for details.
- Thanks to the prometheus community for the awesome prometheus project, and for the example adapter, that was adapted to this project.
- Thanks to the go-redis community, for the golang redis client used here.
- Thanks to PurpleBooth for readme template