Grot (@grafanabot)
d02b7fc0ba
Alerting: Fix duration calculation when testing a rule ( #56616 ) ( #56705 )
...
When testing a rule within the legacy alerting the `timeMs` field could
sometimes show negative (and/or wrongly calculated) durations. This happens if the alert evaluation crosses a second boundary. This change uses the full timestamp to compute the eval duration.
(cherry picked from commit 95b9fa3346 )
Co-authored-by: Jorge Luis Betancourt <jorge-luis.betancourt@trivago.com >
2022-10-12 11:38:33 +08:00
George Robinson
4585d70f22
Alerting: Add doc comments to state struct and normalize fields ( #56647 ) ( #56676 )
...
(cherry picked from commit 52965de369 )
2022-10-11 15:20:18 +01:00
Grot (@grafanabot)
4468aac4ee
[v9.2.x] Alerting: Mark all tests that interact with the database as integration tests ( #56603 )
...
Previously, two tests were not explicitly marked as integration tests
and so were not run against all 3 supported databases in the CI
environment.
(cherry picked from commit 7312a2dab0 )
Co-authored-by: Joe Blubaugh <joe.blubaugh@grafana.com >
2022-10-11 20:43:51 +08:00
Grot (@grafanabot)
a57455e5cd
FIX: Remove RBAC datasource permissions upon datasource deletion ( #56530 ) ( #56550 )
...
* FIX: Remove RBAC datasource permissions upon datasource deletion
* Use scope provider instead
* Fix test
(cherry picked from commit 7595ed0668 )
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
2022-10-11 12:16:43 +03:00
Artur Wierzbicki
1bbbe41a6c
Search: wrap data.Frame in a backend.DataResponse and return it directly when the index is not ready ( #56611 )
2022-10-10 14:05:16 -04:00
Grot (@grafanabot)
25e89ba295
Google Cloud Monitoring: Fix bucket bound for distributions ( #56565 ) ( #56649 )
...
(cherry picked from commit 65e56c9fb8 )
Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com >
2022-10-10 10:25:37 -04:00
Grot (@grafanabot)
1024334d7b
Alerting: Fix migration to create rules with group index 1 ( #56511 ) ( #56584 )
...
(cherry picked from commit 3487e68d15 )
Co-authored-by: Yuriy Tseretyan <yuriy.tseretyan@grafana.com >
2022-10-07 17:33:21 -04:00
Yuriy Tseretyan
77046b3fba
[9.2.x] Alerting: Fix migration to not add label "alertname" ( #56509 ) ( #56579 )
2022-10-07 16:38:00 -04:00
Grot (@grafanabot)
d5bb8aba85
Prometheus: Add Exemplar sampling for streaming parser ( #56049 ) ( #56571 )
...
(cherry picked from commit 152c7f149a )
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com >
2022-10-07 13:15:49 -04:00
Grot (@grafanabot)
94341ed95c
[v9.2.x] Prometheus: Various buffered and streaming parsing fixes ( #56468 )
...
* Prometheus: Various buffered and streaming parsing fixes (#55941 )
(cherry picked from commit 1c61c81dde )
* switch back to 0 instead of NaN for 9.2 buffered responses
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com >
2022-10-07 13:02:12 -04:00
Grot (@grafanabot)
77ec6609df
Alerting: Fix pq: missing FROM-clause for table "a" ( #56453 ) ( #56534 )
...
This commit fixes a bug where changing the Folder or Rule Group of an existing rule returns the following error in PostgreSQL "pq: missing FROM-clause for table a"
(cherry picked from commit 762688d67f )
Co-authored-by: George Robinson <george.robinson@grafana.com >
2022-10-07 10:35:47 +01:00
Grot (@grafanabot)
cacc00aeb8
Use io.ReadAll instead of json.Decode ( #56528 ) ( #56529 )
...
(cherry picked from commit df2abf09c2 )
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com >
2022-10-07 04:45:42 -04:00
Grot (@grafanabot)
4ac54040a9
Chore: Make NewCookieOptions exported in cookies.go ( #56476 ) ( #56499 )
...
(cherry picked from commit 1de0f4453e )
Co-authored-by: Misi <mgyongyosi@users.noreply.github.com >
2022-10-07 10:40:03 +02:00
Grot (@grafanabot)
17655071b7
RBAC: Redirect to /login when forceLogin is set ( #56469 ) ( #56523 )
...
(cherry picked from commit bb479e030a )
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com >
2022-10-07 02:31:19 -04:00
Joe Blubaugh
84a6820fd8
Alerting: Update imported prometheus alertmanager version. Backport ( #56228 ) ( #56430 )
...
Version 0.24.0 has a few bugs that cause panics. We update here to the
latest commit on github.com/prometheus/alertmanager's main branch.
Panic Bugs:
https://github.com/prometheus/alertmanager/issues/2936
https://github.com/prometheus/alertmanager/issues/3064
(cherry picked from commit ce89624ca2 )
2022-10-07 14:00:45 +08:00
Grot (@grafanabot)
ece17f30ab
Packaging: Change from 0750 to 0755 folder permissions when packaging ( #56436 ) ( #56474 )
...
* Change from 0750 to 0755
* Change to 0o755
* Skip lint when creating dir
(cherry picked from commit 66e8f39ce8 )
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com >
2022-10-06 10:25:43 -04:00
Dimitris Sotirakis
8f7deb3741
Move files under pkg/build/packaging ( #56435 ) ( #56440 )
...
(cherry picked from commit 3aacda5579 )
2022-10-06 11:16:22 +03:00
Yuriy Tseretyan
9b87e7de11
[9.2.x] Alerting: Start ticker only when scheduler starts ( #56339 ) ( #56418 )
2022-10-05 15:52:06 -04:00
Grot (@grafanabot)
0f136e2b26
Azure Monitor: Adapt empty Logs response ( #56378 ) ( #56395 )
...
(cherry picked from commit 8594e648e8 )
Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com >
2022-10-05 10:24:13 -04:00
Tania
4d3408f4f0
Remove branding feature toggle ( #56389 )
2022-10-05 14:28:12 +02:00
Grot (@grafanabot)
b70f14d971
Canvas: Promote to beta ( #56217 ) ( #56342 )
...
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
(cherry picked from commit 2c1c98f3b6 )
Co-authored-by: Nathan Marrs <nathanielmarrs@gmail.com >
2022-10-04 15:44:31 -04:00
Grot (@grafanabot)
7cb8143633
Search: Fix tags query ( #55851 ) ( #55861 )
...
* Search: fix tags query
* Search: fix type
(cherry picked from commit 814211282a )
Co-authored-by: Artur Wierzbicki <wierzbicki.artur.94@gmail.com >
2022-10-04 13:53:00 -04:00
Grot (@grafanabot)
8741f7dedb
Replace filename with path without the local dir ( #56296 ) ( #56309 )
...
(cherry picked from commit d94af21cac )
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com >
2022-10-04 10:34:51 -04:00
Grot (@grafanabot)
88d4cc9334
Add cronjob option at switch case ( #56272 ) ( #56274 )
...
(cherry picked from commit 26d64a778e )
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com >
2022-10-04 06:29:38 -04:00
Grot (@grafanabot)
50c6c5e550
XYChart: Beta release ( #55973 ) ( #56237 )
...
* Bump state from alpha to beta
* Sync manual pointsize max with auto one
* Add xyChart to list
(cherry picked from commit 7b93d85a85 )
Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com >
2022-10-04 03:59:18 -04:00
Grot (@grafanabot)
7a76da4e15
CI: Add packages-bucket flag to publish packages command ( #56170 ) ( #56176 )
...
* Add public bucket string
* Fix lint
(cherry picked from commit d32c67b52a )
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com >
2022-10-03 08:47:39 -04:00
Grot (@grafanabot)
29bb039c94
CI: Move grafanacom command to OSS ( #55853 ) ( #56168 )
...
* Move publish-packages command over from
* Fix lint
* Move grafanacom command to OSS
* Add GetLatestMainBuild to gsutil
* Fix lint
* More lint fixes
* Add tests for grafanacom
* Fix lint
(cherry picked from commit 947838cca0 )
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com >
2022-10-03 14:30:11 +03:00
Grot (@grafanabot)
d10d842024
CI: Move publish-packages command over from grabpl ( #55850 ) ( #56007 )
...
* Move publish-packages command over from
* Lint fixes
* Update test
(cherry picked from commit 9a68f8704f )
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com >
2022-09-29 17:57:55 +03:00
Grot (@grafanabot)
6dce936b65
PublicDashboards: Allow disabling an existent public dashboard if it has template variables ( #55778 ) ( #55953 )
...
(cherry picked from commit b370a8e366 )
Co-authored-by: Ezequiel Victorero <ezequiel.victorero@grafana.com >
2022-09-28 14:50:42 -04:00
Grot (@grafanabot)
9fd622e549
Tempo: Fix unexpected trimming of leading zeroes in traceID ( #55167 ) ( #55929 )
...
* tempo: fix unexpected trim traceID leading zero (#55166 )
* fix lint
(cherry picked from commit c6dffb11a4 )
Co-authored-by: Jimmie Han <hanjinming@outlook.com >
2022-09-28 17:34:12 +02:00
Grot (@grafanabot)
6f32c12628
Tracing: Fix bug where errors are not reported to OTel ( #55925 ) ( #55931 )
...
(cherry picked from commit 6aef353b59 )
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com >
2022-09-28 10:07:16 -04:00
Grot (@grafanabot)
5242194721
Replace armhf with armhfp for RPMs ( #55814 ) ( #55828 )
...
(cherry picked from commit 2a3f423e10 )
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com >
2022-09-27 10:07:41 -04:00
Grot (@grafanabot)
ff550df32f
Correlations: Only return correlation for which both source and target datasources exist ( #55454 ) ( #55744 )
...
* Correlation: only return correlation for which both source and targe ds exist
* add test
(cherry picked from commit d07abdd23c )
Co-authored-by: Giordano Ricci <me@giordanoricci.com >
2022-09-26 14:53:25 +01:00
Maksim Nabokikh
d1e50580a5
Add the file label to dashboard provisioning errors ( #53282 )
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com >
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com >
2022-09-26 10:57:37 +02:00
idafurjes
178cd0a232
Use OrgUser method from org service ( #55674 )
...
* Use OrgUser method from org service
* Use GetOrgUser from org service
2022-09-26 10:27:38 +02:00
Kevin Minehart
2fadeeff4c
CI: move grabpl package command to pkg/build ( #55651 )
...
* add grabpl package
* update .drone.yml
* resolve lint errors
2022-09-23 11:49:07 -05:00
Jean-Philippe Quéméner
f3a307778a
Alerting: cache general folder in migration based on org id ( #55620 )
2022-09-23 18:22:45 +02:00
Ashley Harrison
366731d8d9
Navigation: Add descriptions to NavModelItems ( #55669 )
...
* add some descriptions!
* Update some descriptions
* Tweak playlist description
* fix unit tests + betterer
2022-09-23 16:08:08 +01:00
Jean-Philippe Quéméner
0f2afb6417
Alerting: support env variables in contact point settings when provsioning ( #55666 )
2022-09-23 08:06:51 -05:00
Will Browne
d0d8544ded
Plugins: Create single point of entry for adding / removing plugins ( #55463 )
...
* split out plugin manager
* remove whitespace
* fix tests
* split up tests
* updating naming conventions
* simplify manager
* tidy
* explorations
* fix build
* tidy
* fix tests
* add logger helper
* pass the tests
* tidying
* fix tests
* tidy and re-add test
* store depends on loader
* enrich tests
* fix test
* undo gomod changes
2022-09-23 14:27:01 +02:00
idafurjes
fb66439c3e
Chore: Add orguser methods to org service interface ( #55668 )
...
* Move role types to a separate package
* Make role type singular and remove _ from directory name
* Add orguser methods to org service
* Fix fake method
2022-09-23 07:19:34 -04:00
idafurjes
7f98f4b411
Move role types to a separate package ( #55665 )
...
* Move role types to a separate package
* Make role type singular and remove _ from directory name
2022-09-23 12:40:02 +02:00
Sofia Papagiannaki
d0e7765c6a
Annotation: Optionally allow storing longer annotation tags ( #54754 )
...
* Annotation: Optionally allow longer annotation tags
* Do not accept configuration lower than today's default (500)
* Apply suggestion from code review
2022-09-23 06:04:41 -04:00
idafurjes
883c7a802b
Chore: Use AddUserOrg from org service ( #55657 )
...
* Chore: Copy methods from sqlstore to org store
* Rename method, add test
* Add comments of tests
* Chore: Add methods from sqlstore to org service interface
* Avoiding import cycle
* Add and remove some methods
* User AddOrgUSer from org service in api
* Fix test function calls
2022-09-23 11:59:07 +02:00
idafurjes
e8a60c1988
Chore: Add methods from sqlstore to org service interface ( #55635 )
...
* Chore: Copy methods from sqlstore to org store
* Rename method, add test
* Add comments of tests
* Chore: Add methods from sqlstore to org service interface
* Avoiding import cycle
* Add and remove some methods
2022-09-23 09:58:17 +02:00
Jan Garaj
b1b4110ab1
CloudWatch: Add missing AWS/Prometheus metrics ( #54990 )
2022-09-22 22:25:33 -04:00
Artur Wierzbicki
f8d69415ca
Search: create a separate HTTP endpoint ( #55634 )
...
* search: create a separate http endpoint
* search: extract api uri
* search: rename uri
* search: replicate the readiness check
* search: replicate the readiness check metric
* search: update mock
2022-09-22 19:02:09 -04:00
Torkel Ödegaard
09f4068849
NavTree: Refactor out the navtree building from api/index.go and into it's own service ( #55552 )
2022-09-22 22:04:48 +02:00
Serge Zaitsev
4c19e83ff0
Chore: Move team store implementation to a separate package ( #55514 )
...
* Chore: move team store implementation to a separate package
* trying to fix more tests
* fix tests in service accounts and access control
* fix common tests
* restore commented out test
* add todos
2022-09-22 19:16:21 +02:00
idafurjes
591df92265
Chore: Copy methods from sqlstore to org store ( #55615 )
...
* Chore: Copy methods from sqlstore to org store
* Rename method, add test
* Add comments of tests
2022-09-22 19:02:55 +02:00