CDAP datasource for Grafana
CONTEXT
- Specifies the tags for your query.
- Corresponds to the
tag
query variable in the API. - Available contexts.
METRICS
- Specifies the metrics for your query.
- Corresponds to the
metric
query variable in the API. - Available system 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:
Similarly, a METRICS
field lists the available metrics for the current context:
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.
- Node.js 6 or greater
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
This project is based on the hawkular-grafana-datasource repository.