ismail simsek
fec7765111
Chore: InfluxQL stream parser improvements ( #85041 )
...
* don't iterate over first column as it is a time column already
* don't iterate over first column as it was handled earlier
* add more flexibility to run the commands
* Update pkg/tsdb/influxdb/influxql/converter/converter.go
Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
---------
Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
2024-03-26 19:25:03 +02:00
Sven Grossmann
c80b31a0d4
Loki: Remove API restrictions on resource calls ( #85191 )
...
Loki: Remove API restrictions
2024-03-26 18:15:35 +01:00
Andreas Christou
19159a89a2
SQLEngine: Use debug
method instead of custom implementation ( #85118 )
...
Use debug method instead of custom implementation
2024-03-26 11:27:07 +00:00
Sven Grossmann
9a8ae3c932
Loki: Support custom X-Query-Tags
header ( #85123 )
...
* Loki: Support custom `X-Query-Tags` header
* add comment
2024-03-26 13:08:09 +02:00
Gábor Farkas
3b7ee3a56b
MySQL: snapshot tests ( #84846 )
...
mysql: add snapshot tests
2024-03-26 10:24:33 +01:00
Gábor Farkas
c835022861
postgres: improved tests ( #84677 )
...
* postgres: tests: better test aligning time-series results
* postgres: add snapshot test for a backward-compat code
2024-03-26 10:22:58 +01:00
Ryan McKinley
4cda34ff7d
Expressions: Create json schema for query types ( #84032 )
2024-03-26 06:58:56 +02:00
Tristan
78c6c7fef4
CloudWatch: Add additional AWS/SageMaker metrics ( #85009 )
...
add additional AWS/SageMaker metrics for customer
2024-03-22 10:14:21 -07:00
ismail simsek
016d6f2f6d
InfluxDB: Fix alias interpolation when it has $__interval or multiple tags ( #84940 )
...
fix $__interval interpolating in alias
2024-03-22 11:27:04 +01:00
Erik Sundell
29d4f6a217
Datasource: Change query filtering ( #84656 )
...
* call filterQuery from queryrunner
* test query hide filtering
* fix more broken tests
* lint errrors
* remove redundant filterQuery call
* skip filter in variable queries
* fix broken cypress test
* change tooltip text
* fix translations
* fix comments
* do not execute query is targets are empty
* add more tests
* remove unsued import
* update translations
* revert id change
* change header text
* update comment for hide prop
* rename hide query prop
* change tooltip and introduce different toggle state text
* update tests
* update comment and regenerate types
* run extract again
* fix broken e2e test
* track event
* fix build issues
* revert changes in wire file
2024-03-21 13:39:39 +01:00
Selene
473898e47c
Core: Remove thema and kindsys dependencies ( #84499 )
...
* Move some thema code inside grafana
* Use new codegen instead of thema for core kinds
* Replace TS generator
* Use new generator for go types
* Remove thema from oapi generator
* Remove thema from generators
* Don't use kindsys/thema for core kinds
* Remove kindsys/thema from plugins
* Remove last thema related
* Remove most of cuectx and move utils_ts into codegen. It also deletes wire dependency
* Merge plugins generators
* Delete thema dependency 🎉
* Fix CODEOWNERS
* Fix package name
* Fix TS output names
* More path fixes
* Fix mod codeowners
* Use original plugin's name
* Remove kindsys dependency 🎉
* Modify oapi schema and create an apply function to fix elasticsearch errors
* cue.mod was deleted by mistake
* Fix TS panels
* sort imports
* Fixing elasticsearch output
* Downgrade oapi-codegen library
* Update output ts files
* More fixes
* Restore old elasticsearch generated file and skip its generation. Remove core imports into plugins
* More lint fixes
* Add codeowners
* restore embed.go file
* Fix embed.go
2024-03-21 11:11:29 +01:00
Andres Martinez Gotor
9298a5fcb5
AzureMonitor: Update standalone HTTP middlewares ( #84833 )
2024-03-21 08:53:27 +01:00
Andreas Christou
00c094f7cf
Azure: Update data link title for clarity ( #84686 )
...
Update data link title for clarity
2024-03-20 13:39:00 -05: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
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
ismail simsek
94f544c9f6
InfluxDB: Fix tag interpolation when varable used within a regex pattern ( #82785 )
...
* fix tag interpolation
* remove redundant variables
2024-02-16 10:20:09 +01:00
ismail simsek
916a7bbb08
Prometheus: Move converter in prometheus package ( #82269 )
...
* use jsoniter from sdk
* move converter into the prometheus
* remove jsonitere
* unit test
* remove redundant ownership
2024-02-15 15:09:30 +01:00
Gábor Farkas
c6d91e9065
sql: remove unused code ( #82527 )
2024-02-15 12:25:35 +01:00
Gábor Farkas
1bab82ab36
mssql: socks proxy: use plugin-sdk ( #82407 )
2024-02-15 12:01:18 +01:00
Gábor Farkas
2938f891dd
mysql: socks proxy: use plugin-sdk ( #82375 )
2024-02-14 13:05:47 +01:00
Gábor Farkas
4c221966e4
postgres: socks proxy: use plugin-sdk ( #82376 )
2024-02-14 13:05:31 +01:00
ismail simsek
3f940f4da1
Chore: Use jsoniter in influxdb from grafana-plugin-sdk-go ( #82360 )
...
use jsoniter from grafana-plugin-sdk-go
2024-02-13 17:47:00 +01:00
Ivana Huckova
082f020b7d
Elasticsearch: Fix resource calls for paths that include :
( #82327 )
...
* Elasticsearch: Fix resource calls for paths that include :
* Add tests
* Add test case and comment
* Remove redundant comment
2024-02-13 13:44:08 +01:00
ismail simsek
34fddfce10
Chore: Use jsoniter in cloud-monitoring from grafana-plugin-sdk-go ( #82358 )
...
use jsoniter from grafana-plugin-sdk-go
2024-02-13 12:23:37 +01:00
Ryan McKinley
0c6e409350
Chore: Update arrow and prometheus dependencies ( #82215 )
...
* update arrow and prometheus
* keep codeowner
* use compare
* use grafana-plugin-sdk-go v0.210.0
---------
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-02-13 01:50:25 +01:00
Gábor Farkas
67f006a91d
sql: remove setting-import from sqleng ( #82088 )
2024-02-12 12:37:23 +01:00
Alyssa Bull
77111a0714
Cloud Monitoring: Fix naming and warnings ( #82271 )
2024-02-09 11:22:44 -07: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
ismail simsek
b0dfeb1911
Chore: Clean up intervalv2 functions ( #82074 )
...
* clean up intervalv2 functions
* use roundInterval from grafana-plugin-sdk-go
* use from grafana-plugin-sdk-go
* have intervalv2 in publicdashboards and remove tsdb/intervalv2
* legacydata cleanup
* remove unused variables
* Update pkg/tsdb/legacydata/interval/interval.go
Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
---------
Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
2024-02-09 11:39:21 +01:00
Sergey Kostrukov
cc33f0bd10
Prometheus: Azure scopes from Grafana Azure SDK ( #82023 )
...
* Prometheus: Azure scopes from Grafana Azure SDK
* Refactor and add tests
* Cosmetic fix
* Cosmetic change 2
2024-02-08 23:47:09 +01:00
Gábor Farkas
2250e358c7
postgres: updated snapshot test with better floating point values ( #82168 )
2024-02-08 15:52:20 +01:00
Sergey Kostrukov
9bfb7e1f0b
Azure Monitor: Azure routes from Grafana Azure SDK ( #82043 )
...
Prometheus: Azure routes from Grafana Azure SDK
2024-02-08 10:42:20 +00:00
ismail simsek
b25ffe2b15
Prometheus: Remove all intervalv2 imports and use gtime functions wherever it's possible ( #82064 )
...
* Remove all intervalv2 imports and use gtime functions where ever it's possible
* Add a comment line
* use roundInterval from grafana-plugin-sdk-go
2024-02-07 22:32:57 +02:00
Nathan Vērzemnieks
b5f26560c2
Cloudwatch: Remove core imports from infra/log ( #81543 )
...
* Cloudwatch: use logging from plugin-sdk-go instead of infra/log
* Add a link to the TODO issue for moving `instrumentContext`
2024-02-07 13:53:05 +01:00
Andres Martinez Gotor
9c0501a167
Chore: Fix rootDir path when compiling core ds ( #82068 )
2024-02-07 13:00:13 +01:00
Gábor Farkas
420a23c064
sql: simplify time-conversion code ( #81499 )
...
sql: simplify code
2024-02-07 12:42:22 +01:00
ismail simsek
2679599968
Prometheus: Remove grafana/pkg/setting imports ( #81813 )
...
* upgrade grafana-azure-sdk-go v1.12.0
* add AzureAuthEnabled to config
* remove grafana/pkg/setting imports
* remove grafana/pkg/setting imports
* remove comment
* add better error message
* Fix the unit test
* fix lint
2024-02-07 11:01:09 +01:00
Gábor Farkas
8616f2e80a
sql: removed unnecessary error-check ( #81808 )
...
* sql: removed unnecessary error-check
* updated tests
2024-02-07 08:41:49 +01:00
Gábor Farkas
7b8c7b623c
sql: remove the usage of "errutil" ( #81888 )
2024-02-07 08:39:24 +01:00
Isabella Siu
3b852bb582
CloudWatch: Remove references to pkg/infra/metrics ( #81744 )
...
CloudWatch: remove references to pkg/infra/metrics
2024-02-06 21:21:55 +02:00
DugeraProve
6697da6176
Cloudwatch: Add AWS/EMRServerless and AWS/KafkaConnect Metrics ( #79532 )
2024-02-06 17:21:49 +01:00
ismail simsek
994aedaac3
Chore: Update InfluxDB response parser test files ( #81899 )
...
* add show diagnostics tests
* update test files
2024-02-06 11:31:55 +01:00
Gábor Farkas
33f80f7a16
mysql: remove dev-mode log ( #81894 )
2024-02-06 09:29:50 +01:00
Sven Grossmann
bd48c06f95
Elasticsearch: Set middlewares from Grafana's httpClientProvider
( #81814 )
...
Elasticsearch: Set middlewares from httpClientProvider
2024-02-06 07:11:54 +01:00
Isabella Siu
81da3ff753
CloudWatch: Remove dependencies on grafana/pkg/setting ( #81208 )
2024-02-05 13:59:32 -05:00
Gábor Farkas
ddf124de9d
intervalv2: use duration-formatting logic from plugin-sdk-go ( #81690 )
2024-02-05 11:00:41 +01:00
Gábor Farkas
8175b31e16
sql: make sure queries do not have fill-params ( #81576 )
2024-02-05 08:08:35 +01:00
lean.dev
f23b993014
CloudWatch: Only override contextDialer when using PDC ( #80992 )
2024-02-02 15:45:57 -03:00
Andrej Ocenas
de4171862c
Tempo: Add custom headers middleware for grpc client ( #81693 )
2024-02-02 16:49:51 +01:00
Gábor Farkas
c92d3b002b
sql: use interval-formatting from the sdk ( #81764 )
2024-02-02 13:18:22 +01:00
Ivana Huckova
f2936d6695
Elasticsearch: Fix creating of legend so it is backward compatible with frontend produced frames ( #81708 )
...
* Elasticsearch: Fix creating of legend so it is backward compatible with frontend produced frames
* Update tests
2024-02-02 12:47:45 +01:00
Mikel Vuka
65e9990a87
Elasticsearch: Implement CheckHealth method in the backend ( #81671 )
...
* Elasticsearch: Implement CheckHealth method
* improve logger output
* remove frontend healthcheck
* Revert "remove frontend healthcheck"
This reverts commit 676265f39e
.
* adapt test
---------
Co-authored-by: Sven Grossmann <svennergr@gmail.com>
2024-02-02 11:08:52 +01:00
ismail simsek
372cf797d1
Chore: Update tests and import orders in prometheus backend ( #81732 )
...
* use fmt instead of grafana-cli/log
* reorder imports
* reorder imports
2024-02-01 20:16:21 +01:00
ismail simsek
8fea101931
Chore: Use maputil functions from grafana-azure-sdk-go ( #81734 )
...
use maputil functions from grafana-azure-sdk-go
2024-02-01 20:16:07 +01:00
ismail simsek
8fc8b03d1d
Prometheus: Remove featuremgmt imports ( #81586 )
...
* remove featuremgmt imports
* pass down feature flags instead of reading them for every query execution
2024-02-01 18:07:32 +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
ismail simsek
536153c336
InfluxDB: Run queries in parallel behind influxdbRunQueriesInParallel feature toggle ( #81209 )
...
* create the feature flag
* bring the concurrency in to the play
* Update feature flag
* Use concurrency number from settings
* update influxdb dependency
* use ConcurrentQueryCount from plugin-sdk-go
* use helper method for concurrent query count
* log the error
* add value guard
* add unit tests
* handle concurrency error
2024-02-01 11:58:24 +01:00
ismail simsek
4561863fca
Chore: Remove unused header params in prometheus request ( #81684 )
...
Remove unused header params
2024-02-01 11:17:38 +01:00
ismail simsek
177fa1b947
InfluxDB: Fix template variable interpolation ( #80971 )
...
* use regex as templateSrv replace format
* use regex as templateSrv replace format for raw queries
* import path fix
* don't use regex formatter
* tag value escape
* tag value escape with wrappers
* polished interpolation logic
* update unit tests
* comments and more place to update
* unit test update
* fix escaping
* handle the string and array of string type separately
* update variable type
2024-02-01 00:30:21 +01:00
Ryan McKinley
e013cd427c
K8s: Add basic query service ( #80325 )
2024-01-31 20:36:51 +02:00
Andrej Ocenas
cb945aa5df
NodeGraph: Use layered layout instead of force based layout ( #78957 )
2024-01-31 17:26:12 +01:00
Alyssa Bull
be6efd9518
Cloud Monitoring: Add standalone files and modify plugin.json ( #81596 )
2024-01-30 15:52:44 -07:00
ismail simsek
0139ac205d
Chore: Remove disablePrometheusExemplarSampling feature toggle ( #81579 )
...
remove disablePrometheusExemplarSampling ft
2024-01-30 17:00:04 +01:00
Nathan Vērzemnieks
ec4fafa08f
Cloudwatch: Deprecate cloudwatchNewRegionsHandler feature toggle and remove core imports from featuremgmt ( #81310 )
...
* Remove core imports from grafana/pkg/services/featuremgmt in CloudWatch
2024-01-30 13:11:52 +01:00
Kyle Brandt
43d0664340
Prometheus: (Experimental) Inject label matchers into queries (also change drone to fix ARM rpm build and Update Swagger) ( #81396 )
...
- Feature Toggle is `promQLScope`.
- Query property is:
"scope": {
"matchers": "{job=~\".*\"}"
}
Misc:
- Also updates drone GO version to address ARM bug https://github.com/golang/go/issues/58425
- Also updates Swagger defs that were causing builds to fail
---------
Co-authored-by: Kevin Minehart <kmineh0151@gmail.com>
2024-01-29 22:22:17 +02:00
Gábor Farkas
ba544e5b33
postgres: tests: improved number->timestamp tests ( #81495 )
...
* postgres: tests: nicer values
* postgres: tests: add float-to-timestamp tests
2024-01-29 18:27:15 +02:00
Alyssa Bull
2d432d6ff3
Plugins: Externalize Cloud Monitoring data source ( #80181 )
2024-01-29 09:24:23 -07:00
Matias Chomicki
5486a111e6
parseSupportingQueryType: add missing case for infinite scroll ( #81492 )
2024-01-29 18:12:03 +02:00
Matias Chomicki
df05c79d91
Infinite scrolling: Add X-Query-Tag header ( #81089 )
2024-01-29 11:24:05 +01:00
Andrew Hackmann
b411aa7266
Azure Monitor: use NewLoggerWith func instead of backend.Logger ( #81124 )
...
using NewLoggerWith
2024-01-26 22:53:55 +00:00
Domas
e9a99a46b0
Tempo: Support multiple filter expressions for service graph queries ( #81037 )
...
* support "OR" for service graph queries
* make betterer happy
* continue appeasing betterer
* betterer results
2024-01-26 16:37:49 +02:00
Gábor Farkas
7230ec88a1
postgres: test: remove unused code ( #81330 )
2024-01-26 10:45:17 +02:00
Gábor Farkas
b1d1aa667a
postgres: refactor code that is called by tests ( #81279 )
...
* postgres: refactor code that is called by tests too
* removed debug log
2024-01-26 09:11:25 +01:00
ismail simsek
7d0017f3f2
InfluxDB: Use grafana timeout value for flux queries ( #81252 )
...
* use grafana timeout for flux queries
* get timeout from settings
* fix test
2024-01-25 17:05:08 +01:00
Isabella Siu
5772662cee
CloudWatch: decouple from ngalert/models and query packages ( #81210 )
2024-01-25 09:40:55 -05:00
Ida Štambuk
9b4c78dbc9
Cloudwatch: Import httpClient from grafana-plugin-sdk-go instead of grafana/infra ( #81187 )
2024-01-25 13:33:31 +01:00
ismail simsek
14e55fefbb
InfluxDB: Check the value type before casting it to the string ( #80986 )
...
* Check the value type before casting it to the string
* set visualization as table by default
* append all values for show diagnostics
* golangci-lint
* append metadata only to first frame
2024-01-25 11:28:25 +01:00
Andres Martinez Gotor
a06197188f
Chore: Fix plugins magefile ( #81146 )
2024-01-24 14:01:15 +01:00
Andres Martinez Gotor
1c02220916
Chore: Fix plugins magefile for Azure ( #81138 )
2024-01-24 14:18:18 +02: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
Andrej Ocenas
59595c7318
Table: Keep expanded rows persistent when data changes if it has unique ID ( #80031 )
2024-01-23 14:14:57 +01:00
Sven Grossmann
3d033839d7
Elasticsearch: Fix URL creation and allowlist for /_mapping
requests ( #80970 )
...
* Elasticsearch: Fix URL creation for mapping requests
* remove leading slash by default
* add comment for es route
* hardcode `_mapping`
* update doc
2024-01-23 12:41:13 +01:00
Sven Grossmann
b315c5e54d
Loki: Also log statusSource
in error case ( #81040 )
2024-01-23 11:16:29 +01:00
Brendan O'Handley
3409e0ea5a
Prometheus: Invest in tests and docs for min interval or min step explanation ( #80165 )
...
* add clearer comment for function def
* update test to reflect change in range for 1w step
* clarify docs
* add more clarity
* add explanation to query options min interval and link to min step
* Update docs/sources/panels-visualizations/query-transform-data/_index.md
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
---------
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2024-01-22 08:44:46 -06:00
Gábor Farkas
e6f8176674
postgres: test: switch to numbers that are represented well in floating point ( #80722 )
2024-01-22 14:14:40 +01:00
ismail simsek
777b9bdc49
Prometheus: minStep value is affecting $__interval value ( #80904 )
...
* minStep value is affecting $__interval value
* rename
2024-01-19 21:55:27 +01:00
Will Browne
3f30cbf91c
DataSources: Add datasource fetching + querying interface ( #80749 )
...
* first pass
* separate oss + enterprise
* tidy things up
* add ctx
* fix tests
* use standalone svcs
* mv plugin context provide
* fix wire
* fix import
2024-01-19 15:56:52 +01:00
Ivana Huckova
759c088ac5
Elasticsearch: Fix showing of logs when __source
is log message field ( #80804 )
...
Elasticsearch: Fix showing of logs whe __source is log message field
2024-01-19 10:28:08 +01:00
Kyle Brandt
02e2e1c64e
Prometheus: Set Status(Code) on backend response ( #80806 )
...
Sets that status code on backend data responses in prometheus to match the status code returned by prometheus. If the failure is below HTTP/Application Layer, Bad Gateway is returned (502).
---------
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-01-18 13:23:31 -05:00
Gábor Farkas
2cb2845ec4
sql: use plugin-sdk code for value-to-float64 conversion ( #80621 )
...
sql: use plugin-sdk code
2024-01-17 13:42:32 +01:00
Gábor Farkas
58b13fed5a
postgres: tests: adjusted the timestamps to be in UTC ( #80704 )
2024-01-17 11:27:43 +01:00
Gábor Farkas
4291bf4d69
postgres: tests: improve float64-conversion tests ( #80627 )
...
postgres: more tests
2024-01-17 10:31:15 +01:00
Gábor Farkas
2bf56b12cf
postgres: simplify proxy code ( #80121 )
2024-01-17 09:20:27 +01:00
Joey
6796e66fb8
Pyroscope: Add standalone build ( #80222 )
...
* Pyroscope standalone build
* Fix for tests
* Add missing packages
* Remove import
* Update trace to profiles
* Update test
2024-01-16 12:46:15 +00:00
Fabrizio
522519f671
Tempo: Decouple Tempo from Grafana core ( #79888 )
2024-01-16 11:36:40 +01:00
Ida Štambuk
d3a89a28fa
Cloudwatch Metrics: Adjust error handling ( #79911 )
2024-01-15 17:19:26 +01:00
Gábor Farkas
6a36525d61
postgres: better error handling ( #80375 )
2024-01-15 12:50:01 +01:00
Gábor Farkas
cfddc67a25
sql: support the no-tls option in the socks proxy ( #80376 )
...
postgres: support the no-tls option in the socks proxy
2024-01-15 09:57:43 +01:00
Gábor Farkas
6b5805dd1b
postgres: vendor in the file-exists helper ( #80446 )
2024-01-15 08:53:43 +01:00
Sven Grossmann
e1aa8a95d9
Loki: Fix bug duplicating parsed labels across multiple log lines ( #80292 )
2024-01-11 15:09:13 +01:00
Ryan McKinley
6be6724433
K8s/Testdata: Expose testdata in standalone apiserver ( #80248 )
2024-01-10 17:45:23 +02:00
Ryan McKinley
1caaa56de0
FeatureFlags: Use interface rather than manager ( #80000 )
2024-01-09 10:38:06 -08:00