/grafana-redis-proxy

The tool visualize collectd data, stored in redis, with grafana.

Primary LanguageGoApache License 2.0Apache-2.0

Grafana-redis-proxy (prototype)

what is this?

This tool works as proxy between redis and grafana and enables grafana to visualize redis data, e.g. collectd's data, stored in redis with write_redis plugin. This tools supports REST API for grafana's simple-json-datasource.

Here is the example, speaked at OpenStack Summit Sydney 2017, DMA(Distributed Monitoring and Analysis): Monitoring Practice and Lifecycle Management for Telecom. In this case, grafana shows redis DB's data that contains various stats data, collected by collectd. Grafana-redis-proxy sample usage

Build

grafana-redis-proxy is written in go, so following commands makes binary.

go get github.com/s1061123/grafana-redis-proxy

Options

grafana-redis-proxy takes two options to run: '-port' and '-redis'. '-redis' indicates the host running redis and '-port' indicates tcp port that grafana-redis-proxy listens to wait grafana simple json.

# ./grafana-redis-proxy --help
Usage of ./grafana-redis-proxy:
  -debug
        Print verbose message
  -port int
        Port for http server (default 8080)
  -redis string
        Host for redis server (default "localhost:6379")