Łukasz Mierzwa
8a176d5c36
Merge pull request #110 from cloudflare/eslint-fixes
...
Eslint fixes
2017-06-02 05:54:34 -07:00
Łukasz Mierzwa
aadcaeb9b5
Fix issues reported by eslint
2017-06-01 20:24:47 -07:00
Łukasz Mierzwa
50fd2238d0
Add eslint config and run eslint if installed
2017-06-01 19:58:49 -07:00
Łukasz Mierzwa
1bafe12c29
Merge pull request #109 from cloudflare/go-1.8.3
...
Use Go 1.8.3 for building docker images
2017-06-01 18:17:31 -07:00
Łukasz Mierzwa
03e7521c5b
Use Go 1.8.3 for building docker images
2017-06-01 10:48:43 -07:00
Łukasz Mierzwa
2371a8a927
Merge pull request #108 from cloudflare/codacy-fixes
...
Codacy fixes
2017-05-30 18:11:59 +01:00
Łukasz Mierzwa
fa28d43059
Remove unused imports
2017-05-30 12:51:05 +01:00
Łukasz Mierzwa
a15f6eb914
Use COPY instead of ADD for files and folders
2017-05-30 12:51:05 +01:00
Łukasz Mierzwa
a2bcb9b04d
should omit 2nd value from range; this loop is equivalent to 'for value := range ...'
2017-05-30 12:51:05 +01:00
Łukasz Mierzwa
8ae3f02f8b
struct field silenceId should be silenceID
2017-05-30 12:51:05 +01:00
Łukasz Mierzwa
a3f58fc52e
0 is the default value
2017-05-30 12:51:05 +01:00
Łukasz Mierzwa
667a6278c6
Merge pull request #106 from cloudflare/release-docs
...
Add some docs on how to get release notifications
2017-05-26 20:27:25 +01:00
Łukasz Mierzwa
b6ee819324
Add some docs on how to get release notifications
2017-05-26 17:15:26 +01:00
Łukasz Mierzwa
e333965f9d
Merge pull request #105 from cloudflare/rename-status
...
Rename @status to @state
v0.5.0
2017-05-24 10:07:40 +01: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
62fea808bc
Merge pull request #103 from filippog/fix_relative_help
...
assets: use .WebPrefix for help link too
2017-05-23 10:27:59 +01:00
Łukasz Mierzwa
154f9130e5
Rebuild bindata_assetfs.go
...
Includes changes from 33557a7d6f
2017-05-23 10:26:09 +01:00
Filippo Giunchedi
33557a7d6f
assets: use .WebPrefix for help link too
2017-05-22 10:40:05 +02:00
Łukasz Mierzwa
264893c537
Merge pull request #102 from cloudflare/docs-update
...
Remove outdated section
2017-05-11 10:28:02 +01:00
Łukasz Mierzwa
4eb615c19b
Remove outdated section
...
Issue 609 was fixed in Alertmanager >=0.6.1
2017-05-10 23:37:49 +01:00
Łukasz Mierzwa
5f10b53007
Merge pull request #101 from cloudflare/silence-move
...
Split silence form code to a dedicated file
2017-05-10 23:36:12 +01:00
Łukasz Mierzwa
46880fafd9
Split silence form code to a dedicated file
...
It's a lot of code, split it to a dedicated file so it's all in one place
2017-05-10 22:04:37 +01:00
Łukasz Mierzwa
2c23a640cb
Merge pull request #100 from cloudflare/js-updates
...
Web asset updates
2017-05-10 21:39:53 +01:00
Łukasz Mierzwa
fcb6c5200d
Update frontend assets
2017-05-10 15:26:26 +01:00
Łukasz Mierzwa
15b5afb1a8
Update masonry
2017-05-10 15:14:04 +01:00
Łukasz Mierzwa
0497e82128
Move assets target to a dedicated Makefile
2017-05-10 15:10:29 +01:00
Łukasz Mierzwa
47116e7fa1
Merge pull request #99 from cloudflare/vendor-update
...
Update vendored libs
2017-05-10 12:00:28 +01:00
Łukasz Mierzwa
40c23d135e
Update vendored libs
...
Sync up with upstream
2017-05-10 11:21:43 +01:00
Łukasz Mierzwa
38505d0c37
Merge pull request #98 from cloudflare/unprocessed-color
...
Use gray color for alert groups with only unprocessed alerts
2017-05-10 11:00:52 +01:00
Łukasz Mierzwa
12521e25bc
Use gray color for alert groups with only unprocessed alerts
...
Expose counts of all alert statuses in each group (active, suppressed, unprocessed) instead of only active, and if a group contains only unprocessed alerts then color it as gray
2017-05-10 10:58:19 +01:00
Łukasz Mierzwa
49a53414fb
Merge pull request #97 from cloudflare/silence-form-json
...
Pre-render JSON silence payload when form is ready
2017-05-10 10:57:30 +01:00
Łukasz Mierzwa
847df373bf
Pre-render JSON silence payload when form is ready
...
When silence form is ready we should generate initial JSON preview, so when user clicks to show it there's something to show. Right now it's only generated if user changes something.
2017-05-10 10:51:11 +01:00
Łukasz Mierzwa
5a95d869fc
Merge pull request #96 from cloudflare/alertmanager-0.6.2
...
Alertmanager 0.6.2 support
2017-05-10 10:45:21 +01:00
Łukasz Mierzwa
4eb7d2ec71
Update docs on supported AM versions
2017-05-09 21:55:33 +01:00
Łukasz Mierzwa
ee301ffae1
Default to 0.6.2 mock data in 'make run'
2017-05-09 21:53:51 +01:00
Łukasz Mierzwa
2cfe0eaa2a
Add 0.6.2 mock data
...
Generated from live Alertmanager instance
2017-05-09 21:53:07 +01:00
Łukasz Mierzwa
b9de72fc48
Add support for Alertmanager 0.6.2
...
Minor changes in the API.
2017-05-09 21:52:39 +01:00
Łukasz Mierzwa
f21d8a5c15
Merge pull request #95 from cloudflare/timer-logs-2
...
Provide more startup logs
2017-05-09 18:05:18 +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
86671e4823
Merge pull request #94 from cloudflare/timer-logs
...
Fix race condition in the matcher code
2017-05-09 17:55:28 +01:00
Łukasz Mierzwa
37304d615a
Remove unused code
...
setOperator is no longer used, remove it as it's dangerous and useless
2017-05-09 17:49:24 +01:00
Łukasz Mierzwa
25d457b274
Fix race condition in the matcher code
...
We have a static list of matchers, one for each kind, but newMatcher() was writing to those on every filter creation. Remove writes, set the attribute on matcher init instead.
2017-05-09 17:47:32 +01:00
Łukasz Mierzwa
b36aa5d35e
Merge pull request #93 from cloudflare/dedup
...
Deduplicate alerts
2017-05-08 15:38:48 +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
1a3cfc8836
Merge pull request #92 from cloudflare/filters-validation
...
More strict filter validation
2017-05-06 16:51:38 +01:00
Łukasz Mierzwa
003010f73b
Speed up filter matches by re-using global match object
...
Instead of compiling filter regexp on every filter match pre-compile it and use same instance
2017-05-06 16:46:06 +01:00
Łukasz Mierzwa
7bf0b9d5d0
More strict filter validation
...
@silenced=true should now be marked as invalid filter, but it isn't, this commit refactors it so that instead of looping over all filters and falling back to fuzzy (which is very relaxed checking and can't find typos in filter names like @statuz=active) we tokenize the expression into '<filter name> <operator> <value>' and only fallback to fuzzy if there's only a static text (no filter name and operator). This is more manual but provides stronger checks so now @silenced=true is correctly marked as invalid
2017-05-06 16:46:06 +01:00
Łukasz Mierzwa
4ade516f57
Merge pull request #91 from cloudflare/fix-grid-clear
...
Remove all alert groups in Grid.Clear()
2017-05-06 08:24:50 +01:00
Łukasz Mierzwa
817731857a
Remove all alert groups in Grid.Clear()
...
Clear was only hiding elements so div objects were still present, ensure they are removed from the DOM
2017-05-05 17:32:16 +01:00
Łukasz Mierzwa
5e1cebfdaa
Merge pull request #90 from cloudflare/status-filter
...
Replace @silenced & @inhibited filters with @status
2017-05-05 16:53:04 +01:00