bergquist
d29563ff8e
alerting: bad default state for notifiers
...
when we made image upload optional we didnt
show the default value properly in the UI. Which
caused confusing. This commit apply the default
values to existing notifiers in the edit pages
and reverts back to using uploadimage=true as the
default value.
2018-03-28 12:52:39 +02:00
Corentin Chary
3d8f1a7439
alertmanager: /Creating/Sending/
2018-03-15 13:48:58 +01:00
Corentin Chary
c8da1a46c5
alertmanager: handle resolved alerts, nodata, and execution errors
...
- Resolved alerts will be sent to the AM the first time they move
from Alerting to OK
- Errors are forwarded
- NoData is not ignored anymore
- The summary annotation is set (with the alertname)
- The image annotation is set (when available)
2018-03-15 12:02:29 +01:00
Corentin Chary
d4d2b6d7da
notitfiers: avoid ShouldNotify duplication
2018-03-15 10:48:29 +01:00
Corentin Chary
777c1024c9
alertmanager: if there are no alerts to send, do nothing
2018-03-15 10:08:03 +01:00
Leonard Gram
87bc60b9d7
alerting: adds back the link to grafana.
2018-03-13 13:29:57 +01:00
John Baublitz
aba6f627c5
Fix CI
2018-03-13 13:29:57 +01:00
John Baublitz
89557dd67b
Modify Grafana Pagerduty notifier to use Pagerduty API V2
2018-03-13 13:29:57 +01:00
Carl Bergquist
c39e68de24
Merge pull request #11046 from llamashoes/master
...
Add metrics that triggered alert to description in OpsGenie.
2018-03-07 15:48:30 +01:00
Leonard Gram
891462b5d9
alerting: Limits telegram captions to 200 chars.
...
The caption for inline images in Telegram is
limited to 200 characters.
Fixes #10975
2018-03-06 12:38:03 +01:00
Ryan Gifford
49266d5150
Add metrics that triggered alert to description
2018-02-28 15:26:11 -07:00
Marcel Anacker
69006a7764
Alerting: Fix OK state doesn't show up in Microsoft Teams ( #11032 )
...
* Alerting: Fix OK state doesn't show up in Microsoft Teams
* Fix formatting
2018-02-27 15:48:36 +01:00
bkaganyildiz
97d969bd5c
Update OpsGenie Notifier to support different api domains.
2018-01-22 22:27:35 +03:00
Matt
0dffb6dbb1
Adjusted the border color on the buttons in dashboard nav, fixed alert email text area width, fixed padding-top issue on dashboard settings aside
2018-01-18 14:40:08 +01:00
Robin Burchell
43109dc8ca
telegram: Send notifications with an inline image
...
If image upload is enabled, but there is no public image repository,
fall back to sending an image via telegram's API.
2018-01-11 17:23:50 -05:00
Robin Burchell
b6fcf2b609
telegram: Switch to using multipart form rather than JSON as a body
...
This is a pre-requisite for uploading inline images.
2018-01-11 17:21:43 -05:00
Robin Burchell
a1a9f339bf
telegram: Fix a typo in variable name
2018-01-11 17:21:43 -05:00
bergquist
7917efb31a
pagerduty: fixes invalid default value
...
autoResolve incident checkbox was set to disabled by default but
the backend used enabled as default. This commit makes both use
disabled by defualt
fixes #10222
2017-12-22 10:54:48 +01:00
bergquist
e480a38dc1
pagerduty: adds test for reading auto resolve setting
2017-12-22 09:58:37 +01:00
Carl Bergquist
e2be6a38c4
pushover: update default message
2017-12-19 14:31:26 +01:00
Carl Bergquist
f36aa2e953
Merge branch 'patch-1' of https://github.com/devkid/grafana into devkid-patch-1
...
* 'patch-1' of https://github.com/devkid/grafana :
Add default message for Pushover notifications
2017-12-19 14:30:09 +01:00
bergquist
ade734168c
alertmanager: endAt should only be used if we have the correct value
2017-12-13 19:17:00 +01:00
bergquist
3691faf136
alertmanager: code style
2017-12-13 19:17:00 +01:00
bergquist
1240db31d3
alerting: reduce log level for notifiers
2017-12-13 19:17:00 +01:00
Thibault Chataigner
a8264fe316
Alertmanager notifier: add "metric" labels if no tags
...
Signed-off-by: Thibault Chataigner <t.chataigner@criteo.com >
2017-12-13 19:17:00 +01:00
Thibault Chataigner
3a7939c930
Alertmanager notifier: make it match the new notifier interface
...
Signed-off-by: Thibault Chataigner <t.chataigner@criteo.com >
2017-12-13 19:17:00 +01:00
Mitsuhiro Tanda
20d94f9703
support alertmanager
2017-12-13 19:17:00 +01:00
Thibault Chataigner
fd633a1d5d
Add a per-notifier ShouldNotify()
...
This way we are able to edit notification behavior per notifier.
This would be usefull to let some notifiers send notifications,
even when the state doesn't change, or with custom condition.
Signed-off-by: Thibault Chataigner <t.chataigner@criteo.com >
2017-12-12 17:35:54 +01:00
Alfred Krohmer
72e686457c
Add default message for Pushover notifications
...
If the message field is left empty for Pushover notifications, the API will return an error. This adds a default message if the message would otherwise be empty.
This fixes #8006 .
2017-12-11 22:14:38 +01:00
Daniel Lee
554c7ba96f
notifier: Fixes path for uploaded image for Slack notifier
...
Fixes #10012
2017-11-29 11:16:45 +01:00
bergquist
3bb704144d
teams: removes print statement
2017-11-14 11:05:01 +01:00
Anton Huck
fd2451823b
Add Microsoft Teams notifier
2017-11-14 11:05:01 +01:00
Chris Chandler
204fe007b7
When Messasge field is set for an alert, map it to the output field in a Sensu check result. If Message is empty, send "Grafana Metric Condition Met"
2017-10-17 16:22:56 -05:00
utkarshcmu
da47dc8947
Fixed failing go tests
2017-10-09 18:56:05 -07:00
utkarshcmu
a562dc7c2b
gofmt fixes
2017-10-09 18:27:04 -07:00
utkarshcmu
138bee99ef
Added tests
2017-10-09 18:27:04 -07:00
utkarshcmu
d60339a9b1
Kafka REST Proxy works with Grafana
2017-10-09 18:27:04 -07:00
Carl Bergquist
ab5bc1bf4a
Merge pull request #9111 from eloo/feature/enhance_hipchat_card
...
Feature/enhance hipchat card
2017-10-05 16:11:04 +02:00
Joseph Weigl
6a030b2e8c
Change empty string checks and improve logging
2017-10-05 16:00:55 +02:00
Carl Bergquist
6a20c28c8c
Merge pull request #9399 from cglrkn/master
...
Update script to make it use OpsGenie's REST API
2017-10-05 09:56:27 +02:00
Cagla Arikan
5a3f32521e
Fix formatting issue
2017-10-05 08:42:45 +03:00
Joseph Weigl
7284db0e54
Fix empty message and toolong attribute names
...
Use default state message if no message is provided by the user
Slice attribute name to maximum of 50 chars
2017-10-04 16:07:13 +02:00
cglrkn
548bc6b7c4
Add the missing comma
2017-10-04 10:15:39 +03:00
cglrkn
ef518f6ecd
Build URL for close alert request differently
2017-10-03 15:13:05 +03:00
Matthew McGinn
be0d471467
properly parse & pass upload image bool from config
2017-10-02 23:18:48 -04:00
Matthew McGinn
122e2b5c42
break out slack upload into separate function
2017-10-02 20:48:35 -04:00
cglrkn
d8f6c73aab
Update script to make it use OpsGenie's REST API
...
The script is making API calls to the deprecated OpsGenie Web API, we updated the script to make it use new OpsGenie's REST API.
2017-10-02 16:42:09 +03:00
Matthew McGinn
89ca4b247b
fixing json for CI
2017-10-01 10:37:59 -04:00
Matthew McGinn
00726e93eb
adding support for token-based slack file.upload API call for posting images to slack
2017-09-30 21:20:20 -04:00
Carl Bergquist
8a7f87b752
Merge pull request #9311 from ctrlok/ctrlok/pagerdutyinfo
...
Include triggering metrics to pagerduty alerts (pretty print)
2017-09-29 15:40:49 +02:00