9498ee3d54
SQL: Migrate (MS/My/Postgres)SQL configuration pages from Angular to React ( #51891 )
...
* Migrate SQL configuration pages from angular to react
* Move enums to types.ts and remove angular partials
* remove es lint disables and update betterer instead
* Fix automatically added type declarations
* Bump wor.. betterer ;)
* Export SecretInput component from grafana-ui
* Fix A11y issues
* Export SecretTextArea as well
* Fix typo
* Use const instead of var
* Fix typo in doc
* Add autoDetectFeatures to postgres config editor
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2022-07-14 13:29:08 +02:00
562a25ad99
increase label width on TLS info ( #46816 )
2022-03-23 17:22:08 +00:00
6958de846c
Accessibility Fixes for Several SQL Based Query Editors ( #43981 )
...
* Fix postgres QE a11y label issue
* Add aria-label to query-editor
* Remove unecessary element ID.
* Use aria-labeledby instead of aria-label
* Prefer aria-labelby with dynamic ids
* Prefer "for" over aria-labeledby
* Prefer "for" over aria-labeledby for MSSQL QE
2022-01-19 15:56:33 -06:00
febc24522d
Accessibility Fixes for Several SQL Based Datasource Config Pages ( #43982 )
...
* Add label elements for select boxes: MSSQL config
* Add Permission level label
* Add aria-label for password field
* Fixes for Postgres a11y page
* Fix whitespace error
* Swap aria-labelby for "for"
* Prefer "for" over aria-labeledby
2022-01-19 15:53:54 -06:00
b6cfb65e40
Annotations: More fixes to the angular annotation editors ( #33303 )
...
* Annotations: Fixed angular editor issues
* More angular annotation fixes
* removed console.log
2021-04-23 14:06:30 +02:00
c57047a420
Postgres: allow providing TLS/SSL certificates as text in addition to file paths ( #30353 )
...
* postgres SSL certification
* add back the UI to configure SSL Authentication files by file path
* add backend logic
* correct unittest
* mini changes
* Update public/app/plugins/datasource/postgres/config_ctrl.ts
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* mutex
* check file exist before remove
* change permission
* change default configuremethod to file-path
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* rename sslconfiguremethod to sslconfigurationmethod
* frontend update
* solve comments
* Postgres: Convert tests to stdlib
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Postgres: Be consistent about TLS/SSL terminology
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* fix init inconsistancy
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* naming convention
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Undo change
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix TLS issue
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* change permissions
* Fix data source field names
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Clean up HTML
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve popover text
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix SSL input bug
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Undo unnecessary change
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Clean up backend code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix build
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* More consistent naming
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Clean up code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Enforce certificate file permissions
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* add settings
* Undo changes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* fix windows file path
* PostgresDataSource: Fix mutex usage
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update pkg/tsdb/postgres/postgres.go
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* fix compilation
* fix unittest
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* mock function
* change kmutex package
* add kmutex into middleware
* lock connection file per datasource
* add unittest regarding concurrency
* version should be equal
* adding unittest
* fix the loop
* fix unitest
* fix postgres unittst
* remove comments
* move dataPath from arg to tlsManager struct field
* Use DecryptedValues method
Use cached decrypted values instead of
using secure json data decrypt which will
decrypt unchanged values over and over again.
* remove unneeded mutex in tests and cleanup tests
* fix the lint
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2021-02-23 22:10:55 +01:00
e4672906f0
SqlDataSources: Fixes the Show Generated SQL button in query editors ( #31236 )
...
* SqlDataSources: Fixes the Show Generated SQL button in query editors
* No need to protect against duplicate events now that the event emitter is isolated for each editor
2021-02-16 13:10:40 +01:00
7126a91901
Postgres: Be consistent about TLS/SSL terminology ( #30532 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-01-22 14:53:37 +01:00
8bd5cdbe9f
Postgres: Fix indentation ( #30531 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-01-22 10:14:12 +01:00
2a6ac88a73
QueryInspector: add common way to show the raw query ( #25204 )
2020-05-29 11:06:33 -07:00
6937f3549b
@grafana/ui: Various smaller Icon updates ( #23588 )
...
* Remove icon types duplicates, update getAllIcons
* Update Explore-related icons, positioning
* Update Getting started icons
* Update navmodel
* Style adjustments, css changes
* Update tests
* Updatee icon name in test file
2020-04-16 13:49:58 +02:00
1c58202b26
@grafana/ui: Replace various icons using Icon component ( #23442 )
...
* Replace icons in dashboard and settings
* Replace icons in alerting
* Update batch of icons
* Implement icons accross various files
* Style updates
* Search: Fix recent and starred icons
* Update styling and details
* Replace new icon created by unicons
* Fix e2e test, styling
* Minor styling updates
Co-authored-by: Clarity-89 <homes89@ukr.net>
2020-04-12 22:20:02 +02:00
1f0e1b33bc
Postgres: Add SSL support for datasource ( #21341 )
...
* Add SSL certificate/key fields to Postgres data source configuration
Co-authored-by: Edwin Cordeiro <edwin@scordeiro.net>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-04-09 12:48:29 +02:00
e27ab89aed
Postgres/MySQL/MSSQL: Adds support for region annotations ( #20752 )
...
Adds support for region annotations in Postgres, MySQL and
MSSQL data sources by adding a column named timeend to
annotation query.
Co-Authored-By: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Closes #20918
Ref #10589
2019-12-13 17:25:36 +01:00
90508cdbf2
Datasource: Support min time interval input in ms ( #18719 )
...
* Support min time interval input in ms in SQL datasource settings
* Enable ms in elastic min time interval setup
2019-08-29 09:36:10 +02:00
2596ce5076
Add pattern validation in configs ( #16837 )
...
Datasources: Add pattern validation for time input on datasource config pages
2019-05-02 11:02:00 +02:00
150b97692d
Use SecretFormField in MSSql and Postgres datasources
2019-03-19 13:40:18 +01:00
e7297fef06
fix: Add class for input fields with help icon to avoid icon hiding the text #15771
2019-03-06 14:45:13 +01:00
e76655df43
graph: fixes click after scroll in series override menu
...
Makes changes to dropdown-typeahead2 so that a css
class for the button can be passed in. Means it can
be used instead of dropdown-typeahead.
Switches to using dropdown-typeahead2 for series_overrides
directive and for the influxdb, mysql and postgres datasources
as it already contains a fix for this issue.
This commit also fixes the index property which
was set using an incorrectly spelled length property in the
series_overrides directive.
Closes #15621
2019-02-25 02:11:28 +01:00
3a53f75ebb
update inline documentation
2019-01-28 19:52:35 +01:00
12230dfa71
ux: put connection limits under own section
2018-10-02 17:43:15 +02:00
dd09ece8c9
Make max open, max idle connections and connection max life time configurable
2018-10-02 13:42:06 +02:00
7c78b64a36
Document required order for time series queries ( #13204 )
2018-09-10 09:33:06 +02:00
a95453036b
Add min time interval to postgres datasource
2018-09-05 09:46:22 +02:00
aadff18e94
hide Query Builder button for table panels
2018-08-29 18:38:18 +02:00
1ee91a637f
remove min time interval from datasource config
2018-08-29 13:02:25 +02:00
e9ab4feeb0
link to github instead
2018-08-29 09:58:08 +02:00
62d82920e6
improve description for timescaledb option
2018-08-27 23:20:17 +02:00
21e7b0b92d
add min interval to postgres datasource
2018-08-25 18:14:39 +02:00
998bb6ebe3
Merge branch 'master' into postgres-query-builder
2018-08-18 11:54:39 +02:00
313a8bd033
Merge pull request #12891 from svenklemm/unixepochgroup
...
add $__unixEpochGroup and $__unixEpochGroupAlias to sql datasources
2018-08-17 14:41:33 +02:00
2606f6e715
use pointer cursor for buttons in query editor
2018-08-15 09:21:17 +02:00
9d022766ee
add postgres version to datasource config
2018-08-14 15:45:55 +02:00
15c8ef6c95
Merge branch 'master' into postgres-query-builder
2018-08-14 12:51:03 +02:00
bfe28ee061
Add $__unixEpochGroup macro to postgres datasource
2018-08-13 12:08:14 +02:00
a4a33d80db
mention time_bucket in timescaledb tooltip
2018-08-09 17:30:46 +02:00
c3aad10047
change timescaledb to checkbox instead of select
2018-08-09 10:05:35 +02:00
b987aee7cf
add timescaledb option to postgres datasource
...
This adds an option to the postgres datasource config for
timescaledb support. When set to auto it will check for
timescaledb when testing the datasource.
When this option is enabled the $__timeGroup macro will
use the time_bucket function from timescaledb to group
times by an interval.
This also passes the datasource edit control to testDatasource
to allow for setting additional settings, this might be useful
for other datasources aswell which have optional or version
dependant features which can be queried.
2018-08-09 10:05:35 +02:00
3b6454ab88
Merge branch 'master' into postgres-query-builder
2018-08-08 12:09:17 +02:00
52c7edf2f4
rename last fillmode to previous
2018-08-07 21:11:51 +02:00
bfc66a7ed0
add fillmode "last" to sql datasource
...
This adds a new fill mode last (last observation carried forward) for grafana
to the sql datasources. This fill mode will fill in the last seen value in a
series when a timepoint is missing or NULL if no value for that series has
been seen yet.
2018-08-02 20:35:09 +02:00
67edb9e9fe
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2018-08-02 16:39:27 +02:00
a221d9ec84
add more prominent button for switching edit mode
2018-08-02 09:50:21 +02:00
82c473e3af
document $__timeGroupAlias
2018-08-01 21:23:00 +02:00
43295f9c18
remove alias from postgres $__timeGroup macro
2018-08-01 08:50:19 +02:00
6613f11499
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2018-07-30 15:23:56 +02:00
412bb6acab
refactor function handling in query builder
2018-07-29 13:31:50 +02:00
5327580939
refactor column function handling
2018-07-28 21:41:23 +02:00
6ca7a03975
consistent nameing fro group and select
2018-07-28 12:53:36 +02:00
7905c29875
adjust metric prefix code to sql engine refactor
2018-07-27 15:34:04 +02:00