Commit 3398c28a by Torkel Ödegaard

docs(): fixing redirects for moved doc pages, updating links to point to new urls

parent 5a7abe36
...@@ -10,11 +10,14 @@ weight = 8 ...@@ -10,11 +10,14 @@ weight = 8
# Grafana CLI # Grafana CLI
Grafana cli is a small executable that is bundled with grafana server and is suppose to be executed on the same machine as grafana runs. Grafana cli is a small executable that is bundled with grafana server and is suppose to be
executed on the same machine as grafana runs.
## Plugins ## Plugins
The CLI helps you install, upgrade and manage your plugins on the same machine it CLI is running. You can find more information about how to install and manage your plugins at the [plugin page] ({{< relref "/installation.md" >}}) The CLI helps you install, upgrade and manage your plugins on the same machine it CLI is running.
You can find more information about how to install and manage your plugins at the
[plugin page]({{< relref "plugins/installation.md" >}}).
## Admin ## Admin
......
...@@ -33,7 +33,7 @@ of core Grafana. Only some data soures are supported right now. They include `Gr ...@@ -33,7 +33,7 @@ of core Grafana. Only some data soures are supported right now. They include `Gr
### Clustering ### Clustering
We have not implemented clustering yet. So if you run multiple instances of grafana-server We have not implemented clustering yet. So if you run multiple instances of grafana-server
you have to make sure [execute_alerts]({{< relref "/installation/configuration.md#alerting" >}}) you have to make sure [execute_alerts]({{< relref "installation/configuration.md#alerting" >}})
is true on only one instance or otherwise you will get duplicated notifications. is true on only one instance or otherwise you will get duplicated notifications.
<div class="clearfix"></div> <div class="clearfix"></div>
......
...@@ -3,6 +3,7 @@ title = "AWS CloudWatch" ...@@ -3,6 +3,7 @@ title = "AWS CloudWatch"
description = "Guide for using CloudWatch in Grafana" description = "Guide for using CloudWatch in Grafana"
keywords = ["grafana", "cloudwatch", "guide"] keywords = ["grafana", "cloudwatch", "guide"]
type = "docs" type = "docs"
aliases = ["/datasources/cloudwatch"]
[menu.docs] [menu.docs]
name = "AWS Cloudwatch" name = "AWS Cloudwatch"
identifier = "cloudwatch" identifier = "cloudwatch"
......
...@@ -3,6 +3,7 @@ title = "Using Elasticsearch in Grafana" ...@@ -3,6 +3,7 @@ title = "Using Elasticsearch in Grafana"
description = "Guide for using Elasticsearch in Grafana" description = "Guide for using Elasticsearch in Grafana"
keywords = ["grafana", "elasticsearch", "guide"] keywords = ["grafana", "elasticsearch", "guide"]
type = "docs" type = "docs"
aliases = ["/datasources/elasticsearch"]
[menu.docs] [menu.docs]
name = "Elasticsearch" name = "Elasticsearch"
parent = "datasources" parent = "datasources"
......
...@@ -3,6 +3,7 @@ title = "Using Graphite in Grafana" ...@@ -3,6 +3,7 @@ title = "Using Graphite in Grafana"
description = "Guide for using graphite in Grafana" description = "Guide for using graphite in Grafana"
keywords = ["grafana", "graphite", "guide"] keywords = ["grafana", "graphite", "guide"]
type = "docs" type = "docs"
aliases = ["/datasources/graphite"]
[menu.docs] [menu.docs]
name = "Graphite" name = "Graphite"
identifier = "graphite" identifier = "graphite"
......
...@@ -3,6 +3,7 @@ title = "Using InfluxDB in Grafana" ...@@ -3,6 +3,7 @@ title = "Using InfluxDB in Grafana"
description = "Guide for using InfluxDB in Grafana" description = "Guide for using InfluxDB in Grafana"
keywords = ["grafana", "influxdb", "guide"] keywords = ["grafana", "influxdb", "guide"]
type = "docs" type = "docs"
aliases = ["/datasources/influxdb"]
[menu.docs] [menu.docs]
name = "InfluxDB" name = "InfluxDB"
parent = "datasources" parent = "datasources"
......
---
page_title: KairosDB Guide
page_description: KairosDB guide for Grafana
page_keywords: grafana, kairosdb, documentation
---
# KairosDB Guide
Grafana v2.1 brings initial support for KairosDB Datasources. While the process of adding the datasource is similar to adding a Graphite or OpenTSDB datasource type, Kairos DB does have a few different options for building queries.
## Adding the data source to Grafana
![](/img/v2/add_KairosDB.jpg)
1. Open the side menu by clicking the the Grafana icon in the top header.
2. In the side menu under the `Dashboards` link you should find a link named `Data Sources`.
> NOTE: 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.
3. Click the `Add new` link in the top header.
4. Select `KairosDB` from the dropdown.
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 directly from browser.
## Query editor
Open a graph in edit mode by click the title.
![](/img/v2/kairos_query_editor.jpg)
For details on KairosDB metric queries checkout the official.
- [Query Metrics - KairosDB 0.9.4 documentation](http://kairosdb.github.io/kairosdocs/restapi/QueryMetrics.html).
## 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 matching `query`. If nothing is given, returns a list of all metric names.
`tag_names(query)` | Returns a list of tag names matching `query`. If nothing is given, returns a list of all tag names.
`tag_values(metric,tag)` | Returns a list of values for `tag` from the given `metric`.
For details of `metric names`, `tag names`, and `tag values`, please refer to the KairosDB documentations.
- [List Metric Names - KairosDB 0.9.4 documentation](http://kairosdb.github.io/kairosdocs/restapi/ListMetricNames.html)
- [List Tag Names - KairosDB 0.9.4 documentation](http://kairosdb.github.io/kairosdocs/restapi/ListTagNames.html)
- [List Tag Values - KairosDB 0.9.4 documentation](http://kairosdb.github.io/kairosdocs/restapi/ListTagValues.html)
- [Query Metrics - KairosDB 0.9.4 documentation](http://kairosdb.github.io/kairosdocs/restapi/QueryMetrics.html).
...@@ -3,6 +3,7 @@ title = "Using OpenTSDB in Grafana" ...@@ -3,6 +3,7 @@ title = "Using OpenTSDB in Grafana"
description = "Guide for using OpenTSDB in Grafana" description = "Guide for using OpenTSDB in Grafana"
keywords = ["grafana", "opentsdb", "guide"] keywords = ["grafana", "opentsdb", "guide"]
type = "docs" type = "docs"
aliases = ["/datasources/opentsdb"]
[menu.docs] [menu.docs]
name = "OpenTSDB" name = "OpenTSDB"
parent = "datasources" parent = "datasources"
......
----
page_title: Data source Plugin API
page_description: Data Source Plugin Description
page_keywords: grafana, data source, plugin, api, docs
---
# Data source plugin API
All data sources in Grafana are implemented as plugins.
## Breaking change in 2.2
In Grafana 2.2 a breaking change was introduced for how data source query editors
are structured, defined and loaded. This was in order to support mixing multiple data sources
in the same panel.
In Grafana 2.2, the query editor is no longer defined using the partials section in
`plugin.json`, but defined via an angular directive named using convention naming
scheme like `metricQueryEditor<data source type name>`. For example
Graphite defines a directive like this:
```javascript
module.directive('metricQueryEditorGraphite', function() {
return {controller: 'GraphiteQueryCtrl', templateUrl: 'app/plugins/datasource/graphite/partials/query.editor.html'};
});
```
Even though the data source type name is with lowercase `g`, the directive uses capital `G` in `Graphite` because
that is how angular directives needs to be named in order to match an element with name `<metric-query-editor-graphite />`.
You also specify the query controller here instead of in the query.editor.html partial like before.
...@@ -3,6 +3,7 @@ title = "Using Prometheus in Grafana" ...@@ -3,6 +3,7 @@ title = "Using Prometheus in Grafana"
description = "Guide for using Prometheus in Grafana" description = "Guide for using Prometheus in Grafana"
keywords = ["grafana", "prometheus", "guide"] keywords = ["grafana", "prometheus", "guide"]
type = "docs" type = "docs"
aliases = ["/datasources/prometheus"]
[menu.docs] [menu.docs]
name = "Prometheus" name = "Prometheus"
parent = "datasources" parent = "datasources"
...@@ -74,7 +75,7 @@ You can also use raw queries & regular expressions to extract anything you might ...@@ -74,7 +75,7 @@ You can also use raw queries & regular expressions to extract anything you might
### Using templated variables in queries ### Using templated variables in queries
When the `Include All` option or `Multi-Value` option is enabled, Grafana converts the labels from plain text to a regex compatible string. When the `Include All` option or `Multi-Value` option is enabled, Grafana converts the labels from plain text to a regex compatible string.
Which means you have to use `=~` instead of `=` in your Prometheus queries. For example `ALERTS{instance=~$instance}` instead of `ALERTS{instance=$instance}`. Which means you have to use `=~` instead of `=` in your Prometheus queries. For example `ALERTS{instance=~$instance}` instead of `ALERTS{instance=$instance}`.
![](/img/v2/prometheus_templating.png) ![](/img/v2/prometheus_templating.png)
+++ +++
title = "Grafana TestData" title = "TestData"
keywords = ["grafana", "dashboard", "documentation", "panels", "testdata"] keywords = ["grafana", "dashboard", "documentation", "panels", "testdata"]
type = "docs" type = "docs"
[menu.docs] [menu.docs]
name = "Grafana TestData" name = "TestData"
parent = "datasources" parent = "datasources"
weight = 2 weight = 20
+++ +++
# Grafana TestData # Grafana TestData
> NOTE: This plugin is disable by default. > NOTE: This plugin is disable by default.
The purpose of this data sources is to make it easier to create fake data for any panel. The purpose of this data sources is to make it easier to create fake data for any panel.
Using `Grafana TestData` you can build your own time series and have any panel render it. Using `Grafana TestData` you can build your own time series and have any panel render it.
This make is much easier to verify functionally since the data can be shared very This make is much easier to verify functionally since the data can be shared very
## Enable ## Enable
`Grafana TestData` is not enabled by default. To enable it you have to go to `/plugins/testdata/edit` and click the enable button to enable it for each server. `Grafana TestData` is not enabled by default. To enable it you have to go to `/plugins/testdata/edit` and click the enable button to enable it for each server.
...@@ -33,8 +33,8 @@ You can now choose different scenario that you want rendered in the drop down me ...@@ -33,8 +33,8 @@ You can now choose different scenario that you want rendered in the drop down me
## CSV ## CSV
The comma separated values scenario is the most powerful one since it lets you create any kind of graph you like. The comma separated values scenario is the most powerful one since it lets you create any kind of graph you like.
Once you provided the numbers `Grafana TestData` will distribute them evenly based on the time range of your query. Once you provided the numbers `Grafana TestData` will distribute them evenly based on the time range of your query.
![](/img/docs/v41/test_data_csv_example.png) ![](/img/docs/v41/test_data_csv_example.png)
...@@ -45,10 +45,10 @@ Once you provided the numbers `Grafana TestData` will distribute them evenly bas ...@@ -45,10 +45,10 @@ Once you provided the numbers `Grafana TestData` will distribute them evenly bas
### Commit updates to the dashboards ### Commit updates to the dashboards
If you want to submit a change to one of the current dashboards bundled with `Grafana TestData` you have to update the revision property. If you want to submit a change to one of the current dashboards bundled with `Grafana TestData` you have to update the revision property.
Otherwise the dashboard will not be updated automatically for other Grafana users. Otherwise the dashboard will not be updated automatically for other Grafana users.
## Using test data in issues ## Using test data in issues
If you post an issue on github regarding time series data or rendering of time series data we strongly advice you to use this data source to replicate the data. If you post an issue on github regarding time series data or rendering of time series data we strongly advice you to use this data source to replicate the data.
That makes it much easier for the developers to replicate and solve the issue you have. That makes it much easier for the developers to replicate and solve the issue you have.
...@@ -16,7 +16,7 @@ This document is a “bottom up” introduction to basic concepts in Grafana, an ...@@ -16,7 +16,7 @@ This document is a “bottom up” introduction to basic concepts in Grafana, an
### Data Source ### Data Source
Grafana supports many different storage backends for your time series data (Data Source). Each Data Source has a specific Query Editor that is customized for the features and capabilities that the particular Data Source exposes. Grafana supports many different storage backends for your time series data (Data Source). Each Data Source has a specific Query Editor that is customized for the features and capabilities that the particular Data Source exposes.
The following datasources are officially supported: [Graphite](/datasources/graphite/), [InfluxDB](/datasources/influxdb/), [OpenTSDB](/datasources/opentsdb/), [Prometheus](/datasources/prometheus/), [Elasticsearch](/datasources/elasticsearch/), [CloudWatch](/datasources/cloudwatch/), and [KairosDB](/datasources/kairosdb) The following datasources are officially supported: [Graphite]({{< relref "features/datasources/graphite.md" >}}), [InfluxDB]({{< relref "features/datasources/influxdb.md" >}}), [OpenTSDB]({{< relref "features/datasources/opentsdb.md" >}}), [Prometheus]({{< relref "features/datasources/prometheus.md" >}}), [Elasticsearch]({{< relref "features/datasources/elasticsearch.md" >}}), [CloudWatch]({{< relref "features/datasources/cloudwatch.md" >}}).
The query language and capabilities of each Data Source are obviously very different. You can combine data from multiple Data Sources onto a single Dashboard, but each Panel is tied to a specific Data Source that belongs to a particular Organization. The query language and capabilities of each Data Source are obviously very different. You can combine data from multiple Data Sources onto a single Dashboard, but each Panel is tied to a specific Data Source that belongs to a particular Organization.
......
...@@ -42,9 +42,9 @@ those options. ...@@ -42,9 +42,9 @@ those options.
## Data sources guides ## Data sources guides
- [Graphite](datasources/graphite) - [Graphite]({{< relref "features/datasources/graphite.md" >}})
- [Elasticsearch](datasources/elasticsearch) - [Elasticsearch]({{< relref "features/datasources/elasticsearch.md" >}})
- [InfluxDB](datasources/influxdb) - [InfluxDB]({{< relref "features/datasources/influxdb.md" >}})
- [OpenTSDB](datasources/opentsdb) - [OpenTSDB]({{< relref "features/datasources/opentsdb.md" >}})
...@@ -114,10 +114,10 @@ those options. ...@@ -114,10 +114,10 @@ those options.
### Adding data sources ### Adding data sources
- [Graphite]({{< relref "datasources/graphite.md" >}}) - [Graphite]({{< relref "features/datasources/graphite.md" >}})
- [InfluxDB]({{< relref "datasources/influxdb.md" >}}) - [InfluxDB]({{< relref "features/datasources/influxdb.md" >}})
- [OpenTSDB]({{< relref "datasources/opentsdb.md" >}}) - [OpenTSDB]({{< relref "features/datasources/opentsdb.md" >}})
- [Prometheus]({{< relref "datasources/prometheus.md" >}}) - [Prometheus]({{< relref "features/datasources/prometheus.md" >}})
## Installing from binary tar file ## Installing from binary tar file
......
...@@ -121,10 +121,10 @@ those options. ...@@ -121,10 +121,10 @@ those options.
### Adding data sources ### Adding data sources
- [Graphite]({{< relref "datasources/graphite.md" >}}) - [Graphite]({{< relref "features/datasources/graphite.md" >}})
- [InfluxDB]({{< relref "datasources/influxdb.md" >}}) - [InfluxDB]({{< relref "features/datasources/influxdb.md" >}})
- [OpenTSDB]({{< relref "datasources/opentsdb.md" >}}) - [OpenTSDB]({{< relref "features/datasources/opentsdb.md" >}})
- [Prometheus]({{< relref "datasources/prometheus.md" >}}) - [Prometheus]({{< relref "features/datasources/prometheus.md" >}})
### Server side image rendering ### Server side image rendering
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment