mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
2.3 KiB
2.3 KiB
page_title | page_description | page_keywords |
---|---|---|
KairosDB Guide | KairosDB guide for Grafana | grafana, kairosdb, documentation |
KairosDB Guide
Adding the data source to Grafana
Open the side menu by clicking the the Grafana icon in the top header. In the side menu under the Dashboards
link you
should find a link named Data Sources
. If this link is missing in the side menu it means that your current
user does not have the Admin
role for the current organization.
Now click the Add new
link in the top header.
Name | Description |
---|---|
Name | The data source name, important that this is the same as in Grafana v1.x if you plan to import old dashboards. |
Default | Default data source means that it will be pre-selected for new panels. |
Url | The http protocol, ip and port of your kairosdb server (default port is usually 8080) |
Access | Proxy = access via Grafana backend, Direct = access directory from browser. |
Query editor
Open a graph in edit mode by click the title.
For details on KairosDB metric queries checkout the offical.
Templated queries
KairosDB Datasource Plugin provides following functions in Variables values query
field in Templating Editor to query metric names
, tag names
, and tag values
to kairosdb server.
Name | Description |
---|---|
metrics(query) |
Returns a list of metric names. If nothing is given, returns a list of all metric names. |
tag_names(query) |
Returns a list of tag names. If nothing is given, returns a list of all tag names. |
tag_values(query) |
Returns a list of tag values. If nothing is given, returns a list of all tag values. |
For details of metric names
, tag names
, and tag values
, please refer to the KairosDB documentations.