39a3bb8a1c
Alerting: Persist notification log and silences to the database ( #39005 )
...
* Alerting: Persist notification log and silences to the database
This removes the dependency of having persistent disk to run grafana alerting. Instead of regularly flushing the notification log and silences to disk we now flush the binary content of those files to the database encoded as a base64 string.
2021-09-09 17:25:22 +01:00
c989f0fbbe
SQL: Migrate to use SDK contracts ( #36635 )
...
* convert SQLs to use sdk contracts
* make draft
* postgres
* intermedia
* get datasourceinfo filled at the beginning of the service
* move the interval into package because of cyclict import and fix all postgres tests
* fix mysql test
* fix mssql
* fix the test for pr https://github.com/grafana/grafana/issues/35839
* fix some issue about intervalv2 package
* update sql test
* wire migration for SQLs
* add sqls to the background process
* make it register instead of register and start
* revert formatting
* fix tests
* fix linter
* remove integration test
* Postgres test fix
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2021-09-07 09:35:37 +02:00
27e1c49534
Fixed a couple of broken relrefs. ( #38833 )
2021-09-02 20:11:25 +02:00
7fe3599ab1
Docs: document editing cortex/loki recording rules, namespaces and groups ( #38547 )
...
* document recording rule creation
* namespace/group editing docs
* explain namespaces & groups
* Jita's suggestions
2021-09-01 11:35:33 -04:00
79e79fe244
Alerting/Docs: Clarify NoData option ( #38451 )
...
* Alerting/Docs: Clarify NoData option
for #37665
* Update docs/sources/alerting/unified-alerting/alerting-rules/create-grafana-managed-rule.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-08-30 09:13:04 -04:00
4a73e0f9a8
Docs: Remove an unnecessary legacy alerts notification webhook listing and reduce promotional content ( #38644 )
...
* Removed an unecessary webhook listing and modified some text to reduce promotion for specific tooling.
* Updated doc content with Eve and Ursula's review.
* Removed "the".
Co-authored-by: achatterjee-grafana <aparajita.chatterjee@grafana.com>
2021-08-27 11:17:58 -04:00
72d296843d
Docs: clarify state of Unified Alerting ( #38603 )
...
* Docs: clarify state of Unified Alerting
* Update docs/sources/alerting/unified-alerting/_index.md
Co-authored-by: Kyle Brandt <kyle@grafana.com>
* Adjusted note to move below the introduction.
* Fixed a typo and added beta notes.
* Minor typo fix.
* Docs: remove innacurate beta label for Grafana 8.0
Grafana 8.0 is not in beta, only unified alerting.
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: Kyle Brandt <kyle@grafana.com>
Co-authored-by: achatterjee-grafana <aparajita.chatterjee@grafana.com>
2021-08-27 15:09:28 +02:00
d43d9207ee
Alerting/Docs: $labels and $values not available with classic condition ( #38011 )
...
fixes #37836
2021-08-19 09:02:41 -04:00
e49aa48dbb
Added note on pagerduty alert notification ( #37759 )
2021-08-13 12:32:42 -04:00
b78a67cec7
PackageJson: Prettify markdown/mdx on commit with lint-staged ( #37616 )
...
* Format md,mdx files with prettier on lint-staged
* Manually run prettier on docs/sources
2021-08-06 07:52:36 -06:00
012b9c41a5
Doc issue 37280 ( #37416 )
...
* Additional fix: Resized two images in 8.1 what's new to make them smaller
* Fixed some broken links and deleted another empty Grafana 8 alert topic.
* Replaced reference to troubleshooting with state and health check.
2021-07-30 12:21:51 -04:00
132e9c74c0
Topics deleted are "troubleshooting" and "view-alerts". ( #37395 )
2021-07-30 08:07:23 -04:00
5f0bc252bc
Alerting: support label matcher syntax in alert rule list filter ( #36408 )
...
* Add filter parsing to rule list filters
* Add unit tests for label parsing
* Make label operators an enum
* add example for parsing function
* Update labels operator regex
* Add tests to rule list for filtering
* add additional test for testing alert instances filtering
* Use tooltip for query syntax example
* refactor to use Matchers for filtering
* Update docs for label filtering on rules list
* style fixes
2021-07-26 12:05:49 -07:00
2f4c893cf3
Expand the value string in annotations and labels of alerts ( #37051 )
...
This commit makes it possible to use the value string in
annotations and labels for alerts with "{{ $value }}"
2021-07-22 15:20:44 +01:00
50b7674b58
fix alerting docs aliases so we redirect instead of 404 old urls ( #37037 )
...
* fix alerting docs aliases so we redirect instead of 404 old urls
* add missing alias
2021-07-20 20:34:23 -04:00
5806c66825
Alerting: Fix the table markdown docs ( #36901 )
...
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2021-07-20 15:37:19 +05:30
34699713ea
Alerting: Update docs to mention the requirement of persistent disks ( #36808 )
...
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2021-07-19 17:51:33 +02:00
456dac1303
Expand the value of math and reduce expressions in annotations and labels ( #36611 )
...
* Expand the value of math and reduce expressions in annotations and labels
This commit makes it possible to use the values of reduce and math
expressions in annotations and labels via their RefIDs. It uses the
Stringer interface to ensure that "{{ $values.A }}" still prints the
value in decimal format while also making the labels for each RefID
available with "{{ $values.A.Labels }}" and the float64 value with
"{{ $values.A.Value }}"
2021-07-15 13:10:56 +01:00
32a551b4ca
Alerting: add toggle in Loki/Prom datasource config to opt out of alerting ui ( #36552 )
...
* wip
* fix useIsRuleEditable
* test for detecting editable-ness of a rules datasource
* tests!
* fix lint errors
* add alerting ui opt-out toggle to loki and prom datasources
* Apply suggestions from code review
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-07-12 15:06:09 -07:00
36cb396568
Add ValueString to the documentation for alerts ( #36654 )
2021-07-12 17:20:42 +01:00
d525a5a469
Docs: Add security warning about using Grafana 8 alerts with multiple organisations ( #36308 )
...
* Docs: Add security warning about using Grafana 8 alerts with multiple orgs
2021-07-01 16:29:35 +03:00
603d1cddb8
Update _index.md ( #36248 )
...
Spelling error on line 18.
aerts -> alerts
2021-06-29 09:52:04 -04:00
91751d7e38
[Alerting] Update documentation with regards to clustering ( #36261 )
...
* [Alerting] Update documentation with regards to clustering
* 8.1 not 8.2
2021-06-29 07:17:02 -04:00
d427b57c0e
Docs: document cortex/loki data source caveats for alerting ( #36074 )
...
* Document cortex/loki datasource caveats
* Update docs/sources/alerting/unified-alerting/alerting-rules/create-cortex-loki-managed-rule.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/alerting/unified-alerting/alerting-rules/create-cortex-loki-managed-rule.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-06-23 16:08:56 +02:00
33bfd6fa53
Docs: Document migration of dashboard alert permissions ( #35559 )
...
* Docs: Document migration of dashbard alert permissions
* Add reference to the configuration
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-06-15 11:39:15 -03:00
673b03671d
Docs: Fix template example for unified alerting ( #35620 )
...
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2021-06-14 17:38:24 +05:30
07a970a50f
Doc add note to alerting docs ( #35528 )
...
* Added note about retrieving rules from data sources.
* Polishing content.
* Fixed typos
* Update docs/sources/alerting/unified-alerting/opt-in.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Update docs/sources/alerting/unified-alerting/opt-in.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Update docs/sources/alerting/unified-alerting/opt-in.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-06-10 13:51:42 -04:00
e4a4446004
Fix typo ( #35452 )
2021-06-09 20:05:49 +02:00
ec9b9d6ab1
Added a note to differentiate legacy and new alerts. ( #35385 )
2021-06-08 11:27:21 -04:00
6a39fc9ae1
Docs: Fix image paths ( #35334 )
2021-06-08 15:26:53 +03:00
1f012871b4
Fix alerting docs ( #35340 )
...
* First commit.
* More changes, to make sure all alert information flows.
* Updated a title
2021-06-07 13:07:06 -04:00
eb9e7d9fb9
Docs: expand unified alerting silences docs page ( #35332 )
2021-06-07 16:51:18 +03:00
26ce294eea
Docs: Fix misspellings ( #35308 )
2021-06-07 09:47:54 -04:00
d20390bdd9
Docs: unified alerting message templating ( #35023 )
2021-06-07 14:01:21 +03:00
d0eee917a5
document contact points for unified alerting ( #34983 )
2021-06-07 11:54:15 +03:00
a7475e9cb9
Docs: Update alerting opt-in page ( #35285 )
...
* Alerting: Update opt-in docs
* Apply suggestions from code review
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-06-04 22:36:38 +03:00
1f75afc8e8
Docs: library panel ( #35272 )
...
* Added "Create a library panel".
* Fixed broken relrefs
* More changes.
* Added more content.
* Update docs/sources/panels/panel-library.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Updated title
* Added link to topic from What's New
* Few minor edits.
* Updated intro based on Petros's feedback.
* Slight modification to create lib panel based on feedback.
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-06-04 20:13:56 +02:00
de3bcb6071
Alerting: Update docs for templating in rule labels ( #35238 )
...
* Alerting: Update docs for templating in rule labels
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
* Fix comment
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2021-06-04 17:46:05 +05:30
1c37fc1a6f
Docs: Yet more panel updates ( #35213 )
...
* Update stat-panel.md
* Update stat-panel.md
* Update whats-new-in-v8-0.md
* Update state-timeline.md
* fixed links
* Update news-panel.md
2021-06-03 22:02:47 +02:00
17d98cfe43
Alerting: unified alerting docs state and health ( #34945 )
...
* alerting rule lading page
* add alert state and health doc
* update
* Conflicts:
docs/sources/alerting/unified-alerting/alerting-rules/rule-list.md
2021-06-03 18:59:45 +02:00
406f0458b2
Alerting/Docs: Non-timeseries / numeric alerting ( #35190 )
...
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-06-03 18:15:24 +02:00
a7fa831071
Docs: unified alerting notification policies ( #35118 )
...
* wip
* finished
* typos
* fix img link
2021-06-02 14:28:24 -04:00
c4b4171d85
Alerting/Docs: Silence documentation ( #35052 )
...
Co-authored-by: David Parrott <stomp.box.yo@gmail.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-06-02 08:26:58 -04:00
e0a3f669e5
Add fine-grained-access-control-references.md file. ( #35043 )
...
* Add fine-grained-access-control-references.md file.
* Fix syntax error in relref.
* Fix another syntax error.
* Fix broken link:
see introduction of alert rules at PR
https://github.com/grafana/grafana/pull/34839 .
2021-06-01 16:35:38 +02:00
badec6c6ad
Alerting: Add support for configuring avatar URL for the Discord notifier ( #33355 )
...
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-05-28 23:00:21 +02:00
d6037a49b6
Docs: document creating alert rules ( #34839 )
2021-05-28 17:20:54 +03:00
38147cc6c8
Domas: document unified alerting rule list view ( #34667 )
2021-05-28 17:17:33 +03:00
327fa124a4
cleanup shortcodes, asset paths ( #34826 )
2021-05-28 11:27:40 +02:00
9eaa387cce
fix link ( #34870 )
2021-05-28 09:13:47 +02:00
8ab8c9cd9a
Alerting: docs for Unified Alerting opt-in, index, difference-old-new ( #34684 )
...
* opt-in, index, difference-old-new
* correct punctuation
* remove unified verbiage
2021-05-27 15:07:51 -07:00