monkeydata918 / datasource-plugin-clouderamanager

Cloudera Manager datasource for Grafana 3.x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloudera Manager Datasource for Grafana 3.x

This plugin for Grafana provides a basic datasource for querying metrics available in Cloudera Manager through its "tsquery" language. It supports Cloudera Manager API versions v4 and higher.

This project is open source pursuant to the Apache License, Version 2.0. It is copyright (C) 2015-2016 by Foursquare Labs, Inc.

Installation

The easiest way to install this plugin is with grafana-cli. Just run the following command:

grafana-cli plugins install foursquare-clouderamanager-datasource

Configuration

  1. Add a new datasource and choose "Cloudera Manager" as the type.

  2. Fill in the "Url" and other server parameters.

  3. Click "Test Connection" to verify that you entered the information correctly.

  4. Set "API Version" to match the API version reported by Test Connection.

  5. Cick "Save".

Queries

Use this datasource just like you would use any other datasource. Fill in a "tsquery" metric query in the input box and you should see metrics.

This datasource is very minimal and so there is no autocompletion support.

Read the tsquery documentation to learn more about tsquery.

Development

To compile, run the following commands:

npm install
grunt

To install in your Grafana server locally, either point Grafana at the repository directory by editing grafana.ini to contain:

[plugin.clouderamanager]
path = /path/to/some/directory/datasource-plugin-clouderamanager

Or symlink the repository directory into the Grafana server's plugin directory:

cd /path/to/grafana/data/plugins
ln -s /path/to/some/directory/datasource-plugin-clouderamanager .

Then restart the Grafana server.

Contributors

  • Tom Dyas

About

Cloudera Manager datasource for Grafana 3.x

License:Apache License 2.0


Languages

Language:JavaScript 82.2%Language:HTML 17.8%