From caa6545292b7a8ec7363ede06037eb9ed0c0e022 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Tue, 30 May 2023 21:44:49 +0100 Subject: [PATCH] [v9.4.x] Fix opentsdb table format (#69283) Fix opentsdb table format (#69281) * fixed table formatting * changed opentsdb to OpenTSDB * cleaned up wording (cherry picked from commit 4a84633773b8efb3261f35bad164541229176c9a) Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com> --- docs/sources/datasources/opentsdb/_index.md | 37 +++++++++++++-------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/docs/sources/datasources/opentsdb/_index.md b/docs/sources/datasources/opentsdb/_index.md index c22dc22a789..be736dc2c49 100644 --- a/docs/sources/datasources/opentsdb/_index.md +++ b/docs/sources/datasources/opentsdb/_index.md @@ -24,17 +24,26 @@ Administrators can also [configure the data source via YAML]({{< relref "#provis ## OpenTSDB settings -To access OpenTSDB settings, hover your mouse over the **Configuration** (gear) icon, then click **Data Sources**, and then click the OpenTSDB data source. +To configure basic settings for the data source, complete the following steps: -| Name | Description | -| ------------------- | --------------------------------------------------------------------------------------- | -| **Name** | The data source name. This is how you refer to the data source in panels and queries. | -| **Default** | Default data source means that it will be pre-selected for new panels. | -| **URL** | The HTTP protocol, IP, and port of your OpenTSDB server (default port is usually 4242) | -| **Allowed cookies** | List the names of cookies to forward to the data source. | -| **Version** | Version = opentsdb version, either <=2.1 or 2.2 | -| **Resolution** | Metrics from opentsdb may have datapoints with either second or millisecond resolution. | -| **Lookup limit** | Default is 1000. | +1. Click **Connections** in the left-side menu. +1. Under Your connections, click **Data sources**. +1. Enter `OpenTSDB` in the search bar. +1. Select **OpenTSDB**. + + The **Settings** tab of the data source is displayed. + +1. Set the data source's basic configuration options: + +| Name | Description | +| ------------------- | ---------------------------------------------------------------------------------------- | +| **Name** | The data source name. This is how you refer to the data source in panels and queries. | +| **Default** | Default data source that will be be pre-selected for new panels. | +| **URL** | The HTTP protocol, IP, and port of your OpenTSDB server (default port is usually 4242). | +| **Allowed cookies** | Listing of cookies to forward to the data source. | +| **Version** | The OpenTSDB version. | +| **Resolution** | Metrics from OpenTSDB may have data points with either second or millisecond resolution. | +| **Lookup limit** | Default is 1000. | ### Provision the data source @@ -47,7 +56,7 @@ For more information about provisioning, and for available configuration options apiVersion: 1 datasources: - - name: OpenTsdb + - name: OpenTSDB type: opentsdb access: proxy url: http://localhost:4242 @@ -60,11 +69,13 @@ datasources: Open a graph in edit mode by click the title. Query editor will differ if the data source has version <=2.1 or = 2.2. In the former version, only tags can be used to query OpenTSDB. But in the latter version, filters as well as tags -can be used to query opentsdb. Fill Policy is also introduced in OpenTSDB 2.2. +can be used to query OpenTSDB. Fill Policy is also introduced in OpenTSDB 2.2. ![](/static/img/docs/v43/opentsdb_query_editor.png) -> **Note:** While using OpenTSDB 2.2 data source, make sure you use either Filters or Tags as they are mutually exclusive. If used together, might give you weird results. +{{% admonition type="note" %}} +While using OpenTSDB 2.2 data source, make sure you use either Filters or Tags as they are mutually exclusive. If used together, might give you weird results. +{{% /admonition %}} ### Auto complete suggestions