Sofia Papagiannaki
4f2a3f92e4
Docs: update alerting ( #39899 )
...
* Docs: update alerting
* Apply suggestions from code review
Co-authored-by: Armand Grillet <2117580+armandgrillet@users.noreply.github.com>
2021-10-06 11:53:22 +02:00
Santiago
562cd9e44e
Alerting template functions ( #39261 )
...
* Alerting: (wip) add template funcs
* Alerting: (wip) numeric template functions
* Alerting: (wip) template functions
* Test for the "args" function
* Alerting: (wip) Documentation for template functions
* Alerting: template functions - refactor
* code review changes
* disable linter error
* Use Prometheus implementation of TemplateExpander
* 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>
* change templateCaptureValue to support using template functions
* Update pkg/services/ngalert/state/template.go
Co-authored-by: gotjosh <josue.abreu@gmail.com>
* Test and documentation added for reReplaceAll template function
* complete missing functions, documentation and tests
* Use the alert instance's evaluation time for expanding the template
* strvalue graphlink and tablelink functions
* delete duplicate test
* make strvalue return an empty string
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: gotjosh <josue.abreu@gmail.com>
2021-10-04 15:04:37 -03:00
Sofia Papagiannaki
012d4f0905
Alerting: Remove ngalert
feature toggle and introduce two new settings for enabling Grafana 8 alerts and disabling them for specific organisations ( #38746 )
...
* Remove `ngalert` feature toggle
* Update frontend
Remove all references of ngalert feature toggle
* Update docs
* Disable unified alerting for specific orgs
* Add backend tests
* Apply suggestions from code review
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Disabled unified alerting by default
* Ensure backward compatibility with old ngalert feature toggle
* Apply suggestions from code review
Co-authored-by: gotjosh <josue@grafana.com>
2021-09-29 16:16:40 +02:00
Santiago
c3cf95f383
Revert "Alerting: add template funcs ( #38404 )" ( #39258 )
...
This reverts commit d6fb0181fb
.
2021-09-15 19:47:22 -03:00
Santiago
0d2e68537c
Alerting: Cleanup template, silence and notification files created du… ( #39007 )
...
* Alerting: Cleanup template, silence and notification files created during tests
* Create tempdir for testing, delete afterwards and check for errors
* Refactoring error checks
* Update docs/sources/enterprise/access-control/fine-grained-access-control-references.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/administration/configuration.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/enterprise/access-control/fine-grained-access-control-references.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-09-15 18:48:52 -03:00
Santiago
d6fb0181fb
Alerting: add template funcs ( #38404 )
...
* Alerting: (wip) add template funcs
* Alerting: (wip) numeric template functions
* Alerting: (wip) template functions
* Test for the "args" function
* Alerting: (wip) Documentation for template functions
* Alerting: template functions - refactor
* code review changes
* disable linter error
* Use Prometheus implementation of TemplateExpander
* 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-09-15 18:48:29 -03:00
Andrew Burian
e4c80d1269
Update silences.md ( #38834 )
...
* Update silences.md
minor correction in not equals regex
* Update docs/sources/alerting/unified-alerting/silences.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-09-15 10:59:18 -04:00
Michael Kopinsky
baff8fe39d
Add link to default template ( #39106 )
...
This would have been useful to me. Perhaps it would be useful to others?
2021-09-13 10:29:23 -04:00
Yuriy Tseretyan
5b7dc16c06
Alerting: Clarify group by label in documentation of notification policies ( #39105 )
...
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-09-13 09:03:06 -04:00
gotjosh
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
ying-jeanne
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
achatterjee-grafana
27e1c49534
Fixed a couple of broken relrefs. ( #38833 )
2021-09-02 20:11:25 +02:00
Domas
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
Kyle Brandt
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
Armand Grillet
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
Kyle Brandt
d43d9207ee
Alerting/Docs: $labels and $values not available with classic condition ( #38011 )
...
fixes #37836
2021-08-19 09:02:41 -04:00
Connor Lindsey
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
achatterjee-grafana
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
achatterjee-grafana
132e9c74c0
Topics deleted are "troubleshooting" and "view-alerts". ( #37395 )
2021-07-30 08:07:23 -04:00
Nathan Rodman
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
George Robinson
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
Ganesh Vernekar
5806c66825
Alerting: Fix the table markdown docs ( #36901 )
...
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2021-07-20 15:37:19 +05:30
Ganesh Vernekar
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
George Robinson
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
Domas
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
George Robinson
36cb396568
Add ValueString to the documentation for alerts ( #36654 )
2021-07-12 17:20:42 +01:00
Sofia Papagiannaki
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
gotjosh
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
Domas
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
Sofia Papagiannaki
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
Ganesh Vernekar
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
achatterjee-grafana
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
Nolan Crooks
e4a4446004
Fix typo ( #35452 )
2021-06-09 20:05:49 +02:00
achatterjee-grafana
ec9b9d6ab1
Added a note to differentiate legacy and new alerts. ( #35385 )
2021-06-08 11:27:21 -04:00
Sofia Papagiannaki
6a39fc9ae1
Docs: Fix image paths ( #35334 )
2021-06-08 15:26:53 +03:00
achatterjee-grafana
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
Domas
eb9e7d9fb9
Docs: expand unified alerting silences docs page ( #35332 )
2021-06-07 16:51:18 +03:00
Sofia Papagiannaki
26ce294eea
Docs: Fix misspellings ( #35308 )
2021-06-07 09:47:54 -04:00
Domas
d20390bdd9
Docs: unified alerting message templating ( #35023 )
2021-06-07 14:01:21 +03:00
Domas
d0eee917a5
document contact points for unified alerting ( #34983 )
2021-06-07 11:54:15 +03:00
Sofia Papagiannaki
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
achatterjee-grafana
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
Ganesh Vernekar
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
Diana Payton
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
David Parrott
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
Kyle Brandt
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
Domas
a7fa831071
Docs: unified alerting notification policies ( #35118 )
...
* wip
* finished
* typos
* fix img link
2021-06-02 14:28:24 -04:00
Kyle Brandt
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
Ursula Kallio
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
Domas
d6037a49b6
Docs: document creating alert rules ( #34839 )
2021-05-28 17:20:54 +03:00