Łukasz Mierzwa
03e793dd74
Add badges to selects
...
This gives the user a hint when a label contains more than one value in the select
2017-04-24 14:55:05 -07:00
Łukasz Mierzwa
bfabf514ab
Merge pull request #73 from cloudflare/silence-duration
...
Set default silence duration to 1h
2017-04-24 09:17:45 -07:00
Łukasz Mierzwa
2886421b7a
Drop date class from datetime picker input group
...
Not needed with our setup and it makes the calendar icon clickable, which doesn't really do anything, so it's just confusing
2017-04-23 19:56:16 -07:00
Łukasz Mierzwa
9bbb81212b
Default to 1 hour silence
2017-04-23 19:32:21 -07:00
Łukasz Mierzwa
4d3200d3fd
Don't set text 'none', it can be a valid label value
2017-04-23 19:32:07 -07:00
Łukasz Mierzwa
a59ed26d57
Merge pull request #70 from cloudflare/silence-multiselect
...
Allow selecting multiple label values when creating silence.
2017-04-23 09:12:55 -07:00
Łukasz Mierzwa
2c3a24afb7
Add a note about security
2017-04-23 09:05:58 -07:00
Łukasz Mierzwa
639e9bbee5
Use icons for action box
2017-04-23 09:02:29 -07:00
Łukasz Mierzwa
e9af43402e
Sort labels
2017-04-23 09:02:29 -07:00
Łukasz Mierzwa
d323fdd322
Turn text into labels
2017-04-23 09:02:29 -07:00
Łukasz Mierzwa
907949b9a3
Custom formatting for countSelectedText
2017-04-23 09:02:28 -07:00
Łukasz Mierzwa
f83660c43d
Don't show action box when there's only one value
2017-04-23 09:02:28 -07:00
Łukasz Mierzwa
1e05406a02
Make submit button green
2017-04-23 09:02:28 -07:00
Łukasz Mierzwa
e740d5ea0c
Generate more descriptive text when no value is matched
2017-04-23 09:02:28 -07:00
Łukasz Mierzwa
020b1a2728
Show loading placeholder
...
Form loads after ajax call, so it can take some time on big responses and slow connection
2017-04-23 09:02:27 -07:00
Łukasz Mierzwa
575dc245b1
Enable live search for labels with >10 values
2017-04-23 09:02:27 -07:00
Łukasz Mierzwa
087458b767
Allow selecting multiple label values when creating silence.
...
This commit turns label checkboxes into multiselect dropdowns that are populated from all labels of all instances of current alert (matched by alertname label). There is also a cocollapsible preview box that allows user to inspect raw silence JSON object we will send to the Alertmanager API. Fixes #69
2017-04-23 09:02:27 -07:00
Łukasz Mierzwa
9a5419efb1
Merge pull request #71 from cloudflare/metrics-docs
...
Obey WEB_PREFIX for metrics endpoint
2017-04-23 08:58:12 -07:00
Łukasz Mierzwa
acea192a3d
Obey WEB_PREFIX for metrics endpoint
2017-04-23 08:56:53 -07:00
Łukasz Mierzwa
b02a88e737
Add a note about metrics
2017-04-23 08:56:53 -07:00
Łukasz Mierzwa
d08996b4ee
Merge pull request #72 from cloudflare/run-docker-mock
...
Fix mock data usage with 'make run-docker'
2017-04-23 08:55:22 -07:00
Łukasz Mierzwa
0e7b40c995
Reformat run-docker target
2017-04-23 08:53:48 -07:00
Łukasz Mierzwa
bfbba7ecb6
Fix mock data usage with 'make run-docker'
...
docker target doesn't work with file:// based ALERTMANAGER_URI since it doesn't have same paths inside the image, fix it by mapping a volume
2017-04-22 22:33:12 -07:00
Łukasz Mierzwa
79cee7474c
Merge pull request #68 from cloudflare/silence-form-tweaks
...
Silence form tweaks
2017-04-20 22:01:42 -07:00
Łukasz Mierzwa
0ff3861afe
Move input element icons to the left and add icons for all inputs
...
This will provide more consistent look.
2017-04-20 21:54:06 -07:00
Łukasz Mierzwa
0ca17211af
Escape silenceID output just in case
2017-04-20 21:32:10 -07:00
Łukasz Mierzwa
b407204aff
Add an icon to error messages
2017-04-20 21:30:52 -07:00
Łukasz Mierzwa
6558735751
Drop bogus checkbox classes from outer div
...
This is breaking checkbox and label alignment.
2017-04-20 21:24:16 -07:00
Łukasz Mierzwa
0417be1cca
Drop duplicated classes
...
Both are already provided by attrs.class
2017-04-20 21:17:57 -07:00
Łukasz Mierzwa
952eb3467c
Drop labels above comment and email inputs
...
They both have placeholder text, so label is redundant
2017-04-20 21:15:05 -07:00
Łukasz Mierzwa
42f2f33084
Add labels above duration datetime picker fileds
...
Make it more obvious which fields is used for what
2017-04-20 21:14:22 -07:00
Łukasz Mierzwa
385efc5173
Merge pull request #66 from cloudflare/silence-form
...
Add support for creating silences directly from unsee UI
2017-04-20 17:12:58 -07:00
Łukasz Mierzwa
d5916c81cf
Add support for creating silences directly from unsee UI
...
It adds a button next to the @silenced filter that shows a modal window with a silence form. API request is send via AJAX call from user browser.
2017-04-20 17:01:52 -07:00
Łukasz Mierzwa
ed03c0f234
Merge pull request #65 from cloudflare/strict-filters
...
Strict filters
2017-04-20 17:01:17 -07:00
Łukasz Mierzwa
61aba84eba
Fix marking invalid filters in the UI
...
Label classes are incorrectly set on the filter text span, rather than the label under which that span is placed.
2017-04-20 13:37:47 -07:00
Łukasz Mierzwa
82fb5ce0d6
Add more test to cover more filter expressions
2017-04-20 13:36:37 -07:00
Łukasz Mierzwa
44deae4f11
More strict filter syntax checking
...
Current filter factory rules are very relaxed, anything that doesn't match filter syntax perfectly is passed down to the fuzzy filter, that happily accepts every input and doesn't complain. This change makes syntax checks more strict, we explicitly look for roughly <anything><any of the chars used as operators><anything> (in reality we match the first <anything> used filter specific regex, but that can still be any regex) and only if evaluated filter expression doesn't match this regex we pass it to the fuzzy filter. Once we have a match we check if operator is supported by the filter and we're more strict there, in case of a===b we currently accept = as the operator and ==b as the value, now operator will be === (as we match for any of the operator chars in use) and fail once that doesn't match.
2017-04-20 13:36:18 -07:00
Łukasz Mierzwa
d06fff2890
Merge pull request #64 from cloudflare/reorder-version
...
Put the branch name first on the version string for docker master builds
2017-04-20 09:44:32 -07:00
Łukasz Mierzwa
8d9371e023
Put the branch name first on the version string for docker master builds
...
Docker Hub makes a shallow clone of the git repo, so we don't have tags anyway, we end up with commit-master (e.g. 289f849-master), put the branch first so it's more human readable (master-289f849)
2017-04-20 09:40:10 -07:00
Łukasz Mierzwa
81666a16b1
Merge pull request #63 from cloudflare/inhibited-green
...
If we only have silenced or inhibited alerts make the whole alert gro…
2017-04-20 08:03:32 -07:00
Łukasz Mierzwa
5fe3f706af
If we only have silenced or inhibited alerts make the whole alert group green
...
This will make the UI present inhibited alerts same way as silenced. It also drops unused fields in the model, replacing SilencedCount & UnsilencedCount with only ActiveCount
2017-04-19 15:43:13 -07:00
Łukasz Mierzwa
d91bf5e272
Merge pull request #62 from cloudflare/document-docker
...
Add a note about official docker images
2017-04-19 12:47:16 -07:00
Łukasz Mierzwa
50a5bb60af
Add a note about official docker images
2017-04-19 12:45:12 -07:00
Łukasz Mierzwa
289f84937b
Merge pull request #61 from cloudflare/docker-fix
...
SOURCE_COMMIT doesn't work, generate version from git
2017-04-18 16:39:03 -07:00
Łukasz Mierzwa
0a39b49df0
SOURCE_COMMIT doesn't work, generate version from git
...
SOURCE_COMMIT is always empty, for both manual and automated builds, work around it by running git
2017-04-18 16:18:04 -07:00
Łukasz Mierzwa
2cbcd5cbf5
Merge pull request #60 from cloudflare/docker
...
Set custom docker hub build hook to pass version variable to docker
2017-04-18 16:04:14 -07:00
Łukasz Mierzwa
b98f53f310
Set custom docker hub build hook to pass version variable to docker
...
unsee version string is passed as a build arg for the docker build command, add a hook that will set it on hub.
2017-04-18 15:52:43 -07:00
Łukasz Mierzwa
3475381c3f
Merge pull request #59 from cloudflare/reverse-ac
...
Use forked typeahead.js
2017-04-18 13:31:34 -07:00
Łukasz Mierzwa
a95d9a9f43
Switch typeahead.js to a maintained fork
...
Module was abandoned by Twitter and have some bugs that are fixed in the fork, switch over as it's a drop in replacement
2017-04-18 13:25:37 -07:00
Łukasz Mierzwa
e64010cbd1
Bloodhound will run init unless asked not to, remove explicit call
2017-04-18 13:25:37 -07:00