From 2596ce50768c2a1c0ee16cbab59f4006bcba81c8 Mon Sep 17 00:00:00 2001 From: Andrej Ocenas Date: Thu, 2 May 2019 11:02:01 +0200 Subject: [PATCH] Add pattern validation in configs (#16837) Datasources: Add pattern validation for time input on datasource config pages --- .../elasticsearch/partials/config.html | 9 ++++++++- .../datasource/mssql/partials/config.html | 9 ++++++++- .../datasource/mysql/partials/config.html | 9 ++++++++- .../datasource/postgres/partials/config.html | 9 ++++++++- .../datasource/prometheus/partials/config.html | 18 ++++++++++++++++-- 5 files changed, 48 insertions(+), 6 deletions(-) diff --git a/public/app/plugins/datasource/elasticsearch/partials/config.html b/public/app/plugins/datasource/elasticsearch/partials/config.html index 9085dfa5d4a..6fd773fed49 100644 --- a/public/app/plugins/datasource/elasticsearch/partials/config.html +++ b/public/app/plugins/datasource/elasticsearch/partials/config.html @@ -36,7 +36,14 @@
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. diff --git a/public/app/plugins/datasource/mssql/partials/config.html b/public/app/plugins/datasource/mssql/partials/config.html index 6428b45dfe4..f8034e86b1c 100644 --- a/public/app/plugins/datasource/mssql/partials/config.html +++ b/public/app/plugins/datasource/mssql/partials/config.html @@ -82,7 +82,14 @@
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. diff --git a/public/app/plugins/datasource/mysql/partials/config.html b/public/app/plugins/datasource/mysql/partials/config.html index 4ec8101a227..b754a5ab9a1 100644 --- a/public/app/plugins/datasource/mysql/partials/config.html +++ b/public/app/plugins/datasource/mysql/partials/config.html @@ -82,7 +82,14 @@
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. diff --git a/public/app/plugins/datasource/postgres/partials/config.html b/public/app/plugins/datasource/postgres/partials/config.html index e7680707672..95abc25dee7 100644 --- a/public/app/plugins/datasource/postgres/partials/config.html +++ b/public/app/plugins/datasource/postgres/partials/config.html @@ -96,7 +96,14 @@
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. diff --git a/public/app/plugins/datasource/prometheus/partials/config.html b/public/app/plugins/datasource/prometheus/partials/config.html index aaeec7f5336..c0ee73719fe 100644 --- a/public/app/plugins/datasource/prometheus/partials/config.html +++ b/public/app/plugins/datasource/prometheus/partials/config.html @@ -5,7 +5,14 @@
Scrape interval - + Set this to your global scrape interval defined in your Prometheus config file. This will be used as a lower limit for the Prometheus step query parameter. @@ -16,7 +23,14 @@
Query timeout - + Set the Prometheus query timeout.