Juniper/grafana-can-plugin

Name: grafana-can-plugin

Owner: Juniper Networks

Description: CAN data source plugin code for Grafana

Created: 2017-05-29 07:57:54.0

Updated: 2018-01-22 15:39:51.0

Pushed: 2018-01-22 15:37:39.0

Homepage: null

Size: 161

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Introduction

Plugin to use CAN as a data source in Grafana.

Pre-requisites

Installation

Note: Due to CORS restrictions you may run into issues. Refer below for possible solutions.

Not recommended: If you want to simply test the plugin, you can run your browser with security disabled.

Using grafana-cli
ana-cli plugins install juniper-contrailanalytics-datasource
Clone into plugins directory
var/lib/grafana/plugins
clone https://github.com/Juniper/grafana-can-plugin.git
 service grafana-server restart

Plugin Configuration

Explaination of various fields required during datasource addition in Grafana.

Contrail configuration

In order to make communication secure you will need to configure your contrail instance for HTTPS access and set appropriate CORS endpoints.

HTTPS access

For HTTPS access one needs to configure SSL in contrail. Follow this link to configure SSL.

CORS setup

These links would be helpful for CORS setup in keystone:

Some ways to bypass CORS

Please note that all the methods listed below are hacks and should not be used in production.

Dev setup

This plugin requires node 6.10.0

install -g yarn
 install
run build

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.