Andreas Christou
cc09f38421
MSSQL: Correctly type UDPConnectionLimit ( #99011 )
...
* Correctly type UDPConnectionLimit
* Update tests
* Handle legacy case
2025-01-27 15:53:46 +00:00
jackyin
55ec66c416
Datasources: timeEnd not work ( #98375 )
...
* time end not work
2025-01-20 10:04:43 +00:00
Andreas Christou
54333473f7
SQL: Set errors as downstream based on underlying errorsource ( #97192 )
...
Set errors as downstream based on underlying errorsource
2024-12-20 17:42:58 +00:00
Sriram
d48e9afd5d
Datasources: Improved network health check error messages (sql datasources) ( #97783 )
...
remove unique identifiers from common network error messages
2024-12-11 13:05:06 +00:00
Sriram
b4927ff1cd
MS SQL: Datasource health check error message improvements ( #97643 )
...
improve mssql healthcheck error messages
2024-12-10 13:13:32 +00:00
Maxim Muzafarov
4712883601
MSSQL: Redact sensitive info from logs in the mssql plugin ( #97281 )
...
mssql(logs): Remove logging of credentials
2024-12-10 08:30:21 +00:00
Gareth Dawson
217a2bce0a
MSSQL: Make error consistent with psql and mysql ( #97056 )
...
make error consistent with psql and mysql
2024-11-26 17:47:14 +02:00
Andreas Christou
4ab61cea0e
MSSQL: Add errorsource ( #92152 )
...
* Add errorsource to mssql
* Fix args
* Use fmt.Errorf
2024-09-09 14:02:09 +01:00
Andrew Hackmann
eac194815e
MSSQL: decouple plugin ( #89597 )
...
* decouple from core
* yarn decouple
* make health check work and azure config
* f
* driver error not needed
* merge
2024-08-26 23:09:21 +03:00
Dave Henderson
df3d8915ba
Chore: Bump Go to 1.23.0 ( #92105 )
...
* chore: Bump Go to 1.23.0
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
* update swagger files
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
* chore: update .bingo/README.md formatting to satisfy prettier
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
* chore(lint): Fix new lint errors found by golangci-lint 1.60.1 and Go 1.23
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
* keep golden file
* update openapi
* add name to expected output
* chore(lint): rearrange imports to a sensible order
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
---------
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2024-08-21 11:40:42 -04:00
Andrew Hackmann
319a874033
MSSQL: Password auth for Azure AD ( #89746 )
...
* Password auth for Azure AD
* rename auth fields
* add azure flag for client password cred enabled
* prettier
* rename flag
* Update go.mod
* Update public/app/plugins/datasource/mssql/azureauth/AzureCredentialsForm.tsx
Co-authored-by: Andreas Christou <andreas.christou@grafana.com >
* Apply suggestions from code review
Co-authored-by: Andreas Christou <andreas.christou@grafana.com >
* update package
* go mod
* prettier
* remove password
* gowork
* remove unused env test
* linter
---------
Co-authored-by: Andreas Christou <andreas.christou@grafana.com >
2024-07-16 14:08:51 -05:00
Andreas Christou
28df41fd96
MSSQL: Add HostName method ( #87309 )
...
* Add HostName method
* Add test
* Fix lint
2024-05-03 15:45:34 +01:00
Andreas Christou
ae84d16a6f
MSSQL: Simplify proxy logic ( #86278 )
...
* Simplify proxy dialer creation
- Set new dialer on connector
- Create MSSQL connector in a similar fashion to postgres
* Update test
* Fix lint
* More lint
* Use correct driver name
2024-04-19 22:03:26 +01:00
Andreas Christou
420067a7e1
MSSQL: Add SQL_VARIANT converter and update test ( #85823 )
...
Add SQL_VARIANT converter and update test
2024-04-17 16:49:51 -05:00
Gábor Farkas
9015bfa3f4
mssql: decouple sqleng ( #86130 )
...
* mssql: decouple sqleng
* fix codeowners-file
2024-04-16 08:00:14 +00:00
Adam Simpson
311aa94fab
MSSQL: Add Windows AD/Kerberos auth ( #84742 )
...
* mssql: Add Kerberos/Windows AD auth
* need username for cache file
* account for no port in cc file
* add tests around constring
* remove un-needed port
* add docs
* remove comments
* move defer to same locale as where it begins
* fix linting and spelling
* fix gosec linter
* note lack of grafana cloud support
2024-03-20 16:41:57 +02:00
Andreas Christou
7c3f621688
Chore: Update grafana-azure-sdk-go ( #84741 )
...
* Update grafana-azure-sdk-go
* Update test
2024-03-19 14:56:40 +00:00
Gábor Farkas
1bab82ab36
mssql: socks proxy: use plugin-sdk ( #82407 )
2024-02-15 12:01:18 +01:00
Gábor Farkas
67f006a91d
sql: remove setting-import from sqleng ( #82088 )
2024-02-12 12:37:23 +01:00
Dan Cech
790e1feb93
Chore: Update test database initialization ( #81673 )
...
* streamline initialization of test databases, support on-disk sqlite test db
* clean up test databases
* introduce testsuite helper
* use testsuite everywhere we use a test db
* update documentation
* improve error handling
* disable entity integration test until we can figure out locking error
2024-02-09 09:35:39 -05:00
Gábor Farkas
7b8c7b623c
sql: remove the usage of "errutil" ( #81888 )
2024-02-07 08:39:24 +01:00
Bruno
2332bfb007
Set DatasourceName and DatasourceType in proxy.Options ( #80923 )
...
* Set DatasourceName and DatasourceType in proxy.Options
* upgrade github.com/grafana/grafana-plugin-sdk-go to v0.206.0 and fix merge conflicts
2024-02-01 11:09:58 -03:00
Gábor Farkas
fd73b75ef7
SQL datasources: Consistent interval handling ( #78517 )
...
sql: apply the received interval-value
2024-01-24 08:47:07 +01:00
Gábor Farkas
bfb85f27b1
sql: improve sqleng-api, leave sql.DB creation to the plugins ( #79672 )
2024-01-05 08:37:15 +01:00
Gábor Farkas
53863c52ca
sql: use logging functionality from plugin-sdk ( #79294 )
2023-12-14 09:42:06 +01:00
Gábor Farkas
5b4da3a7dc
mssql: prepare logs-handling for decouple-datasource changes ( #79214 )
...
mssql: refactor logs-handling
2023-12-11 09:14:06 +01:00
Gábor Farkas
9f0fc60477
sql: remove xorm dependency from postgres/mysql/mssql ( #77870 )
...
* sql: remove xorm
* sql: remove pkg/util dependency (#78821 )
sql: removed md5-util dependency
2023-12-06 09:35:05 +01:00
Gábor Farkas
5be99912ff
mssql: adjust unit test to minimize xorm-usage ( #78597 )
...
* mssql: adjust unit test to minimize xorm-usage
* lint fix
2023-11-24 13:12:19 +01:00
Will Browne
9d92818cae
Plugins: Update PDC pattern from latest plugin SDK changes ( #76576 )
...
* update with sdk
* do sql
* fix core plugins
* fix proxy settings
* bump SDK version
* tidy
* enable pdc for test
* add codeowners
* bump dep
* go mod tidy
* bump SDK
2023-10-16 16:40:04 +02:00
Dan Cech
91cf4f0c1c
Revert "Plugins: Update PDC pattern from latest plugin SDK changes" ( #76565 )
...
Revert "Plugins: Update PDC pattern from latest plugin SDK changes (#76036 )"
This reverts commit 151f6d6216 .
2023-10-13 12:35:16 -04:00
Will Browne
151f6d6216
Plugins: Update PDC pattern from latest plugin SDK changes ( #76036 )
...
* update with sdk
* do sql
* fix core plugins
* fix proxy settings
* bump SDK version
* tidy
* enable pdc for test
* add codeowners
2023-10-13 14:42:15 +02:00
Will Browne
7fca1bde54
Plugins: Set grafana config, plugin version and user agent on plugin requests ( #75171 )
...
* first pass
* fixup
* remove test line
* fix tests
* use new fields
* fix imports + formatting
* fix tests
* rollback changes
* undo whitespace
* apply pr feedback
2023-09-21 11:33:31 +02:00
Oscar Kilhed
579709c7a6
MSSQL: Add support for MI authentication to MSSQL ( #73597 )
...
* Add support for MI authentication to MSSQL
This adds support for managed identity authentication for MSSQL managed
instances running in Azure.
Co-authored-by: baldm0mma <jev.forsberg@grafana.com >
2023-09-06 18:27:19 +02:00
Ryan McKinley
025b2f3011
Chore: use any rather than interface{} ( #74066 )
2023-08-30 18:46:47 +03:00
Stephanie Hingtgen
4ece133fce
Secure socks proxy: use Grafana Plugin SDK ( #71616 )
2023-07-18 15:23:02 -06:00
Michael Mandrus
66d2214c3b
Config: Add configuration option to define custom user-facing general error message for certain error types ( #70023 )
...
---------
Co-authored-by: Summer Wollin <summer.wollin@grafana.com >
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com >
2023-06-16 10:46:47 -05:00
Will Browne
286b9e08e9
Plugins: Bump Plugin SDK version and address instance management breaking changes ( #68900 )
...
* bump sdk and propagate ctx
* fix tests
2023-05-24 10:19:34 +02:00
Emil Tullstedt
b0e681c339
Chore: Update target in go.mod to 1.20 and golangci-lint to v1.52.2 ( #67102 )
2023-05-10 13:47:35 +02:00
Jev Forsberg
86228ba1a0
Datasource: Fix missing raw SQL query in Query Inspector when query returns zero rows ( #67844 )
...
* baldm0mma/issue5799/ add empty frame with all meta data
* baldm0mma/issue5799/ add null test
* write an integration test around query results with empty rows
* baldm0mma/issue5799/ add tests to mssql and postgres
* remove use of apparently reserved keyword in mysql8
* baldm0mma/issue5799
* baldm0mma/issue5799/ update tests
* baldm0mma/issue5799/ update test structs
* baldm0mma/issue5799/ update annotation
---------
Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com >
2023-05-09 08:29:02 -06:00
Stephanie Hingtgen
255d8f3326
Plugins: Remove secure socks proxy feature toggle ( #66611 )
2023-04-18 11:11:23 -06:00
Kyle Cunningham
92d92187d9
SQL Datasources: Update Max Connection and Max Idle Connection Defaults to 100 and add auto mode ( #65834 )
...
* Update connection configuration for SQL datasources
* Working auto state for connection numbers
* Add migration
* Use defaults from constants file
* Remove dead code
* Add tests and restructure useMigrateDatabaseField
* Update function names
* Update docs
* Make sure we don't continually issue updates
* Update docs
* Use onOptionsChnage in ConnectionLimits
* Update docs
* Clean up docs
* Update migration
* Fix default values in docs
* Fix spacing issue
* Fix test
* Update default values for SQL connections
* Include consts
* Allow override for default SQL datasource connection parameters
* Fix linter errors
* Remove extra @ts-ignore
* Centralize logic for default values
* Remove debugging
* Remove unecessary function
* Update configuration docs
* minor suggested change
* Fix comment misspelling
* Remove unecessary default setting code
* Update docs to indicate that code was included for backport version
* Remove dead code
---------
Co-authored-by: lwandz13 <larissa.wandzura@grafana.com >
2023-04-17 11:44:05 +03:00
Stephanie Hingtgen
211beae736
MSSQL: Update forked go-mssqldb dependency ( #65658 )
2023-03-31 10:07:37 -06:00
Stephanie Hingtgen
10db808ea1
Plugins: Add sql support for the secure socks proxy ( #64630 )
2023-03-16 06:54:19 -06:00
Kyle Cunningham
356e2e1933
MSSQL Datasource: Revert functions within macros change ( #63592 )
...
* Revert functions within macros change
* Add tests for function and macro for mssql
* Remove macro support tests
---------
Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com >
2023-02-22 22:02:05 +01:00
Victor Marin
62b078e4e4
Fix MSSQL queries failing because of bad interpolation ( #63167 )
...
fix failing mssql queries
2023-02-09 10:09:52 +02:00
Victor Marin
9fc3b360a4
MSSQL: Add support for macro function calls ( #62742 )
...
* MSSQL: Add support for macro function calls
* Add tests
2023-02-03 17:23:46 +02:00
Zoltán Bedi
c25fe34ac0
SQL Datasources: Use health check for config test ( #59867 )
...
* SQL Datasources: Use health check for config test
* Remove unnecessary test
* Fix test errors
* Revert mysql go driver update
* Use transform query error
* Use TransformQueryError from sql_engine
2022-12-19 17:17:52 +01:00
Zoltán Bedi
d65899de7b
SQL Datasources: Move database setting to jsonData ( #58649 )
...
* Datasource settings: Add deprecation notice for database field
* SQL Datasources: Migrate from settings.database to settings.jsonData.database
* Check jsonData first
* Remove comment from docs
2022-12-13 09:56:52 +01:00
Sasha Melentyev
c02003af3c
Refactor time durations ( #58484 )
...
This change uses `time.Second` in place of `1000 * time.Millisecond` and `time.Minute` in place of `60*time.Second`.
2022-11-22 15:09:15 +08:00
Victor Marin
6e776d0fec
MSSQL: Add connection timeout setting in configuration page ( #58631 )
...
* MSSQL add connection timeout
* add docs
* Update docs and add min value to the timeout setting
2022-11-11 14:04:08 -05:00