Arve Knudsen
78596a6756
Migrate to Wire for dependency injection ( #32289 )
...
Fixes #30144
Co-authored-by: dsotirakis <sotirakis.dim@gmail.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
Co-authored-by: Ida Furjesova <ida.furjesova@grafana.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
Co-authored-by: spinillos <selenepinillos@gmail.com>
Co-authored-by: Karl Persson <kalle.persson@grafana.com>
Co-authored-by: Leonard Gram <leo@xlson.com>
2021-08-25 15:11:22 +02:00
Travis Patterson
00709ec1db
Add prometheus remote client ( #37755 )
2021-08-13 10:44:56 -06:00
Will Browne
45754edfbc
bump plugin-sdk-go to fix tls verify field issue ( #37797 )
2021-08-11 16:23:07 +02:00
gotjosh
f83cd401e5
Alerting: Send alerts to external Alertmanager(s) ( #37298 )
...
* Alerting: Send alerts to external Alertmanager(s)
Within this PR we're adding support for registering or unregistering
sending to a set of external alertmanagers. A few of the things that are
going are:
- Introduce a new table to hold "admin" (either org or global)
configuration we can change at runtime.
- A new periodic check that polls for this configuration and adjusts the
"senders" accordingly.
- Introduces a new concept of "senders" that are responsible for
shipping the alerts to the external Alertmanager(s). In a nutshell,
this is the Prometheus notifier (the one in charge of sending the alert)
mapped to a multi-tenant map.
There are a few code movements here and there but those are minor, I
tried to keep things intact as much as possible so that we could have an
easier diff.
2021-08-06 13:06:56 +01:00
ying-jeanne
fcd0dac814
Dependency: update collector to v.31.0 ( #37546 )
...
* update collector to v.31.0
* Change protobuf unmarshal function after upgrade
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2021-08-04 17:41:07 +02:00
idafurjes
9d496d6f48
SDK: update plugin-sdk to v0.111.0 ( #37405 )
2021-07-30 16:54:52 +02:00
Marcus Efraimsson
decc2124f3
Chore: Upgrade grafana-plugin-sdk-go to v0.110.0 ( #36763 )
2021-07-15 09:39:25 +02:00
ying-jeanne
5c3c15fa40
update backend-sdk to v0.106.0 ( #36543 )
2021-07-08 16:51:48 +08:00
Will Browne
719e78f333
bump version ( #36430 )
2021-07-05 12:19:10 +02:00
Alexander Emelin
98893c0420
Live: experimental HA with Redis ( #34851 )
2021-06-24 11:07:09 +03:00
gotjosh
f7ed35336d
Alerting: Implement /status for the notification system ( #33227 )
...
* Alerting: Implement /status for the notification system
Implements the necessary plumbing to have a /status endpoint on the
notification system.
* Add API examples
* Update API specs
* Update prometheus/common dependency
Co-authored-by: Sofia Papagiannaki <sofia@grafana.com>
2021-06-15 19:14:02 +03:00
Javier Palomo
6531424c72
Datasource: Add support for max_conns_per_host in dataproxy settings ( #35520 )
...
Allow configuring dataproxy.max_conns_per_host for HTTP data sources.
Ref #35519
Ref #35257
2021-06-11 14:18:08 +02:00
Ryan McKinley
4b8d796c54
Live: avoid panic when type changes ( #35394 )
2021-06-09 11:15:42 -07:00
Dimitris Sotirakis
7cdf8b3705
HTTP Client: Introduce go-conntrack into http client provider ( #35314 )
...
* Introduce go-conntrack into http client provider
* Fixes according to reviewer's comments
* Fixes according to reviewer's comments
2021-06-09 18:13:21 +02:00
Sofia Papagiannaki
eeb84d09c2
SSE: Change math expression to accept any value convertible to float ( #34996 )
...
* SSE: Change math expression to accept any scalar value
* Apply suggestions from code review
* Update test
* Remove TODO
2021-06-03 18:06:12 +03:00
Marcus Efraimsson
5d41e83896
Chore: Upgrade prometheus/alertmanager dependency to v0.22.2 ( #35102 )
...
* Chore: Upgrade prometheus/alertmanager dependency to v0.22.2
* go mod tidy
2021-06-02 16:02:52 +02:00
Ryan McKinley
67028af99e
Live: check schema equality between push messages ( #34548 )
2021-05-27 12:55:42 +03:00
Arve Knudsen
796590a1aa
Chore: Upgrade opentelemetry.io/collector dependency ( #34700 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-05-26 10:11:37 +02:00
Arve Knudsen
42f33630c7
Security: Upgrade Thrift dependency ( #34698 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-05-26 09:31:19 +02:00
Alexander Emelin
063e1b5ff5
Live: use latest changes in Go SDK to deal with streaming frames ( #34668 )
2021-05-25 10:29:02 -07:00
Dimitris Sotirakis
91657dad18
HTTP Client: Make ResponseHeaderTimeout
default timeout in http client ( #34597 )
...
* HTTP Client: Add `ResponseHeaderTimeout` - split from `DialContext` timeout
* Fixes according to reviewer's comments
* Use grafana-plugin-sdk-go v0.100.0
2021-05-25 11:32:41 +03:00
Sergey Kostrukov
a337f70469
AzureMonitor: Fix Azure token provider national clouds ( #34615 )
...
* Fix AAD authority for sovereign clouds
* Update Azure SDK with scopes fix
* Credential initialization in cache
2021-05-25 08:19:08 +02:00
Dimitris Sotirakis
6970c9ebfd
Use laher/mergefs
- remove custom code ( #34571 )
2021-05-24 14:17:40 +02:00
Marcus Efraimsson
b76dfc8ed0
Chore: Upgrade loki dependency ( #34487 )
...
Upgrades loki dependency to include grafana/loki#3743 .
2021-05-20 16:31:53 +02:00
Alexander Emelin
f0ef5e7dcb
Live: channel ID validation ( #34215 )
2021-05-19 20:47:53 +03:00
idafurjes
1e8e7e34f1
Plugins: Remove support for deprecated backend plugin protocol version ( #34127 )
...
* 33959: Remove support for deprecated backend plugin protocol (v1)
* 33959: Remove unused methods
* 33959: Remove some additional unused code
* 33959: Remove some additional unused code
* 33959: Remove datasource plugin wrapper with test
* 33959:Remove DefaultProtocolVersion
2021-05-19 08:57:48 +02:00
Ryan McKinley
0b44182bbf
SDK: update plugin sdk ( #34251 )
2021-05-18 18:45:46 +02:00
Sergey Kostrukov
c1b8a10f41
Plugins: Fix Azure token provider cache panic and auth param nil value ( #34252 )
...
* More tests for token cache
* Safeguarding from panic and concurrency fixes
* Update Azure dependencies
* Fix interpolation of empty plugin data
2021-05-18 15:36:58 +02:00
Sergey Kostrukov
81f6c806e1
Azure token provider with support for Managed Identities ( #33807 )
...
* Azure token provider
* Configuration for Azure token provider
* Authentication via Azure SDK for Go
* Fix typo
* ConcurrentTokenCache for Azure credentials
* Resolve AAD authority for selected Azure cloud
* Fixes
* Generic AccessToken and fixes
* Tests and wordings
* Tests for getAccessToken
* Tests for getClientSecretCredential
* Tests for token cache
2021-05-14 13:59:07 +02:00
Alexander Emelin
726039a721
live: update live-sdk to v0.0.6 ( #34047 )
2021-05-13 16:12:54 +03:00
Alexander Emelin
e97750b824
Live: labels column as default frame format ( #33984 )
...
* labels columns as default frame format
* update sdk
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2021-05-13 11:01:20 +02:00
Alexander Emelin
a14ae53347
UseRunStream is a default behaviour ( #34021 )
2021-05-12 22:17:31 +03:00
Marcus Efraimsson
d1a44044e5
Chore: Upgrade grafana-plugin-sdk-go to v0.96.0 ( #34010 )
2021-05-12 18:16:21 +02:00
Owen Diehl
290e00cb6f
bumps am & common libs with json tag support ( #33995 )
2021-05-12 09:55:32 -04:00
Marcus Efraimsson
6c728d6a78
SQL: Use SDK sqlutil package refactor ( #33758 )
...
Upgrades grafana-plugin-sdk-go dependency to v0.94.0 to get
the refactored sqlutil package.
Co-authored-by: Kevin Minehart <kmineh0151@gmail.com>
2021-05-11 14:59:33 +02:00
Giordano Ricci
e98a8bd11b
Elasticsearch: use semver strings to identify ES version ( #33646 )
...
* Elasticsearch: use proper semver strings to identify ES version
* Update BE & tests
* refactor BE tests
* refactor isValidOption check
* update test
* Update pkg/tsdb/elasticsearch/client/client.go
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
* Update pkg/tsdb/elasticsearch/client/search_request_test.go
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
* Remove leftover FIXME comment
* Add new test cases for new version format
* Docs: add documentation about version dropdown
* Update docs/sources/datasources/elasticsearch.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/datasources/elasticsearch.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/datasources/elasticsearch.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update provisioning documentation
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-05-11 09:44:00 +01:00
Owen Diehl
d2676bc649
revendor loki with new Tripperware ( #33858 )
2021-05-10 12:46:24 -04:00
ying-jeanne
f24596748a
Bump github.com/go-sql-driver/mysql from 1.5.0 to 1.6.0 ( #33835 )
...
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql ) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/go-sql-driver/mysql/releases )
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md )
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.5.0...v1.6.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 18:02:26 +08:00
Alexander Emelin
03e91eb1a6
updated sdk-go to v0.93.0, adapt tests ( #33769 )
2021-05-06 18:10:51 +03:00
Will Browne
3b10451f9f
version bump ( #33784 )
2021-05-06 16:40:04 +02:00
dependabot[bot]
1e3d19e483
Chore(deps): Bump github.com/hashicorp/go-hclog from 0.15.0 to 0.16.0 ( #32881 )
...
Bumps [github.com/hashicorp/go-hclog](https://github.com/hashicorp/go-hclog ) from 0.15.0 to 0.16.0.
- [Release notes](https://github.com/hashicorp/go-hclog/releases )
- [Commits](https://github.com/hashicorp/go-hclog/compare/v0.15.0...v0.16.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-05 18:26:55 +02:00
Owen Diehl
e4d3161690
revendors loki & alertmanager ( #33534 )
...
* revendors loki
* revendors alertmanager
2021-04-29 18:29:42 +01:00
dependabot[bot]
8dea72a763
Chore(deps): Bump go.opentelemetry.io/collector from 0.22.0 to 0.25.0 ( #33365 )
...
* Chore(deps): Bump go.opentelemetry.io/collector from 0.22.0 to 0.25.0
Bumps [go.opentelemetry.io/collector](https://github.com/open-telemetry/opentelemetry-collector ) from 0.22.0 to 0.25.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-collector/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-collector/compare/v0.22.0...v0.25.0 )
Signed-off-by: dependabot[bot] <support@github.com>
* Apply changes to tempo code
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2021-04-29 15:01:48 +02:00
Owen Diehl
ec37b4cb87
[Alerting] Automatic request instrumentation ( #33444 )
...
* alerting: automatic request instrumentation
* always expose alerting prom metrics
* globally register alerting metrics
2021-04-28 16:59:15 -04:00
ying-jeanne
748778fff0
new endpoint to post/get trimmed dashboard json ( #33465 )
...
* new endpoint to post/get trimed dashboard json
* add isdisabled check in dashboard.go
2021-04-28 19:38:33 +08:00
dependabot[bot]
eaf7decf5a
Chore(deps): Bump google.golang.org/api from 0.44.0 to 0.45.0 ( #33366 )
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.44.0 to 0.45.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.44.0...v0.45.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-28 08:56:40 +02:00
Owen Diehl
86c8eed386
Instrument/ruler api ( #33290 )
...
* ruler api histogram instrumentation
* register ruler metrics
2021-04-27 08:25:32 -04:00
Ganesh Vernekar
6cc7a20789
NGAlert: Remove all pending references to the old API package ( #33269 )
...
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2021-04-22 18:36:32 +05:30
Dimitris Sotirakis
d3e510e92f
Chore: Remove Revive standalone linter - use it via golangci-lint ( #33150 )
...
* Remove Revive standalone linter - use it via golangci-lint
* Add revive settings to ignore lint errors for now
* Small fix
* Update to grabpl v0.5.53
* Remove errorCode and warningCode from config
2021-04-20 16:51:08 +02:00
dependabot[bot]
0a3e7dea62
Bump github.com/centrifugal/centrifuge from 0.16.0 to 0.17.0 ( #33117 )
2021-04-19 12:09:10 -07:00