diff --git a/public/app/plugins/datasource/postgres/config_ctrl.ts b/public/app/plugins/datasource/postgres/config_ctrl.ts index e2ec8211a9e..7c7745aeaf1 100644 --- a/public/app/plugins/datasource/postgres/config_ctrl.ts +++ b/public/app/plugins/datasource/postgres/config_ctrl.ts @@ -5,12 +5,14 @@ export class PostgresConfigCtrl { current: any; datasourceSrv: any; + showTimescaleDBHelp: boolean; /** @ngInject **/ constructor($scope, datasourceSrv) { this.datasourceSrv = datasourceSrv; this.current.jsonData.sslmode = this.current.jsonData.sslmode || 'verify-full'; this.current.jsonData.postgresVersion = this.current.jsonData.postgresVersion || 903; + this.showTimescaleDBHelp = false; this.autoDetectFeatures(); } @@ -46,6 +48,10 @@ export class PostgresConfigCtrl { }); } + toggleTimescaleDBHelp() { + this.showTimescaleDBHelp = !this.showTimescaleDBHelp; + } + // the value portion is derived from postgres server_version_num/100 postgresVersions = [ { name: '9.3', value: 903 }, diff --git a/public/app/plugins/datasource/postgres/partials/config.html b/public/app/plugins/datasource/postgres/partials/config.html index 4cb0cefba9e..6c0e5f04cad 100644 --- a/public/app/plugins/datasource/postgres/partials/config.html +++ b/public/app/plugins/datasource/postgres/partials/config.html @@ -65,10 +65,25 @@
+ TimescaleDB is a time-series database built as a PostgreSQL extension. If enabled, Grafana will use time_bucket
in the $__timeGroup
macro and display TimescaleDB specific aggregate functions in the query builder.
+