f3085b1cac
Alerting: Improve Mimir AM interoperability with Grafana ( #53396 )
2022-08-16 16:01:57 +02:00
a37b868da7
Alerting: Provisioning UI ( #50776 )
...
Co-authored-by: Konrad Lalik <konrad.lalik@grafana.com>
2022-06-20 10:55:12 -04:00
803473f479
Chore: Enable useUnknownInCatchVariables
for stricter type checking in catch blocks ( #50591 )
...
* wrap a bunch of errors
* wrap more things!
* fix up some unit tests
* wrap more errors
* tiny bit of tidy up
2022-06-15 08:59:29 +01:00
43ab0c1f95
Alerting: Fix Loki buildinfo request error ( #49073 )
...
* Skip buildinfo fetching for Loki data sources
* Fix and add tests
* Fix linter
* Improve typings
* Improve Loki's buildinfo notice
* Fix rename, improve prom app display name
2022-05-18 10:45:26 +02:00
bb66c03f9a
Alerting: modify prometheus endpoints for proxying using the datasource UID ( #48052 )
...
* Modify prometheus endpoints to expect the data source UID
* Update frontend
2022-05-06 15:05:02 -04:00
610247d52a
Alerting: modify ruler endpoints for proxying using the datasource UID ( #48046 )
...
* Modify ruler endpoints to expect the data source UID
* Update frontend
* Apply suggestion from code review
2022-05-05 14:58:32 +03:00
3e752a0db1
Alerting: modify alertmanager endpoints for proxying using the datasource UID ( #47978 )
...
* Alerting: enable proxying alertmanager calls using the datasource UID
* Remove use of datasource ID from the API
* Update frontend
2022-04-29 10:25:22 +03:00
3c6e0e8ef8
Chore: ESlint import order ( #44959 )
...
* Add and configure eslint-plugin-import
* Fix the lint:ts npm command
* Autofix + prettier all the files
* Manually fix remaining files
* Move jquery code in jest-setup to external file to safely reorder imports
* Resolve issue caused by circular dependencies within Prometheus
* Update .betterer.results
* Fix missing // @ts-ignore
* ignore iconBundle.ts
* Fix missing // @ts-ignore
2022-04-22 14:33:13 +01:00
785145c045
Alerting: FGAC bug bash fixes ( #47873 )
...
* Improve new alert and new silence buttons permission handling
* Prevent loading alert rules when no sufficient permissions provided
* Improve add and edit rule permissions
* Add new rule CTA button for non-editors
* Update mock
* Fix imports
2022-04-19 18:43:33 +02:00
7d5cb170c6
Alerting: Sort StateHistoryItem after fetch instead of on render. ( #47842 )
...
PR #47674 attempted to sort a read-only managed async array. This change
moves the sort logic to the fetch code so sort happens once on fetch, to
a mutable array, rather than trying on each render for an immutable
array.
Signed-off-by: Joe Blubaugh <joe.blubaugh@grafana.com>
2022-04-19 16:05:28 +08:00
6992d17924
Alerting: Add support to distinguish Prometheus datasource subtypes (Mimir, Cortex and Vanilla Prometheus) ( #46771 )
...
* Add basic UI for custom ruler URL
* Add build info fetching for alerting data sources
* Add keeping data sources build info in the store
* Use data source build info to construct data source urls
* Remove unused code
* Add custom ruler support in prometheus api calls
* Migrate actions
* Use thunk condition to prevent multiple data source buildinfo fetches
* Unify prom and ruler rules loading
* Upgrade RuleEditor tests
* Upgrade RuleList tests
* Upgrade PanelAlertTab tests
* Upgrade actions tests
* Build info refactoring
* Get rid of lotex ruler support action
* Add prom ruler availability checking when the buildinfo is not available
* Add rulerUrlBuilder tests
* Improve prometheus data source validation, small build info refactoring
* Change prefix based on Prometheus subtype
* Use the correct path
* Revert config routing
* Add deprecation notice for /api/prom prefix
* Add tests to the datasource subtype
* Remove custom ruler support
* Remove deprecation notice
* Prevent fetching ruler rules when ruler api is not available
* Add build info tests
* Unify naming of ruler methods
* Fix test
* Change buildinfo data source validation
* Use strings for subtype params and unveil mimir
* organise imports
* frontend changes and wordsmithing
* fix test suite
* add a nicer verbose message for prometheus datasources
* detect Mimir datasource
* fix test
* fix buildinfo test for Mimir
* shrink vectors
* add some code documentation
* DRY prepareRulesFilterQueryParams
* clarify that Prometheus does not support managing rules
* Improve buildinfo error handling
Co-authored-by: gotjosh <josue.abreu@gmail.com>
Co-authored-by: gillesdemey <gilles.de.mey@gmail.com>
2022-04-04 18:30:17 +01:00
0502a84922
Alerting: Add choice to external alertmanagers ( #45157 )
...
* implement alertmanagersChoice
* return empty array and remove non null assertion
2022-02-17 12:47:38 +01:00
3d0cff5410
Alerting: remove error banner when Prometheus ruler is not supported ( #44571 )
2022-02-08 21:03:14 +01:00
1cf48618de
Alerting: Improve Contact Points error handling ( #44888 )
...
* Add 400 and 408 errors handling to display useful error message
* Add generic error handling
* Improve type guard
2022-02-08 17:08:27 +01:00
8ee3f59cd4
Alerting: recognize Cortex datasources correctly in the frontend ( #44316 )
...
* Alerting: always use msg field for user facing errors
* fix: revert front-end Cortex detection
Co-authored-by: gillesdemey <gilles.de.mey@gmail.com>
2022-01-21 15:44:11 +01:00
dc163a958d
Alerting: update response text assertion ( #43291 )
2021-12-20 16:45:29 +01:00
02039d7532
Alerting: show state history ( #42362 )
2021-12-14 16:36:54 +01:00
b2d7162168
Alerting: Add external Alertmanagers ( #39183 )
...
* building ui
* saving alertmanager urls
* add actions and api call to get external ams
* add list to add modal
* add validation and edit/delete
* work on merging results
* merging results
* get color for status heart
* adding tests
* tests added
* rename
* add pollin and status
* fix list sync
* fix polling
* add info icon with actual tooltip
* fix test
* Accessibility things
* fix strict error
* delete public/dist files
* Add API tests for invalid URL
* start redo admin test
* Fix for empty configuration and test
* remove admin test
* text updates after review
* suppress appevent error
* fix tests
* update description
Co-authored-by: gotjosh <josue@grafana.com>
* fix text plus go lint
* updates after pr review
* Adding docs
* Update docs/sources/alerting/unified-alerting/fundamentals/alertmanager.md
Co-authored-by: gotjosh <josue@grafana.com>
* Update docs/sources/alerting/unified-alerting/fundamentals/alertmanager.md
Co-authored-by: gotjosh <josue@grafana.com>
* Update docs/sources/alerting/unified-alerting/fundamentals/alertmanager.md
Co-authored-by: gotjosh <josue@grafana.com>
* Update docs/sources/alerting/unified-alerting/fundamentals/alertmanager.md
Co-authored-by: gotjosh <josue@grafana.com>
* Update docs/sources/alerting/unified-alerting/fundamentals/alertmanager.md
Co-authored-by: gotjosh <josue@grafana.com>
* Update docs/sources/alerting/unified-alerting/fundamentals/alertmanager.md
Co-authored-by: gotjosh <josue@grafana.com>
* Update docs/sources/alerting/unified-alerting/fundamentals/alertmanager.md
Co-authored-by: gotjosh <josue@grafana.com>
* prettier
* updates after docs feedback
Co-authored-by: gotjosh <josue.abreu@gmail.com>
Co-authored-by: gotjosh <josue@grafana.com>
2021-11-12 22:19:16 +01:00
e8e84f9c23
Alerting: UI for contact point testing with custom annotations and labels ( #40491 )
...
* Support custom annotations and labels when testing contact points
* Add modal for testing contact point
* add option for custom notification type
* use annotation and labels fields from rule editor
* update receivers test for new contact point testing method
* rename modal and remove reserved keys for annotations
* add docs for testing contact points
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: George Robinson <george.robinson@grafana.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-11-03 09:57:59 -07:00
571257226e
Alerting: make alert state indicator in panel header work with Grafana 8 alerts ( #38713 )
2021-10-11 16:55:45 +03:00
2847f25781
Alerting: UI to edit cortex/loki namespace & group names, group eval interval ( #38543 )
2021-08-26 16:40:27 +03:00
dba15190af
Chore: Upgrades rxjs to 7.3.0 ( #37913 )
...
* Chore: upgrades rxjs to 7.3.0
* Chore: replaces toPromise with lastValueFrom
* Chore: removes unused mock that caused test error
* Chore: fixes build error in PieChartPanel
* Chore: fixed build error in requestAllIndices
* Chore: fixes comment
* Chore: trying to reduce docs errors
* Chore: searches for explicit api extractor warnings
* Chore: updates rxjs-spy to 8.0.0
* Chore: reverts to main
* Chore: upgrade rxjs and rxjs-spy
2021-08-19 06:38:31 +02:00
cb9912ec0a
Alerting: button to test contact point ( #37475 )
2021-08-18 10:16:35 +03:00
1881de8236
Alerting: add button to deactivate current alertmanager configuration ( #36951 )
...
* reset alert manager config button for admins
* "alert manager" -> "Alertmanager"
2021-07-22 09:15:39 +03:00
3ea8880d7f
Alerting: better detect cortex/loki ruler api ( #36030 )
...
* wip
* beter detect non existing rules stuff
* fix useIsRuleEditable
* test for detecting editable-ness of a rules datasource
* tests!
* fix lint errors
2021-07-12 14:10:13 -07:00
d480bbf262
Alerting: for cortex am, load default config from status if theres no user config ( #35769 )
2021-06-23 09:32:42 -07:00
0439009d4f
Alerting: miscellaneous alertmanager config issues, tests ( #35364 )
2021-06-14 15:37:28 +03:00
7dd5a065ba
Alerting: New alert list panel component ( #34614 )
2021-05-31 14:08:05 +02:00
347273cdea
Alerting: check upstream response content type in lotex proxy ( #34760 )
2021-05-27 14:12:29 +03:00
e19b3df1a9
Alerting: added possibility to preview grafana managed alert rules. ( #34600 )
...
* starting to add eval logic.
* wip
* first version of test rule.
* reverted file.
* add info colum to result to show error or (with CC evalmatches)
* fix labels in evalmatch
* fix be test
* refactored using observables.
* moved widht/height div to outside panel rendere.
* adding docs api level.
* adding container styles to error div.
* increasing size of preview.
Co-authored-by: kyle <kyle@grafana.com>
2021-05-26 10:06:28 +02:00
538b1b196b
Alerting: fix route, silence matchers ( #34372 )
2021-05-19 15:30:39 +03:00
89558f20bd
Alerting: improve error presentation in forms ( #34309 )
2021-05-19 10:12:44 +03:00
10a4606315
Alerting: edit cloud receivers ( #33570 )
2021-05-06 12:32:45 +03:00
d994d0e762
Alerting: Create and edit silences ( #33593 )
2021-05-06 10:29:02 +03:00
df4181c43a
Alerting: edit receivers (grafana) ( #33327 )
2021-04-28 12:22:48 +03:00
1913d304a3
Alerting: Add silences table ( #33138 )
...
* Create table for silences
* Style table to figma designs
* Add rules table to silences
* Rebase with new rules table
* Remove redundant reducer
* fetch alertmanager alerts (#33142 )
* fetch alertmanager alerts
* show the alerts json
* Use matching alerts from alertmanager api
* Add handle to expire silence
* Get silenced alerts closer to figma designs
* fix expire silence endpoint typo
* Style affected alerts table
* Add default empty string for alertmanager source
Co-authored-by: Domas <domasx2@gmail.com>
2021-04-27 13:46:34 -07:00
e8faec5c19
Alerting: create/edit notification templates ( #33225 )
2021-04-27 16:28:53 +03:00
67f6611d85
Alerting: receivers table in the receivers page ( #33119 )
2021-04-23 15:54:31 +03:00
60b469f836
Alerting: receivers page + template list ( #33112 )
2021-04-19 13:02:58 +03:00
0491fe0a5c
Alerting: separate namespace & group inputs for system alerts ( #33026 )
2021-04-16 14:57:33 +03:00
826d82fe95
Alerting: editing existing rules via UI ( #33005 )
2021-04-16 11:08:26 +03:00
282c62d8bf
Alerting: Rule edit form ( #32877 )
2021-04-14 15:57:36 +03:00
e6a98ce1e4
Alerting: bootstrap silences page ( #32810 )
2021-04-09 13:44:26 +03:00
a56293142a
Alerting: unified alerting frontend ( #32708 )
2021-04-07 08:42:43 +03:00