Łukasz Mierzwa
71c0dce1f6
Vendor renamed Sirupsen/logrus to sirupsen/logrus, fix imports
2017-07-02 10:12:33 -07:00
Łukasz Mierzwa
26d14d1bd2
Refactor Alertmanager API client code to use multiple upstream instances
...
Alerts are stored per instance and deduplicated on read.
2017-06-28 22:35:16 -07:00
Łukasz Mierzwa
38d5bd8684
Deduplicate alerts, not only groups
2017-06-06 21:34:56 -07:00
Łukasz Mierzwa
081b93c6b8
Group ID needs to include receiver name
2017-06-06 21:34:56 -07:00
Łukasz Mierzwa
7bac3d89c0
Deduplicate groups
2017-06-06 21:34:56 -07:00
Łukasz Mierzwa
495768ee37
Correctly update alerts
2017-06-03 14:51:17 -07:00
Łukasz Mierzwa
6d15a82e89
Support multiple receivers
2017-06-03 13:23:51 -07:00
Łukasz Mierzwa
8a77d620fd
Rename @status to @state
...
Fixes #104
@status filter was added to the master branch to support new status key from Alertmanager >=0.6.1
status ended up being nested in Alertmanager (it was added to solve AM issue 609 and that was a long PR with lots of changes), current unsee implementation ended being slightly off with how Alertmanager is naming this, it should actually be @state rather than @status.
2017-05-23 21:52:08 +01:00
Łukasz Mierzwa
9cbf784baf
Provide more startup logs
...
This will help with debugging issues
2017-05-09 18:02:08 +01:00
Łukasz Mierzwa
a4337345b3
Deduplicate alerts
...
Alertmanager 0.6.1 can return multiple instances of the same alert either in a different block object or as a duplicated alert group, ensure that we deduplicate those
2017-05-08 15:33:17 +01:00
Łukasz Mierzwa
487d7bcde8
Use alert status, inhibitedBy & silencedBy fields instead of silenced & inhibited
2017-05-01 22:20:12 +01:00
Łukasz Mierzwa
f7dc5173d6
Always flush cache after timer run
2017-04-25 13:58:43 -07:00
Łukasz Mierzwa
8f3fd319f4
Add inbibited label to exposed metrics
2017-04-17 14:06:30 -07:00
Łukasz Mierzwa
f0579b087b
Rename models, strip Unsee prefix
...
Now that models package contains only unsee specific models rename everything stripping Unsee prefix from names
2017-04-06 19:24:48 -07:00
Łukasz Mierzwa
e8727897f0
Use new alertmanager package methods for fetching AM data
...
Change to using mapper module, remove old code
2017-04-06 19:24:47 -07:00
Łukasz Mierzwa
0a0e3b0d16
Refactor store code to be a little less ugly
...
This makes the code a little bit cleaner and safer, as it moves lots of locks into the store package, but it could still use some work.
2017-04-01 16:26:39 -07:00
Łukasz Mierzwa
4bb629455b
Merge pull request #23 from tcolgate/am051
...
Fixes for 0.5.1
2017-04-01 10:41:16 -07:00
Łukasz Mierzwa
b754155266
Store alert sha1 internally and use it as a secondary key when sorting
...
We already compute alert sha1, it's a unique string so it's a good match for secondary sort key, used when two alerts have the exact same
timestamp. This helps to ensure that we always have a stable sort order and don't flash the UI if we have a group with alerts created at the exact same time
2017-03-29 19:48:02 -07:00
Tristan Colgate
b7dd9d088e
Fixes for 0.5.1
2017-03-29 08:40:14 +01:00
Łukasz Mierzwa
3de3a9c481
Generate flag for each environment key
...
This allows to set config keys via flags, in additions to current env variable only configuration. Flags are autogenerated from supported env keys.
2017-03-26 13:38:37 -07:00
Łukasz Mierzwa
e239fd05fd
Import code from internal repository ( #1 )
...
Import code from internal repository
2017-03-23 16:58:04 -07:00