Coder Social home page Coder Social logo

devicehive-grafana-datasource's Introduction

Grafana Datasource for DeviceHive

This datasource was created to connect Grafana with DeviceHive to track commands and notifications by particular device.

Based on Grafana Simple JSON Datasource plugin.

Getting started instruction

Manual adding the data source to Grafana (with rebuilding)

Prerequisites: You should have Grafana and npm installed and have permissions to copy data to Plugins folder(you could set it in grafana.ini in Paths->plugins).

  1. Clone this repo to Plugins folder - git clone https://github.com/devicehive/devicehive-grafana-datasource.git;
  2. Go into folder - cd devicehive-grafana-datasource;
  3. Install all packages - npm install;
  4. Build plugin - npm run build;
  5. Restart Grafana - sudo service grafana-server restart;
  6. Open Grafana in any browser;
  7. Open the side menu by clicking the Grafana icon in the top header;
  8. In the side menu click Data Sources;
  9. Click the + Add data source in the top header;
  10. Select DeviceHive from the Type dropdown;
  11. Configure datasource.

Using the data source in Dashboards

  1. Open Grafana in any browser;
  2. Open the side menu by clicking the Grafana icon in the top header;
  3. In the side menu find Dashboards and in context menu click + New;
  4. Select Panel type from top header. Currently this plugin wirks fine with Graph and Singlestat types.
  5. Click on Panel Title and choose Edit;
  6. In Metrics tab choose your data source name from Panel Data Source;
  7. Choose metric type from dropdown (command or notification);
  8. Type path to variable inside command in input. (Remember you could use object and arrays inside it, f.e. parameters.testData[0].temperature);
  9. Click time range burron in the top header on the right.
  10. Type now-2m in From text field, choose refreshing option from dropdown and click Apply. (Remember cache is available for last 2 minutes only)

devicehive-grafana-datasource's People

Contributors

itrambovetskyi avatar mykytaliashenko avatar nikolay-kha avatar tmatvienko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

devicehive-grafana-datasource's Issues

Angular is deprecated - please migrate to React

Hello ๐Ÿ‘‹ from Grafana Labs

We have detected that your plugin might still be using AngularJS and recommend migrating it to React, so that it may continue to operate successfully in future versions of Grafana.

You can read more on why and how by visiting our documentation: https://grafana.com/docs/grafana/latest/developers/angular_deprecation/

You can reach out to us with any questions via slack: slack.grafana.com - channel #plugins or our plugin development community forum

grafana

Hello!

I have a problem with grafana. I configure the data source according to your tutorial, but when I build a new dashboard, I don't show any data points.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.