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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Plugin to use CAN as a data source in Grafana.
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.
ana-cli plugins install juniper-contrailanalytics-datasource
var/lib/grafana/plugins
clone https://github.com/Juniper/grafana-can-plugin.git
service grafana-server restart
Explaination of various fields required during datasource addition in Grafana.
URL
: Enter the URL of contrail query server. Usually it is : http://<hostname>:8081/
Access
: Direct
or via proxy
Username
: Username for accessing data in CANPassword
: Password for the usernameTenant/Domain
Keystone URL
: URL of keystone server. Usually it is : http://<hostname>:35357/v2.0/tokens/
In order to make communication secure you will need to configure your contrail instance for HTTPS access and set appropriate CORS endpoints.
For HTTPS access one needs to configure SSL in contrail. Follow this link to configure SSL.
proxy
option to reach contrail-api.These links would be helpful for CORS setup in keystone:
Please note that all the methods listed below are hacks and should not be used in production.
proxy
access while configuring data source in grafana. When this option is set, grafana server makes a request to contrail instead of your browser. But, there is a catch. If your keystone-url
and url
differ in origin, grafana would not relay the requests to keystone-url
via the backend.proxy
access feature of grafana to reach contrail-api server.This plugin requires node 6.10.0
install -g yarn
install
run build