ChronixDB / chronix.grafana

The plugin for Grafana to integrate Chronix
Apache License 2.0
22 stars 4 forks source link

Join the chat at https://gitter.im/ChronixDB/chronix.grafana Build Status Dependency Status Apache License 2

Chronix Grafana Datasource Plugin

This is a "datasource" plugin that lets you use time series from Chronix-Server and visualize them with Grafana.

It works with Grafana > 3.X.X.

Chronix-Grafana-Integration

Features

The plugin supports all the native implemented aggregations, transformations, and analyses of Chronix-Server. We will provide more details soon ;-)

Usage

Currently, the plugin is only available at the chronix github repository. It is planned to release the plugin within the app store of grafana.

To use the plugin, simply clone this repository into your Grafana installation's {inst-dir}/data/plugins/ directory.

Optionally, you can download and start from the example dashboard:

  1. Download and extract the latest chronix.server and start it by cd'ing into the extracted directory and running bin/solr start.
  2. Download and extract the latest importer.zip from the latest chronix.examples release and run it by cd'ing into the extracted folder and running ./import.
  3. Create a datasource called Chronix that points to http://localhost:8983/solr/chronix (no credentials needed).
  4. Import the example dashboard(s) from 'dashboards' into your running Grafana.

Contributing

Is there anything missing? Do you have ideas for new features or improvements? You are highly welcome to contribute your improvements to the Chronix projects. All you have to do is to fork this repository, improve the code and issue a pull request.

Developing the plugin

Basics

Set up (only needs to be done once)

Use a command prompt that provides NodeJS and NPM. In it, simply run

npm install

to install all (dev-) dependencies for the build.

Changing stuff

To run the build once in order to re-create the dist folder, run

npm run build

If you want the build to watch your src files and auto-run whenever you hit save, run

npm run watch

(you can end the watcher by pressing CTRL+C in that command prompt)

Maintainer

Florian Lautenschlager @flolaut

License

This software is provided under the Apache License, Version 2.0 license.

See the LICENSE file for details.