ryantxu / grafana-redis-datasource

Grafana Redis Datasource

Home Page:http://oss.redislabs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grafana Redis Datasource

Dashboard

Grafana 7 Radix RedisTimeSeries Redis Enterprise Go Report Card

Summary

Introduction

What is the Grafana Redis Datasource?

The Grafana Redis Datasource, is a plugin that allows users to connect to Redis database and build dashboards in Grafana to easily monitor Redis data. It provides out-of-the box predefined dashboards - but the plugin allows to build entirely customized dashboards, tuned to your needs.

What is Grafana?

If you are not familiar with Grafana yet, it is a very popular tool used to build dashboards allowing to monitor applications, infrastructures and any kind of software components.

What Grafana version is supported?

Only Grafana 7.0 and later with a new plugin platform supported.

Does this datasource require anything special configured on the Redis databases?

Datasource can connect to any Redis database. No special configuration is required.

Do you need to build the datasource?

Yes. We are planning to add the datasource to Grafana repository as soon as version 1.0.0 is released, then it can be installed using grafana-cli from registry. Please follow Build datasource.

Getting Started

Build datasource

To learn step by step how to build Redis Datasource from scratch and register in new or existing Grafana please take a look at BUILD instructions.

React frontend

  • Install frontend dependencies
yarn install
  • Build frontend
yarn build

Golang backend

go get -u github.com/grafana/grafana-plugin-sdk-go
  • Build backend plugin binaries for Linux, Windows and MacOS
mage -v

Run using docker-compose

Project provides docker-compose.yml to start Redis with RedisTimeSeries module and Grafana 7.0.

Start Redis and Grafana

docker-compose up

Open Grafana in your browser http://localhost:3000 and configure datasource

You can add as many datasources as you want to support multiple Redis databases.

Datasource

There are certain settings that can be configured based on your own setup:

  • Grafana port
  • Datasource URL

Configure Grafana port in docker-compose.yml

If standard port 3000 is occupied by another application update the port to bind Grafana to

    ports:
      - '3000:3000'

Configure Datasource url in provisioning/datasources/redis.yaml

If Redis is running and listening on localhost:6379 no changes are required

    url: redis://localhost:6379

If Redis is running as Docker container on MacOS, please update host to host.docker.internal

    url: redis://host.docker.internal:6379

Supported Commands

Datasource supports many Redis commands using custom components and provide unified interface to query any command.

Query

Template variables

Template variables can query any command and use other variables as parameters.

Variables

Feedback

We love to hear from users, developers and the whole community interested by this plugin. These are various ways to get in touch with us:

  • Ask a question, request a new feature and file a bug with GitHub issues.
  • Star the repository to show your support.

Contributing

  • Fork the repository
  • Find an issue to work on and submit a pull request
  • Could not find an issue? Look for documentation, bugs, typos, and missing features :)

Other interesting resources

License

  • Apache License Version 2.0, see LICENSE

About

Grafana Redis Datasource

http://oss.redislabs.com

License:Apache License 2.0


Languages

Language:TypeScript 51.5%Language:Go 46.1%Language:Shell 1.6%Language:JavaScript 0.8%