updates to address PR feedback from kelseiv

pull/695/head
Scott Anderson 2020-01-03 10:24:28 -07:00
parent 91eea41be8
commit af18404f87
1 changed files with 21 additions and 20 deletions

View File

@ -1,8 +1,8 @@
--- ---
title: Use Grafana with InfluxDB v2.0 title: Use Grafana with InfluxDB 2.0
description: > description: >
Use the Grafana Flux datasource plugin to connect Grafana to InfluxDB v2.0 or an Use the Grafana Flux datasource plugin to connect Grafana to InfluxDB 2.0 or
InfluxDB Cloud instance. InfluxDB Cloud 2.0.
menu: menu:
v2_0: v2_0:
name: Use Grafana name: Use Grafana
@ -12,16 +12,16 @@ v2.0/tags: [grafana]
--- ---
Use the [Grafana Flux Data Source plugin](https://grafana.com/grafana/plugins/grafana-influxdb-flux-datasource) Use the [Grafana Flux Data Source plugin](https://grafana.com/grafana/plugins/grafana-influxdb-flux-datasource)
to connect Grafana to InfluxDB v2.0 or an InfluxDB Cloud instance. to connect Grafana to InfluxDB 2.0 or InfluxDB Cloud 2.0.
{{% warn %}} {{% warn %}}
The **Grafana Flux Data Source plugin** is currently in beta. The **Grafana Flux Data Source plugin** is currently in beta.
{{% /warn %}} {{% /warn %}}
1. Ensure you have a running InfluxDB instance. You can connect Grafana to InfluxDB 1. [Start InfluxDB 2.0 OSS](/v2.0/get-started/) OR
v2.0 OSS or InfluxDB Cloud instances. [sign up for {{< cloud-name >}}](/v2.0/cloud/get-started/).
2. [Downland and install Grafana](https://grafana.com/grafana/download). 2. [Downland and install Grafana](https://grafana.com/grafana/download).
2. Install the **Grafana Flux Data Source plugin** manually or with `grafana-cli` (installed 3. Install the **Grafana Flux Data Source plugin** manually or with `grafana-cli` (installed
with Grafana). with Grafana).
{{< tabs-wrapper >}} {{< tabs-wrapper >}}
@ -36,23 +36,24 @@ grafana-cli plugins install grafana-influxdb-flux-datasource
{{% /tab-content %}} {{% /tab-content %}}
{{% tab-content %}} {{% tab-content %}}
Download the [latest release](https://github.com/grafana/influxdb-flux-datasource/releases) Download the [latest release](https://github.com/grafana/influxdb-flux-datasource/releases)
of Flux Datasource Plugin into into Grafana's `data/plugins` directory and unzip it. of the Flux Datasource Plugin into the Grafana `data/plugins` directory and unzip it.
{{% /tab-content %}} {{% /tab-content %}}
{{< /tabs-wrapper >}} {{< /tabs-wrapper >}}
3. Start Grafana and visit `http://localhost:3000` in your browser. 4. [Start Grafana](https://grafana.com/docs/grafana/latest/installation/) and
4. In the left navigation of the Grafana user interface (UI), hover over the gear visit `http://localhost:3000` in your browser.
icon to reveal the **Configuration** section. Click **Data Sources**. 5. In the left navigation of the Grafana user interface (UI), hover over the gear
5. Click **Add data source**. icon to expand the **Configuration** section. Click **Data Sources**.
6. Select **Flux (InfluxDB) [BETA]** from the list of available plugins. 6. Click **Add data source**.
7. Select **Flux (InfluxDB) [BETA]** from the list of available plugins.
## Configure your InfluxDB 2.0 connection ## Configure your InfluxDB 2.0 connection
1. Name your Flux datasource. 1. Enter a name for your Flux datasource.
2. Under **HTTP**, Configure your **InfluxDB URL**. 2. Under **HTTP**, enter your **InfluxDB URL**.
If running InfluxDB 2.0 OSS locally, use `http://localhost:9999`. If running InfluxDB 2.0 locally, use `http://localhost:9999`.
If connecting to an {{< cloud-name "short" >}} instance, see [InfluxDB Cloud URLs](/v2.0/cloud/urls/) If connecting to an {{< cloud-name "short" >}} instance, see [InfluxDB Cloud URLs](/v2.0/cloud/urls/)
for information about what URL to use. for information about what URL to use.
3. Under the **Auth** section, select **With Credentials**. 3. Under **Auth**, select **With Credentials**.
4. Under **InfluxDB 2.0.0 Details**, enter your **organization name** _or_ **organization ID**, 4. Under **InfluxDB 2.0.0 Details**, enter your **organization name** _or_ **organization ID**,
**default bucket**, and **authentication token**. **default bucket**, and **authentication token**.
@ -63,12 +64,12 @@ grafana-cli plugins install grafana-influxdb-flux-datasource
{{< img-hd src="/img/2-0-visualize-grafana-flux-plugin.png" />}} {{< img-hd src="/img/2-0-visualize-grafana-flux-plugin.png" />}}
5. Click **Save & Test**. Grafana will attempt to connect to the InfluxDB 2.0 datasource 5. Click **Save & Test**. Grafana attempts to connect to the InfluxDB 2.0 datasource
and return the results of the test. and returns the results of the test.
## Query and visualize data ## Query and visualize data
With your InfluxDB connection configured, use Grafana and Flux to query and With your InfluxDB connection configured, use Grafana and Flux to query and
visualize time series data stored in InfluxDB 2.0. visualize time series data stored in InfluxDB 2.0 or {{< cloud-name >}}.
[Grafana documentation](https://grafana.com/docs/grafana/latest/). [Grafana documentation](https://grafana.com/docs/grafana/latest/).
If you're just learning Flux, see [Getting started with Flux](/v2.0/query-data/get-started/). If you're just learning Flux, see [Getting started with Flux](/v2.0/query-data/get-started/).