Skip to content

VistaIntelligenceGroup/cdap-grafana-datasource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cdap-grafana-datasource

CDAP datasource for Grafana

Requirements

Usage

Example

Legend

  • CONTEXT
    • Specifies the tags for your query.
    • Corresponds to the tag query variable in the API.
    • Available contexts.
  • METRICS
  • GROUP BY
    • Specifies the groups for your query.
    • All data points that have the same values in tags specified in this setting will form a single timeseries.
    • Corresponds to the groupBy query variable in the API.
  • AGGREGATE
    • Instructs CDAP to return the total aggregated value for the timeseries.
    • Corresponds to the aggregate=true option in the API.
    • This will generally only be useful for some singlestat panels in Grafana.

When selected, a CONTEXT field lists the available tags for the current context:

Tag List

Similarly, a METRICS field lists the available metrics for the current context:

Metric List

Note that sometimes it can take a moment before the list of metrics appears, depending on your CDAP deployment.

Please see the CDAP Metrics documentation for more details.

Development

Requirements

Node compatibility:

Some versions of Node.js may fail to build the node-gyp package, which this project depends on.

This project can be built using Node.js v6.9.1. You can install this version of node using nvm:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
nvm install v6.9.1
nvm use v6.9.1
nvm alias default 6.9.1

To checkout, build, and test:

# Clone from github:
git clone https://github.com/VistaIntelligenceGroup/cdap-grafana-datasource.git

# Enter the project directory:
cd cdap-grafana-datasource

# Install all the dependencies (in the node_modules directory):
npm install

# Build and run the tests:
grunt

# Alternately:
npm test

Acknowledgments

This project is based on the hawkular-grafana-datasource repository.

Releases

No releases published

Packages

No packages published