Commit Graph

37431 Commits

Author SHA1 Message Date
Leon Sorokin
4223d3a6a7
Heatmap: Add option to reverse color scheme (#54365) 2022-09-07 11:09:44 -05:00
Matthew Jacobson
940d18ad57
Alerting: Sanitize invalid label/annotation names for external alertmanagers (#54537)
* Alerting: Sanitize invalid label/annotation names for external alertmanagers

Grafana's built-in Alertmanager supports both Unicode label keys and values; however, if using an external
Prometheus Alertmanager label keys must be compatible with their data model.
This means label keys must only contain ASCII letters, numbers, as well as underscores and match the regex
`[a-zA-Z_][a-zA-Z0-9_]*`.

Any invalid characters will now be removed or replaced by the Grafana alerting engine before being sent to
the external Alertmanager according to the following rules:

- `Whitespace` will be removed.
- `ASCII characters` will be replaced with `_`.
- `All other characters` will be replaced with their lower-case hex representation.

* Prefix hex replacements with `0x`

* Refactor for clarity

* Apply suggestions from code review

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

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2022-09-07 11:39:39 -04:00
Leon Sorokin
75de42fba7
BarChart: fix stale colorByField being used in value mappings (#54820) 2022-09-07 08:31:31 -06:00
Alexander Weaver
b193eaed6e
Alerting: Resetting the notification policy tree to the default policy will also restore default contact points (#54608)
* Add test that resetting the route restores the default receiver

* Return error instead of panic

* Adjust error string to match styleguide
2022-09-07 09:28:10 -05:00
Ashley Harrison
8e8d0a08f9
reobserve elements when children change (#54827) 2022-09-07 15:07:35 +01:00
Hamas Shafiq
762432a921
Chore: Add a README for the Node Graph plugin (#54801) 2022-09-07 14:52:55 +01:00
renovate[bot]
04d15b5810
Update dependency @types/webpack-env to v1.18.0 (#54839)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-07 14:51:36 +01:00
Gustavo Santos
968e2218ac
Chore: Add controls to InlineField (#54674) 2022-09-07 14:24:38 +01:00
majordookie
35751b2ab4
Fix typo (#54681) 2022-09-07 15:40:52 +03:00
mhuangwm
39102c6656
Admin: Add support to configure default admin email (#54363) 2022-09-07 14:38:40 +02:00
Gábor Farkas
687b0b1726
elastic: explain why moving_avg is 7.x only (#54840) 2022-09-07 14:31:11 +02:00
Gustavo Santos
c56907b879
Add controls for Date Picker story (#54806)
Signed-off-by: gefgu <gefgu@hotmail.com>

Signed-off-by: gefgu <gefgu@hotmail.com>
2022-09-07 15:30:46 +03:00
Dimitris Sotirakis
8e577ce9fa
CI: Trigger *-storybook steps on UI changes (#54833)
* No-op, small starlark refactoring

* Make build and store storybook steps execute on ui changes
2022-09-07 15:08:13 +03:00
Nicholas Wiersma
9e704fec3c
JWT: Add support for assigning org roles (#54277)
* feat: allow jwt role to be set

* chore: update documentation

* fix: cr suggestions

* fix: lint issues

* respect org auto assign and default org ID

* add server admin to devenv

Co-authored-by: jguer <joao.guerreiro@grafana.com>
2022-09-07 14:00:33 +02:00
Ashley Harrison
4825707853
Add basic unit tests for landing pages (#54696) 2022-09-07 12:40:53 +01:00
renovate[bot]
e22ed6b720
Update dependency @types/ol-ext to v2.3.0 (#54836)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-07 11:42:29 +01:00
renovate[bot]
84212d8746
Update babel monorepo to v7.19.0 (#54756)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-07 09:57:22 +01:00
renovate[bot]
bccf8e139e
Update dependency @react-types/shared to v3.14.1 (#54830)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-07 09:55:08 +01:00
Matias Chomicki
c0b3cd3da0
refactor(loki-derived-fields): migrate test to testing library (#54729) 2022-09-07 08:54:28 +00:00
linoman
0324e9c60e
Fix paths for auth/ build and volume paths (#54828) 2022-09-07 10:53:58 +02:00
renovate[bot]
86e432f25b
Update dependency @react-types/menu to v3.7.1 (#54825)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-07 09:39:20 +01:00
Ashley Harrison
66ce33bc5b
make Browse the root item of Dashboards when topnav is enabled (#54782) 2022-09-07 09:24:10 +01:00
renovate[bot]
ebf24da028
Update dependency @react-types/button to v3.6.1 (#54797)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-07 09:06:46 +01:00
Adela Almasan
3864de9425
Geomap: Cleanup GeomapPanel component (#54538) 2022-09-06 21:22:34 -04:00
Christopher Moyer
cdc2200273
restructures aws marketplace docs (#54810) 2022-09-06 16:47:47 -05:00
Leon Sorokin
bf052cb35e
TimeSeries: omit non-integer y ticks when decimals: 0 (#54679) 2022-09-06 16:12:09 -04:00
Alexander Weaver
b8d1474609
Fix incorrect propagation of org ID in rule endpionts (#54603) 2022-09-06 14:51:54 -05:00
Guilherme Caulada
20589f76f4
Secrets: Convert secret migration to a background service (#54676)
* Convert secret migration to a background service

* Fix merge conflicts

* Return concrete type for secret migration provider
2022-09-06 16:21:25 -03:00
Christopher Moyer
0f549a44b0
changes _index files to index, adds aliases (#54804) 2022-09-06 12:58:07 -05:00
Kevin Minehart
1169f14d47
CI: move grabpl build-frontend-packages from grabpl to grafana (#53072)
* move grabpl build-frontend-packages

* add frontend and lerna packages

* grabpl build-frontend-packages -> ./bin/build build-frontend-packages

* move getgrafanaversion

* add noinstalldeps flag

* fix compiler error

* fix lint error

* add missing flags
2022-09-06 20:09:08 +03:00
Torkel Ödegaard
e5c32c8cc9
Dashboard: Unsaved changes warning fixes (#54706)
* Quick test of alternative method

* change order of if condition again for better readability

* Think I have something that is working

* Update
2022-09-06 13:00:32 -04:00
Joao Silva
ab79976a8d
Navigation: Adds profile menu to top nav bar (#54720) 2022-09-06 17:32:05 +01:00
renovate[bot]
9cc828a00e
Update dependency @react-stately/menu to v3.4.1 (#54784)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-06 17:23:16 +01:00
Ilya Galimyanov
b593d371ef
Alerting: Telegram: truncate long messages (#54339)
Truncate messages longer than 4096 characters
2022-09-06 16:47:04 +01:00
Ashley Harrison
a4566eaf32
add unit tests for buildBreadcrumbs (#54785) 2022-09-06 16:43:59 +01:00
Laura Fernández
066710a7bc
Navigation: use navId and pageNav on Alerting - Contact Points page (#54451) 2022-09-06 16:25:07 +02:00
kay delaney
a70aba1384
Chore: Update slate and related packages (#54566)
* Chore: Update slate and related packages
2022-09-06 15:23:48 +01:00
ismail simsek
9c6a6ca487
graphite and opentsdb integration tests (#54733) 2022-09-06 17:19:04 +03:00
Tima Gixe
ce1221cd59
Storybook: Add controls to InlineLabel story (#54604) 2022-09-06 15:18:38 +01:00
Tima Gixe
05c16d1da3
Storybook: Add controls to QueryField story (#54606) 2022-09-06 15:18:08 +01:00
linoman
c915cb2d5c
Update auth/jwt_proxy and auth/oauth reference (#54781) 2022-09-06 15:46:01 +02:00
Matias Chomicki
baffc3d948
fix(elasticsearch): remove deprecated elastic versions (#54632)
* fix(elasticsearch): remove deprecated elastic versions

* fix(elasticsearch): make 8 the default and fallback version
2022-09-06 09:42:39 -04:00
renovate[bot]
7a01186324
Update dependency @react-aria/overlays to v3.10.1 (#54763)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-06 14:37:32 +01:00
Sofia Papagiannaki
e57fd88644
Swagger: restore missing enterprise endpoints (#54765) 2022-09-06 16:26:55 +03:00
Will Browne
15756ecf86
remove unused cfg (#54770) 2022-09-06 08:59:28 -04:00
Matias Chomicki
5767c01a79
Elasticsearch: fix types in test and add mock factory (#54582)
* refactor(elastic-test): add datasource mock factory

* refactor(elastic-test): use new factory and attempt to fix some type issues

* refactor(elastic-test): type fixes

* refactor(elastic-test): update test with mock changes

* refactor(elastic-test): remove commented code

Git history should be more than enough to go back to previous revisions instead of keeping commented code.

* refactor(elastic-test): use mock factory and fix type issues in language provider test

* Chore: rename mock parameter

* Chore: remove unnecessary conditional

* Chore: remove ts-expect-error
2022-09-06 14:35:54 +02:00
linoman
638fb5dc6d
Fix docker compose for openldap and oauth (#54745)
* Fix reference for `openldap` block

* Fix volume reference for `oauth` block
2022-09-06 14:22:03 +02:00
Oscar Kilhed
661ac46e6c
Chore: update latest.json to 9.1.3 (#54764) 2022-09-06 07:22:04 -04:00
renovate[bot]
3847e09750
Update dependency @react-aria/interactions to v3.11.0 (#54761)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-06 12:05:43 +01:00
Grot (@grafanabot)
fe848e93b3
ReleaseNotes: Updated changelog and release notes for 9.1.3 (#54759) 2022-09-06 12:54:58 +02:00