Commit Graph

50056 Commits

Author SHA1 Message Date
Tom Ratcliffe
9a416b8241 Fix potential display of "0" on rule details tab
When looking at the details tab of an alert rule, the last evaluation could potentially display as `0` due to falsy checks on React rendering
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
a94c3d63cc Update utils for determining paused state of a rule 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
7fd9cbbfb5 Export alerts limit for reuse when re-fetching rules list 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
1a5d227e05 Hide "firing for time" if a rule is paused 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
93fd11fe86 Update alert state tag to display Paused as its own "state" 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
a881e7e404 Display info message on rule detail view when a rule is paused 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
31be1231cf Move max width from rule editor parent 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
d0dcb72683 Display info message on rule form when a rule is paused 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
e5a6dff801 Add mutation method to update a rule 2024-04-03 18:38:49 +01:00
William Wernert
cad8190a91
Alerting/Annotations: Return nothing from historian store if filtering by tags and matchAny is false (#85488)
* Return nothing from historian store if filtering by tag
2024-04-03 13:01:13 -04:00
Leonard Gram
a457ab3192
Cloudmigration: decode json data (#85548)
* decode get

* decode bytes

* response

* .

* linter

* quick fixes

---------

Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
2024-04-03 18:47:49 +02:00
Ihor Yeromin
e4c92483dc
Canvas: Fix ellipse migration (#85482)
* fix(canvas): ellips migration
2024-04-03 19:29:17 +03:00
Tim Levett
a5707788ba
Transformations - make substring and not substring transformer case insensitive. (#84699)
* make substring and not substring transformer case insensitive

* timlevett/case-insensitive/ run linter

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-04-03 11:11:09 -05:00
Jean-Philippe Quéméner
7cfd470c91
fix(alerting): only expose metrics if executing alerts (#85512) 2024-04-03 17:18:02 +02:00
kay delaney
85127464a3
Scenes: Fix issue where unsaved changes prompt is shown when quickly adding panel to new dashboard (#85518)
Closes #84577
2024-04-03 15:39:01 +01:00
Señor Performo - Leandro Melendez
f6a94837c5
Docs: add YouTube video link and description (#85484)
* Update index.md Adding YouTube video link and description

Added a short description about the video and added the video to the page.

* Update docs/sources/panels-visualizations/visualizations/logs/index.md

Some edits went in. All nice :)

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Removed repetition

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-04-03 10:33:50 -04:00
Pepe Cano
a56a842d5f
Alerting docs: fix docs/shared API to render the current version (#85526) 2024-04-03 16:04:58 +02:00
Fabrizio
027329d4b6
CI: Skip analysis steps if not needed (#85532) 2024-04-03 17:00:13 +03:00
Simon Podlipsky
61e4cfac65
Docker: Fix missing go dependencies (#85441)
ci: fix missing go dependencies

```
 > [go-builder 11/25] RUN go mod download:
0.303 go: cannot load module pkg/build/wire listed in go.work file: open pkg/build/wire/go.mod: no such file or directory
------
Dockerfile:64
--------------------
  62 |     COPY pkg/promlib/go.* pkg/promlib/
  63 |
  64 | >>> RUN go mod download
  65 |     RUN if [[ "$BINGO" = "true" ]]; then \
  66 |           go install github.com/bwplotka/bingo@latest && \
  ```
2024-04-03 14:01:09 +01:00
brendamuir
847d2b01b6
Alerting docs: note on images in notifications for cloud (#85529) 2024-04-03 14:32:56 +02:00
antonio
561838a87d
convert telegram blog post to doc (#85231)
* convert telegram blog post to doc

* pretty

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-telegram.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* applied suggested changes

* fixed typo

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-04-03 14:28:50 +02:00
Simon Podlipsky
708ee9f9ee
Docker: Do not run apk on non-alpine distros (#83361) 2024-04-03 13:21:27 +01:00
Josh Hunt
e08b5bd456
E2C: Fix Swagger spec for createMigration post body (#85525)
* E2C: Fix Swagger spec for CreateCloudMigration post body

* actually, don't rename that type
2024-04-03 11:59:50 +00:00
idafurjes
b885da09da
CloudMigrations: Implement migrations API (#85348)
* Implement run migration endpoint

* Refactor RunMigration method into separate methods

* Save migration runs fix lint

* Minor changes

* Refactor how to use cms endpoint

* fix interface

* complete merge

* add individual items

* adds tracing to getMigration

* linter

* updated swagger definition with the latest changes

* CloudMigrations: Implement core API handlers for cloud migrations and migration runs (#85407)

* implement delete

* add auth token encryption

* implement token validation

* call token validation during migration creation

* implement get migration status

* implement list migration runs

* fix bug

* finish parse domain func

* fix urls

* fix typo

* fix encoding and decoding

* remove double decryption

* add missing slash

* fix id returned by create function

* inject missing services

* finish implementing (as far as I can tell right now) data migration and response handling

* comment out broken test, needs a rewrite

* add a few final touches

* get dashboard migration to work properly

* changed runMigration to a POST

* swagger

* swagger

* swagger

---------

Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
Co-authored-by: Leonard Gram <leo@xlson.com>
Co-authored-by: Michael Mandrus <41969079+mmandrus@users.noreply.github.com>
2024-04-03 13:36:13 +02:00
Ivan Ortega Alba
89638238e5
DashboardScene: Detect changes when live is enabled from settings (#85409)
* Adapt the code to the new live timer API

* Update scenes
2024-04-03 14:22:10 +03:00
Laura Fernández
4845b1e3c6
ServiceAccount : use InteractiveTable (#85203) 2024-04-03 13:12:23 +02:00
Ieva
beb15d938b
RBAC: Fix access checks for interactions with RBAC roles in hosted Grafana (#85485)
* don't check global permissions for cloud instances

* linting
2024-04-03 11:44:16 +01:00
Ivan Ortega Alba
eb3d088645
DashboardScene: Implement autofit panels (#85221) 2024-04-03 13:36:29 +03:00
Sonia Aguilar
034931f9e1
Alerting: Set mimir implementation in jsonData by default when creating a new a… (#85513)
Set mimir implementation in jsonData by default when creating a new alert manager data source
2024-04-03 12:31:49 +02:00
Dominik Prokop
b4dc79401b
DashboardScene: Fix explore to dashboard flow (#85140)
* DashboardScene: Fix explore to dashboard flow

* Tests

* Make sure dashboard is in edit mode when adding from explore

* Allow discarding changes when coming from explore

* Tests
2024-04-03 12:06:38 +02:00
github-actions[bot]
80b8b86c00
I18n: Download translations from Crowdin (#85515)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-03 12:18:42 +03:00
Gábor Farkas
8159e1db3a
Revert "Postgres: Switch the datasource plugin from lib/pq to pgx (#8… (#85509)
Revert "Postgres: Switch the datasource plugin from lib/pq to pgx (#83768)"

This reverts commit ecd6de826a.
2024-04-03 11:02:22 +02:00
Josh Hunt
ffb5d23a13
E2C: Hook Cloud Receiver-side up to real CreateCloudMigrationToken API (#85490)
E2C: Hook Cloud Reciever-side up to real CreateCloudMigrationToken API
2024-04-03 08:55:38 +00:00
Giordano Ricci
ff39067605
Explore: Make Explore breadcrumb clickable (#85437)
* Explore: make Explore breadcrumb a link to an empty Explore page

* update tests
2024-04-03 09:24:04 +01:00
antonio
826fa2f2db
alerging-get-started: update (#85434)
* alerging-get-started: update

* Update index.md

* Update index.md
2024-04-03 10:18:25 +02:00
Andres Martinez Gotor
9c7237891c
Plugins: Expose ExternalService in request config (#85187) 2024-04-03 09:22:34 +02:00
Leon Sorokin
1522499c4a
VizTooltips: Remove remaining old bits (#85500)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-04-02 19:32:01 -05:00
Leon Sorokin
d601acac3a
VizTooltips: Remove old tooltips and annotations (#84420)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-04-02 15:32:46 -05:00
Marcus Efraimsson
c9ab4e3a9e
DS apiserver: Fix resource path (#85494) 2024-04-02 20:09:18 +02:00
Nathan Marrs
b47f8b429e
Canvas: Hide background image size editor options for SVG based elements (#85419) 2024-04-02 09:04:36 -07:00
renovate[bot]
a360cf0c85
Update dependency @types/node to v20.12.2 (#85480)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-02 18:47:56 +03:00
Jo
5340a6e548
Auth: Extended JWT client for OBO and Service Authentication (#83814)
* reenable ext-jwt-client

* fixup settings struct

* add user and service auth

* lint up

* add user auth to grafana ext

* fixes

* Populate token permissions

Co-authored-by: jguer <joao.guerreiro@grafana.com>

* fix tests

* fix lint

* small prealloc

* small prealloc

* use special namespace for access policies

* fix access policy auth

* fix tests

* fix uncalled settings expander

* add feature toggle

* small feedback fixes

* rename entitlements to permissions

* add authlibn

* allow viewing the signed in user info for non user namespace

* fix invalid namespacedID

* use authlib as verifier for tokens

* Update pkg/services/authn/clients/ext_jwt.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* Update pkg/services/authn/clients/ext_jwt_test.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* fix parameter names

* change asserts to normal package

* add rule for assert

* fix ownerships

* Local diff

* test and lint

* Fix test

* Fix ac test

* Fix pluginproxy test

* Revert testdata changes

* Force revert on test data

---------

Co-authored-by: gamab <gabriel.mabille@grafana.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2024-04-02 17:45:15 +02:00
renovate[bot]
ac6e51c94a Update dependency @types/react to v18.2.74 2024-04-02 15:27:41 +00:00
Josh Hunt
33dd204466
E2C: Generate RTK Query API slice from swagger spec (#85463)
* add deps and script

* add codegen rtk api clise for cloud migration

* rename all the mock exports to mock

* Reset changes to package.json and yarn.lock

* codeowners
2024-04-02 18:01:33 +03:00
Will Browne
257cc98062
Datasources: Remove unused functions (#85473)
* cleanup unused funcs

* remove more stuff
2024-04-02 16:19:52 +02:00
Oscar Kilhed
9ba9cbf300
Bump scenes to 4.1.2 (#85470)
* Bump scenes to 4.1.2

* Fix tests after fixing the sorting in rows

---------

Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
2024-04-02 16:15:53 +02:00
wissy
4205491788
Docs: Fix wrong word for tempo example config (#85046)
Update configure-tempo-data-source.md

Replace traceToProfiles with tracesToProfiles
2024-04-02 15:37:20 +02:00
linoman
147154d2ea
Remove AuthConfigUIAdminAccess (#85452)
* Remove AuthConfigUIAdminAccess
2024-04-02 15:02:28 +02:00
renovate[bot]
22bae345d6 Update dependency react-zoom-pan-pinch to v3.4.4 2024-04-02 12:38:39 +00:00
renovate[bot]
4fa6754b42 Update dependency i18next-browser-languagedetector to v7.2.1 2024-04-02 11:59:40 +00:00