Solr Datasource for Grafana
This plugin for provides an advanced datasource for querying Solr server >= 4. This datasource also provides support for the Solr version bundled with .
This project is open source pursuant to the . It is copyright (C) 2018 by PUE Team.
欧洲杯投注软件The easiest way to install this plugin is to clone or unzip this repository on the grafana plugins folder. For example:
cd /var/lib/grafana/plugins git clone http://github.com/pueteam/datasource-plugin-solr
欧洲杯投注软件Then restart grafana to reload the plugins folder.
欧洲杯投注软件Add a new datasource and choose "Solr" as the type.
Fill in the "Url" and other server parameters. If you run Solr in a kerberized cluster, you'll need LDAP authentication enabled, and provide the credentials here.
欧洲杯投注软件Optionally, add the collection to use. This is required if you plan to use templates.
Click "Test Connection" to verify that you entered the information correctly.
First, select the query type. You can choose between
standard query is the default.
Standard Queries: The
standardqueries will execute regular queries against Solr. You'll need to fill the
Fieldslist (space or comma separated) and the
Queryin the Solr format
Group Queries: The
grouptype allows you to group results by
Group By Fieldparameter. You'll also need to fill the
Group Value Fieldand this parameter should be numeric. You can also limit the
Max Group Rowsresults.
This plugin supports Templates/Variables to be used, for example, in the
Query parameter. You'll need to specify the
Collection parameter in the
CR:$CR AND city:$city
This plugin supports auto completion for the Query Parameters.
欧洲杯投注软件This plugin also supports Annotations. You'll need to provide:
欧洲杯投注软件To compile, run the following commands:
npm install grunt
To install in your Grafana server locally, either point Grafana at the repository directory by
grafana.ini to contain:
[plugin.solr] path = /path/to/some/directory/datasource-plugin-solr
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-solr .
Then restart the Grafana server.
- Sergio Rodriguez de Guzman