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
Fabrizio
288b06b64c
Loki: Replace imports of infra/log
with SDK ( #84336 )
2024-03-20 11:25:35 +02:00
Ivana Huckova
77b1c97482
Elasticsearch: Remove xpack button and make includeFrozen not dependant on it ( #84734 )
2024-03-20 09:59:26 +01:00
Gábor Farkas
fba2b61408
postgres: removed unused code ( #84736 )
...
sql: removed unused code
2024-03-20 09:28:42 +01:00
Andreas Christou
6bb7ab261a
AzureMonitor: User authentication support ( #81918 )
...
* Stub out frontend user auth
* Stub out backend user auth
* Add context
* Reorganise files
* Refactor app registration form
* Alert for user auth service principal credentials
* AzureMonitor: Add flag for enabling/disabling fallback credentials for current user authentication (#82332 )
* Rename field
* Add fallback setting
* Update tests and mock
* Remove duplicate setting line
* Update name of property
* Update frontend settings
* Update docs and default config files
* Update azure-sdk
* Fix lint
* Update test
* Bump dependency
* Update configuration
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
* Docs review
* AzureMonitor: User authentication frontend updates (#83107 )
* Rename field
* Add fallback setting
* Update tests and mock
* Remove duplicate setting line
* Update name of property
* Update frontend settings
* Update docs and default config files
* Add alerts to query editor
- Add authenticatedBy property to grafana/data
- Update mocks
- Update query editor to disable it under certain circumstances
- Update tests
* Add separate FallbackCredentials component
- Reset AppRegistrationCredentials component to only handle clientsecret credentials
- Update AzureCredentialsForm
- Update selectors
- Update tests
- Update credentials utility functions logic
* Alert when fallback credentials disabled
* Update condition
* Update azure-sdk
* Fix lint
* Update test
* Remove unneeded conditions
* Set auth type correctly
* Legacy cloud options
* Fix client secret
* Remove accidental import
* Bump dependency
* Add tests
* Don't use VerticalGroup component
* Remove unused import
* Fix lint
* Appropriately set oAuthPassThru and disableGrafanaCache properties
* Clear azureCredentials on authType change
* Correctly retrieve secret
* Fix bug in authTypeOptions
* Update public/app/plugins/datasource/azuremonitor/components/ConfigEditor/CurrentUserFallbackCredentials.tsx
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
* Update public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
* Update public/app/plugins/datasource/azuremonitor/components/ConfigEditor/CurrentUserFallbackCredentials.tsx
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
* Add documentation links
* Fix broken link
---------
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
* AzureMonitor: Update docs for current user authentication (#83440 )
* Rename field
* Add fallback setting
* Update tests and mock
* Remove duplicate setting line
* Update name of property
* Update frontend settings
* Update docs and default config files
* Add alerts to query editor
- Add authenticatedBy property to grafana/data
- Update mocks
- Update query editor to disable it under certain circumstances
- Update tests
* Add separate FallbackCredentials component
- Reset AppRegistrationCredentials component to only handle clientsecret credentials
- Update AzureCredentialsForm
- Update selectors
- Update tests
- Update credentials utility functions logic
* Alert when fallback credentials disabled
* Update condition
* Update azure-sdk
* Fix lint
* Update test
* Remove unneeded conditions
* Set auth type correctly
* Legacy cloud options
* Fix client secret
* Remove accidental import
* Bump dependency
* Add tests
* Don't use VerticalGroup component
* Remove unused import
* Update docs
* Fix lint
* Appropriately set oAuthPassThru and disableGrafanaCache properties
* Clear azureCredentials on authType change
* Correctly retrieve secret
* Feedback
* Spelling
* Update docs/sources/datasources/azure-monitor/_index.md
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
* Update docs/sources/datasources/azure-monitor/_index.md
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
* Update docs/sources/datasources/azure-monitor/_index.md
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
* Update docs/sources/datasources/azure-monitor/_index.md
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
---------
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
* Docs review
* Update docs with additional configuration information
* Fix to appropriately hide the query editor
* Typo
* Update isCredentialsComplete
* Update test
---------
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
2024-03-19 16:32:24 +00: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
Fabrizio
c1c9ccb8e8
Loki: Replace imports of infra/httpclient
with SDK ( #84337 )
2024-03-19 10:59:53 +01:00
Isabella Siu
0606a8e413
CloudWatch: Static labels should use label name ( #84611 )
...
CloudWatch: static labels should use label name
2024-03-18 17:30:59 -04:00
Ivana Huckova
494d169980
Elasticsearch: Fix legend for alerting, expressions and previously frontend queries ( #84485 )
...
* Elasticsearch: Fix legend for alerting, expressions and previously frontend queries
* Add comment
* Update comment
2024-03-18 18:01:33 +01:00
Rob
677b765dab
NodeGraph: Edge color and stroke-dasharray support ( #83855 )
...
* Adds color and stroke-dasharray support for node graph edges
Adds support for providing color, highlighted color, and visual display of node graph edges as dashed lines via stroke-dasharray.
* Updates node graph documentation
* Updates documentation
Adds default for `highlightedColor`
* Update docs/sources/panels-visualizations/visualizations/node-graph/index.md
Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>
* Update packages/grafana-data/src/utils/nodeGraph.ts
Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>
* Update docs/sources/panels-visualizations/visualizations/node-graph/index.md
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
* Removes highlightedColor; deprecates highlighted
Per [request](https://github.com/grafana/grafana/pull/83855#issuecomment-1999810826 ), deprecates `highlighted` in code and documentation, and removes `highlightedColor` as an additional property. `highlighted` will continue to be supported in its original state (makes the edge red), but is superseded if `color` is provided.
* Update types.ts
Missed a file in my last commit. Removes `highlightedColor` and deprecates `highlighted`.
* Add test scenario in test data source
---------
Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2024-03-18 16:26:22 +01:00
Andrej Ocenas
5b085976bf
Pyroscope: Fix template variable support ( #84477 )
2024-03-18 14:25:47 +01:00
Joey
f5e83d07a7
Tempo: Deprecate old search ( #84498 )
...
* Add logic to update query from old search to new search i.e. nativeSearch to traceqlSearch
* Remove nativeSearch query and transform
* Update tracking
* Remove nativeSearch from query field
* Udpdate gen comment
* Fix tests
* Add tests
* Remove comments
* Remove log
* Remove log
* Update comment
* Update ids etc for migratedQuery
* Remove old nativeSearch folder
* Fix tests, manual testing
2024-03-18 09:17:10 +00:00
Isabella Siu
a0b68deae4
Cloudwatch: Remove cloudWatchWildCardDimensionValues feature toggle ( #84329 )
2024-03-15 09:49:53 -04:00
Gábor Farkas
97521ef988
postgres: improve snapshot-tests for long/wide situations ( #84387 )
2024-03-14 12:37:04 +01:00
Sven Grossmann
34f9bff9e0
Loki: Fix null pointer exception in case request returned an error ( #84398 )
...
Loki: Fix nullpointer in case query returned an error
2024-03-13 18:14:21 +01:00
Gábor Farkas
eca1bba01e
postgres: add more tests (to handle zero-rows queries) ( #84384 )
2024-03-13 16:23:50 +01:00
Joey
1f2e9a544d
Tempo: Remove Loki tab ( #84346 )
...
* Update docs
* Remove loki tab from config settings
* Remove loki query field
* Remove loki search from ds, resultTransformer, tracking and tests
* Cleanup removal of loki search
* Remove loki section from query editor docs
* Remove search type
2024-03-13 14:22:20 +00:00
Ivana Huckova
2a1a5145d0
Elasticsearch: Fix using of individual query time ranges when querying ( #84201 )
...
* WIP - proof of concept
* Update pkg/tsdb/elasticsearch/client/client.go
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
* update and add test
* lint
* Fix lint
* Bring back logging when creating client
---------
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-03-13 12:49:35 +02:00
Gábor Farkas
ecd6de826a
Postgres: Switch the datasource plugin from lib/pq to pgx ( #83768 )
...
postgres: switch from lib/pq to pgx
2024-03-13 09:52:39 +01:00
Sarah Zinger
3f5526b915
Cloudwatch: Fix issue with Grafana Assume Role ( #84315 )
2024-03-12 16:30:54 -04:00
Andres Martinez Gotor
265200799d
Chore: Update grafana-plugin-sdk ( #84289 )
2024-03-12 17:13:23 +01:00
ismail simsek
22860a7978
Chore: Use mapUtil from grafana-plugin-sdk-go ( #84297 )
...
use mapUtil from grafana-plugin-sdk-go
2024-03-12 10:08:10 -05:00
Josh Michielsen
297d73a7df
InfluxDB: Add configuration option for enabling insecure gRPC connections ( #83834 )
...
* InfluxDB: add configuration option for enabling insecure gRPC connections
* fix: add insecureGrpc to InfluxOptions
* rename options label 'gRPC' -> 'Connection'
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
* update docs: rename options label 'gRPC' -> 'Connection'
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
* default insecure connection boolean to false in frontend
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
* run prettier:write
---------
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-03-12 13:36:11 +01:00
Adam Yeats
c2b94429e4
Google Cloud Monitor: Fix res
being accessed after it becomes nil
in promql_query.go
( #84223 )
...
Fix res being accessed after it becomes nil in promql_query.go
2024-03-12 10:38:16 +01:00
ismail simsek
3fb6319d1b
Prometheus: Introduce prometheus backend library ( #83952 )
...
* Move files to prometheus-library
* refactor core prometheus to use prometheus-library
* modify client transport options
* mock
* have a type
* import aliases
* rename
* call the right method
* remove unrelated test from the library
* update codeowners
* go work sync
* update go.work.sum
* make swagger-clean && make openapi3-gen
* add promlib to makefile
* remove clilogger
* Export the function
* update unit test
* add prometheus_test.go
* fix mock type
* use mapUtil from grafana-plugin-sdk-go
2024-03-11 17:22:33 +01:00
carrychair
0913324668
Chore: Remove repetitive words ( #84132 )
...
remove repetitive words
Signed-off-by: carrychair <linghuchong404@gmail.com>
2024-03-11 08:55:18 -04:00
Ryan McKinley
d82f3be6f7
QueryService: Use types from sdk ( #84029 )
2024-03-08 18:12:59 +02:00
ismail simsek
2cce9aa2f7
Chore: Move tracing function in influxdb package ( #83899 )
...
move tracing function in influxdb package
2024-03-05 07:34:08 -06:00
Ryan McKinley
5aa965b9e9
Prometheus: remove cue definition ( #83808 )
...
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-03-04 10:23:32 -08:00
foehammer
1c2b8576e1
CloudWatch: de-duplicate implementation of AWSDatasourceSettings.Load in LoadCloudWatchSettings ( #83556 )
2024-03-01 10:48:20 -05:00
Gábor Farkas
142ac22023
Revert "Postgres: Switch the datasource plugin from lib/pq to pgx" ( #83760 )
...
Revert "Postgres: Switch the datasource plugin from lib/pq to pgx (#81353 )"
This reverts commit 8c18d06386
.
2024-03-01 12:20:47 +01:00
JERHAV
b2cb8d8038
CloudWatch: Remove unnecessary sortDimensions function ( #83450 )
...
Remove sortDimension
Closes #83338
2024-02-29 08:54:37 -08:00
Gábor Farkas
8c18d06386
Postgres: Switch the datasource plugin from lib/pq to pgx ( #81353 )
...
* postgres: switch from lib/pq to pgx
* postgres: improved tls handling
2024-02-28 07:52:45 +01:00
Adam Yeats
facb19fefb
AzureMonitor: Fix mishandled resources vs workspaces ( #83184 )
2024-02-27 16:46:29 +01:00
Will Browne
5edd96ae77
Plugins: Refactor plugin config into separate env var and request scoped services ( #83261 )
...
* seperate services for env + req
* merge with main
* fix tests
* undo changes to golden file
* fix linter
* remove unused fields
* split out new config struct
* provide config
* undo go mod changes
* more renaming
* fix tests
* undo bra.toml changes
* update go.work.sum
* undo changes
* trigger
* apply PR feedback
2024-02-27 12:38:02 +01:00
Isabella Siu
bdeff84068
CloudWatch: Refactor "getDimensionValuesForWildcards" ( #83335 )
2024-02-26 16:19:45 -05:00
Isabella Siu
44639e1063
CloudWatch: Fetch externalId from settings instead of env ( #83332 )
2024-02-26 16:18:22 -05:00
Isabella Siu
0bfe9db668
CloudWatch: Move SessionCache onto the instance ( #83278 )
2024-02-26 15:59:54 -05:00
Isabella Siu
7f8a87458f
CloudWatch: Remove unused handleGetRegions and regionCache ( #83333 )
...
* remove unused handleGetRegions and regionCache
* cleanup
2024-02-26 09:35:59 -05:00
Gábor Farkas
ae77fe3602
postgres: do not use unexported grafana-core config ( #83241 )
...
* postgres: do not use unexported grafana-core config
* fixed wrong value
2024-02-22 16:47:03 +01:00
Gábor Farkas
3ba33fe278
mysql: do not use unexported grafana-core config ( #83062 )
...
* mysql: do not use unexported grafana-core config
* updated test
2024-02-22 14:22:14 +01:00
Pablo
cfcf03bf7a
CloudWatch: Add Firehose kms-related metrics ( #83192 )
...
Add KMS firehose metrics
2024-02-21 14:57:31 -05:00
Jan Garaj
8162ec2960
CloudWatch: Update AWS/ES metrics ( #83037 )
...
CloudWatch: update AWS/ES metrics
2024-02-20 13:46:29 -05:00
Jan Garaj
ef23148b36
CloudWatch: Update AWS/EC2 metrics ( #83039 )
...
CloudWatch: update AWS/EC2 metrics
2024-02-20 12:13:50 -05:00
Jan Garaj
3829da0616
CloudWatch: Update AWS/Lambda metrics ( #83038 )
2024-02-20 16:39:03 +01:00
Ida Štambuk
5431c51490
Cloudwatch: Add linting to restrict imports from core ( #82538 )
...
---------
Co-authored-by: Kevin Yu <kevinwcyu@users.noreply.github.com>
2024-02-20 14:52:11 +01:00
Jan Garaj
914f033497
CloudWatch: Update AWS/AutoScaling metrics ( #83036 )
2024-02-20 11:22:28 +01:00
Jan Garaj
bfd5475e1e
CloudWatch: Update AWS/Kafka metrics ( #83035 )
2024-02-19 12:04:23 +01:00
Gábor Farkas
7f77be8f85
postgres: tls: only use non-empty certificates ( #82182 )
2024-02-19 11:58:42 +01:00
Sven Grossmann
7f7ab32444
Elasticsearch: Add error source to logs ( #82901 )
2024-02-16 16:28:46 +01:00