grafana/pkg/services/alerting/notifiers
Dewald Viljoen 6fa53a1ee4
Alerting: Allow sending notification tags to Opsgenie as extra properties (#30332)
* Alerting: Opsgenie send tags as extra properties

Allow users to select where to send notification tags when alerting via
OpsGenie. Supports sending tags as key/value details, concatenated
strings in tags or both.

Users will be able to see their tags as key/values under extra
properties in an alert on the Opsgenie UI. These key/values can
then be used in the platform for routing, templating etc.

  * Configurable delivery to either tags, extra properties or both

  * Default to current behaviour (tags only)

  * Support both so users can transition from tags to details

Add docs and clean up references

* Alerting: Add additional arg for Opsgenie tests

The NewEvalContext function now requires a 'PluginRequestValidator' argument.
As our test does not use the validator we can specify 'nil' to satisfy the
function and allow our test to pass as expected.

* Alerting: Opsgenie doc fixes

Accept suggested changes for Opsgenie docs

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

* Alerting: Opsgenie provisioning settings docs

Add the new setting to the provisioning docs

* Alerting: Opsgenie doc typo correction

Move the comma (,) out of the preformatting tags for the setting value

* Alerting: Opsgenie refactor send switches

Refactor the send switches to be methods on the OpsgenieNotiefier
itself. This also cleans up the method names so that the code reads
a bit more logically as:

if we should send details: send details
if we should send tags: send tags

This avoids the calling code needing to care about passing the state
and allows an engineer working in the `createAlert` function to focus
on the results of applying the logic instead.

* Alerting: Opsgenie docs rename note


Rename the note heading to match the number to more clearly link them.

* Alerting: Opsgenie use standard reference to note

Refer to the note below as per recommendation and standards.

Fixes #30331

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-03-24 17:07:26 +01:00
..
alertmanager_test.go Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00
alertmanager.go Alerting: Fix so that sending an alert with the Alertmanager notifier doesn't fail when one of multiple configured URL's are down (#31079) 2021-02-11 15:13:53 +01:00
base_test.go Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00
base.go Chore: spelling in Go code (#24433) 2020-06-02 14:42:34 +02:00
dingding_test.go Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00
dingding.go Alarting: fix alarm messages in dingding (Fixes #29470) (#29482) 2020-12-02 11:09:49 +01:00
discord_test.go Correct name of Discord notifier tests (#31277) 2021-02-17 17:24:07 +01:00
discord.go Alerting: Fix bug in Discord for when name for metric value is absent (#31257) 2021-03-02 11:37:35 +02:00
email_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
email.go Migration: Edit notification channel (#25980) 2020-09-09 12:46:19 +02:00
googlechat_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
googlechat.go Alerting: Ensuring notifications displayed correctly in mobile device with Google Chat (#27578) 2020-09-18 09:41:34 +03:00
hipchat_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
hipchat.go Chore: Enable exhaustive linter (#29458) 2020-12-01 09:53:27 +01:00
kafka_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
kafka.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
line_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
line.go LINE Notify to have Alerts and OK notifications (#27639) 2020-09-24 15:45:53 +02:00
opsgenie_test.go Alerting: Allow sending notification tags to Opsgenie as extra properties (#30332) 2021-03-24 17:07:26 +01:00
opsgenie.go Alerting: Allow sending notification tags to Opsgenie as extra properties (#30332) 2021-03-24 17:07:26 +01:00
pagerduty_test.go Alerting: PagerDuty: adding current state to the payload (#29270) 2021-03-02 17:50:51 +01:00
pagerduty.go Alerting: PagerDuty: adding current state to the payload (#29270) 2021-03-02 17:50:51 +01:00
pushover_test.go Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00
pushover.go Alerting: Customise OK notification priorities for Pushover notifier (#30169) 2021-02-03 10:57:18 +02:00
sensu_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
sensu.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
sensugo_test.go Alerting: Add support for Sensu Go notification channel (#28012) 2020-11-27 19:09:24 +02:00
sensugo.go Alerting notifier SensuGo: improvements in default message (#31428) 2021-02-25 10:52:34 +01:00
slack_test.go Chore: Drop xerrors dependency (#26718) 2020-07-31 09:45:20 +02:00
slack.go Security: Add gosec G304 auditing annotations (#29578) 2020-12-03 22:13:06 +01:00
teams_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
teams.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
telegram_test.go Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00
telegram.go Chore: Disable default golangci-lint filter (#29751) 2020-12-15 09:32:06 +01:00
threema_test.go Chore: Enable errorlint linter (#29227) 2020-11-19 14:47:17 +01:00
threema.go Chore: Enable exhaustive linter (#29458) 2020-12-01 09:53:27 +01:00
victorops_test.go Alerting: Enable Alert rule severity tag to override VictorOps Severity setting (#29392) 2021-03-18 09:50:07 -04:00
victorops.go Alerting: Enable Alert rule severity tag to override VictorOps Severity setting (#29392) 2021-03-18 09:50:07 -04:00
webhook_test.go WebhookNotifier: Convert tests away from goconvey (#29291) 2020-11-23 10:37:53 +01:00
webhook.go Migration: Edit notification channel (#25980) 2020-09-09 12:46:19 +02:00