Commit Graph

864 Commits

Author SHA1 Message Date
Fabian Reinartz
3ebf21b7b4 provider/mesh: test NotificationInfos OnGossip* 2016-08-09 12:00:28 +02:00
Fabian Reinartz
c5d006537b main: simplify meshWait function 2016-08-09 12:00:28 +02:00
Fabian Reinartz
26b6eac6e1 *: add Procfile for example setup
This add a Procfile that can be run with `goreman start`. It starts
three Alertmanagers and one webhook receiver. The webhook receiver
simply reflects sent messages.
The send_alerts.sh script simulates a set of alerts sent by a Prometheus
server to all Alertmanagers at once.
2016-08-09 12:00:28 +02:00
Fabian Reinartz
c59f39557b notify,main: implement peer based notify backoff
This commit implements a wait period before actually dispatching
notifications. The backoff linearly depends on the UID order of
participating peers.
This gives the gossip state time to catch up and avoids duplicate
notifications while ensuring that every peer notifies eventually.
2016-08-09 12:00:28 +02:00
Fabian Reinartz
e51770ce21 main: use mesh providers 2016-08-09 12:00:28 +02:00
Fabian Reinartz
c8a22d5750 main: use flags as arguments instead of globals 2016-08-09 11:59:35 +02:00
Fabian Reinartz
9993a4f244 provider/mesh: add silence provider 2016-08-09 11:59:35 +02:00
Fabian Reinartz
3c7a16a838 provider/mesh: add notification gossip peer 2016-08-09 11:59:35 +02:00
Fabian Reinartz
b92c5f5bd4 provider/mesh: add silence state 2016-08-09 11:59:35 +02:00
Fabian Reinartz
8e9bd4cfd4 provider/mesh: add notificaiton state 2016-08-09 11:59:35 +02:00
Fabian Reinartz
c308b616c1 vendor: add weaveworks/mesh 2016-08-09 11:59:35 +02:00
Fabian Reinartz
81cbf3cda7 *: refactor Silence type, use UUID
This commit removes the dependency on model.Silence for the internal
Silence type, uses UUIDs instead of uint64s and clarifies invariants
around timestamp handling.

The created_at timestamp is removed for the time being.
2016-08-09 11:59:35 +02:00
Fabian Reinartz
2d0444cac1 vendor: add github.com/satori/go.uuid 2016-08-09 11:48:38 +02:00
Fabian Reinartz
8cac0ea62a provider: remove SQLite provider
Remove faulty and inperformat SQLite provider.
2016-08-09 11:48:38 +02:00
Fabian Reinartz
bc0897bb8f provider: remove in-memory provider
Remove the in-memory provider. It will be equivalent to a 1-peer
gossip setup.
2016-08-09 11:48:38 +02:00
Fabian Reinartz
4b3830310e Merge pull request #446 from prometheus/fabxc-retryctx
notify: always check context before retrying
2016-08-05 10:43:47 +02:00
Fabian Reinartz
bdcd3770ca notify: always check context before retrying
This addresses the misleading error messages reported in #212
Explanation: https://github.com/prometheus/alertmanager/issues/282#issuecomment-237784895

Fixes #282
2016-08-05 10:18:10 +02:00
Fabian Reinartz
66142a9115 Merge pull request #443 from prometheus/fabxc-empty-slack
config: make Slack channel optional
2016-08-03 10:06:10 +02:00
Fabian Reinartz
f8de58b6b6 config: make Slack channel optional 2016-08-03 08:24:42 +02:00
Fabian Reinartz
a9f7c9f318 Merge pull request #429 from mattbostock/hide_silenced_groups
Hide groups if all alerts within are silenced
2016-07-28 14:42:14 -07:00
Matt Bostock
16d8afd5a8 Hide groups if all alerts within are silenced
Currently, even if all alerts within a group are silenced, the group
summary still appears. This can take up a lot of space when many alerts
are silenced.

If all alerts in a group are silenced and 'Hide silences' is checked,
hide the empty group.

bindata was updated by running:

    make assets format
2016-07-28 13:28:12 +01:00
Fabian Reinartz
5b64baa419 Update Travis Go versions 2016-07-27 11:58:56 -07:00
Fabian Reinartz
42696d91de Merge pull request #417 from rhazdon/master
Add VictorOps Notifier
2016-07-27 11:58:32 -07:00
Djordje Atlialp
8e0f405e67 Add VictorOps Notifier
Add default VictorOpsAPIURL

Add VictorOps default config

Add VictorOpsConfig struct in notifiers

Add new template tags for victorops

Add notifications logic for victorops

Compiled template tags with make assets

Remove common labels from entity_id template

Set messageType default value to CRITICAL

Recovery messageType is not configurable anymore. Firing state only allows specific keys

Make assets

Using log.Debugf

EntityID should not be configureable

Remove entity_id from template

Use GroupKey(ctx) as entity_id

Improve debug logging

Fix type of entity_id
2016-07-27 00:49:05 +02:00
Fabian Reinartz
9a2132a45b Revert "circle: tag pre-release docker images"
This reverts commit 8c2320752e.
2016-07-14 11:40:10 +09:00
Fabian Reinartz
8c2320752e circle: tag pre-release docker images 2016-07-14 11:36:39 +09:00
Julius Volz
50aac965ba Merge pull request #426 from tcolgate/master
OpsGenie Notifier, fixes and additions:
2016-07-13 01:31:53 +02:00
Tristan Colgate
de2252911e OpsGenie Notifier, fixes and additions:
- OpsGenie notifier confused the description and message fields
- Also added the notes field.
2016-07-12 16:20:23 +01:00
Fabian Reinartz
42c193b136 Merge pull request #424 from prometheus/sdurrheimer/fix-circleci-regex
circleci : fix missing regex update for v-prefiexed tags
2016-07-09 19:19:34 +02:00
Steve Durrheimer
647ab1ce1b
circleci : fix missing regex update for v-prefiexed tags 2016-07-09 15:41:41 +02:00
Fabian Reinartz
97eca6d604 Merge pull request #422 from prometheus/fabxc-0.3.0
Release AM 0.3.0
2016-07-08 11:47:32 +02:00
Fabian Reinartz
ec2932a733 circleci: detect v-prefixed tags 2016-07-08 11:22:10 +02:00
Fabian Reinartz
a8033e7d80 *: cut 0.3.0 2016-07-07 11:53:47 +02:00
Fabian Reinartz
e922acd088 Merge pull request #420 from prometheus/fabxc-memalerts
provider/boltmem: make alerts purely in-memory.
2016-07-07 11:16:33 +02:00
Fabian Reinartz
d6e64dccc5 provider/boltmem: make alerts purely in-memory.
Initial testing has shown BoltDB in plain usage to be a bottleneck
at a few thousand alerts or more (especially JSON decoding.
This commit actually makes them purely memory as a temporary solution.
2016-07-07 09:45:12 +02:00
Brian Brazil
ec708124be Merge pull request #418 from tbouvet/master
Add support for smtp AUTH LOGIN
2016-07-05 15:24:32 +01:00
Thierry BOUVET
936f7e6362 Add smtp AUTH LOGIN 2016-07-05 15:10:42 +02:00
Fabian Reinartz
dd3e9b62c4 Merge pull request #414 from diogogmt/master
Updated webhook notifier config name in UnmarshalYAML.
2016-06-29 00:23:49 +02:00
Diogo Monteiro
fe12aaa6eb Updated webhook notifier config name in UnmarshalYAML. 2016-06-28 18:19:09 -04:00
Fabian Reinartz
3f1c996f64 Merge pull request #405 from prometheus/fabxc-0.2.1
*: cut 0.2.1
2016-06-23 11:05:49 +02:00
Fabian Reinartz
3efd928e91 *: cut 0.2.1 2016-06-23 10:58:12 +02:00
Fabian Reinartz
8da61aa1b0 Merge pull request #402 from prometheus/master
Merge changes into release-0.2
2016-06-23 10:54:37 +02:00
Fabian Reinartz
8dc2f9740d Merge pull request #397 from prometheus/fabxc-sil-fix
Add silence cache in front of BoltDB
2016-06-22 17:45:44 +02:00
Fabian Reinartz
ee37ea6965 provider/boltmem: add in-memory silence cache 2016-06-22 14:29:23 +02:00
beorn7
d3c2ff7bba Fix VERSION 2016-06-21 22:39:47 +02:00
Björn Rabenstein
fc8f20186c Merge pull request #395 from sciffer/hipchat_fix
Fixing hipchat room number formating to string
2016-06-21 16:44:21 +02:00
Fabian Reinartz
1a93b01234 api: fix missing silence initialization 2016-06-21 16:38:35 +02:00
shalom
218c44d6ca Fixing hipchat room number formating to string 2016-06-21 10:33:40 -04:00
Fabian Reinartz
202235fb79 Merge pull request #368 from mattbostock/inherit_receivers
Allow route receiver to be inherited
2016-06-20 15:07:33 +02:00
Fabian Reinartz
3bbb296490 Merge pull request #386 from prometheus/fabxc-0.2.0
*: cut 0.2.0
2016-06-17 16:22:52 +02:00