From f8ec94770084a2e4bca6a5e008ee9870a6fd12cf Mon Sep 17 00:00:00 2001 From: Andrej Ocenas Date: Mon, 22 Mar 2021 18:39:59 +0100 Subject: [PATCH] Revert "Add min time interval in opentsdb plugin (#31534)" (#32226) This reverts commit 4a2ba2a3ab37df8d3c074701e8e32fa35d38e524. --- docs/sources/datasources/opentsdb.md | 16 ----------- .../opentsdb/components/OpenTsdbDetails.tsx | 28 ++----------------- .../plugins/datasource/opentsdb/datasource.ts | 2 -- .../app/plugins/datasource/opentsdb/types.ts | 1 - 4 files changed, 2 insertions(+), 45 deletions(-) diff --git a/docs/sources/datasources/opentsdb.md b/docs/sources/datasources/opentsdb.md index 9a6deb63fe4..9b2122e8036 100644 --- a/docs/sources/datasources/opentsdb.md +++ b/docs/sources/datasources/opentsdb.md @@ -23,22 +23,6 @@ To access OpenTSDB settings, hover your mouse over the **Configuration** (gear) | `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. | -| `Min time interval`| A lower limit for the auto group by time interval. Recommended to be set to write frequency, for example `1m` if your data is written every minute. This option can also be overridden/configured in a dashboard panel under data source options. It's important to note that this value _must_ be formatted as a number followed by a [valid time identifier](#Supported min time identifiers), e.g. `1m` (1 minute) or `30s` (30 seconds). | - -### Supported min time identifiers - -The following time identifiers are supported: - -| Identifier | Description | -| ---------- | ----------- | -| `y` | Years (365 days)| -| `n` | Months (30 days)| -| `w` | Weeks (7 days)| -| `d` | Days (24 hours)| -| `h` | Hours | -| `m` | Minutes | -| `s` | Seconds | -| `ms` | Milliseconds | ## Query editor diff --git a/public/app/plugins/datasource/opentsdb/components/OpenTsdbDetails.tsx b/public/app/plugins/datasource/opentsdb/components/OpenTsdbDetails.tsx index c689b96975a..0457fe63db7 100644 --- a/public/app/plugins/datasource/opentsdb/components/OpenTsdbDetails.tsx +++ b/public/app/plugins/datasource/opentsdb/components/OpenTsdbDetails.tsx @@ -1,6 +1,6 @@ import React, { SyntheticEvent } from 'react'; -import { EventsWithValidation, regexValidation, InlineFormLabel, LegacyForms } from '@grafana/ui'; -const { Select, Input, FormField } = LegacyForms; +import { InlineFormLabel, LegacyForms } from '@grafana/ui'; +const { Select, Input } = LegacyForms; import { DataSourceSettings, SelectableValue } from '@grafana/data'; import { OpenTsdbOptions } from '../types'; @@ -53,30 +53,6 @@ export const OpenTsdbDetails = (props: Props) => { onChange={onInputChangeHandler('lookupLimit', value, onChange)} /> -
-
- - } - /> -
-
); }; diff --git a/public/app/plugins/datasource/opentsdb/datasource.ts b/public/app/plugins/datasource/opentsdb/datasource.ts index 98a1b388d49..59847c96de2 100644 --- a/public/app/plugins/datasource/opentsdb/datasource.ts +++ b/public/app/plugins/datasource/opentsdb/datasource.ts @@ -24,7 +24,6 @@ export default class OpenTsDatasource extends DataSourceApi