Łukasz Mierzwa
b407204aff
Add an icon to error messages
2017-04-20 21:30:52 -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
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
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
Łukasz Mierzwa
e30d8b79e9
If internal autocomplete index doesn't have 12 elemts (UI limit) query remote
2017-04-18 13:25:36 -07:00
Łukasz Mierzwa
ad3ed87aed
Add a comment describing generateHints() use
2017-04-18 13:25:36 -07:00
Łukasz Mierzwa
9dc07d6cb9
Use relative path for autocomplete so it works with -web.prefix
2017-04-18 13:25:36 -07:00
Łukasz Mierzwa
79516e59c9
Fix settings reset button
...
Correctly remove save filter and reload the filter to the defaults by removing ?q= query arg
2017-04-18 09:31:29 -07:00
Łukasz Mierzwa
0a16da7604
Show inhibition status in the UI
...
Show it the same way as @silenced is being presented
2017-04-17 16:14:26 -07:00
Łukasz Mierzwa
f1e90e054d
Rewrite clientside-haml-js templates using underscore
...
Drop haml templates in favor of underscore. Haml templates are harder to maintain and require extra dependencies, we already have underscore.js included and it provides a fast templating engine. Rewrite all client side templates using it.
Performance with underscore is pretty much the same as with haml (with 10k alerts).
2017-04-10 11:38:34 -07:00
Łukasz Mierzwa
001006bfe0
Move tooltip setup to the ui package
2017-04-08 11:29:11 -07:00
Łukasz Mierzwa
0a9ae793d5
Don't show the alert group link until user hover over it
2017-04-08 11:28:37 -07:00
Łukasz Mierzwa
7b22323977
Move label modal setup to a dedicated file
2017-04-08 11:28:00 -07:00
Łukasz Mierzwa
1f37ab3fbe
Add a clickable link to every alert group
...
This links to a filter generated from alert group labels, so one can easily share it
2017-04-04 16:37:05 -07:00
Łukasz Mierzwa
0c3ce4d8f8
Fix missing closing bracket
...
I somehow broken this in watchdog commit without noticing
2017-04-01 12:06:15 -07:00
Łukasz Mierzwa
94a48c7e3a
Ensure that errors div is visible when rendering new error
2017-04-01 08:35:07 -07:00
Łukasz Mierzwa
6302af62ea
Don't clear alert grid and top tag popover data if watchdog shows an alert
...
This prevents grid flaps, watchdog error will be shown above all alerts, not instead of
2017-04-01 08:35:07 -07:00
Łukasz Mierzwa
582c3344f6
Don't clear errors div content on updates if watchdog is showing an error
2017-04-01 08:35:07 -07:00
Łukasz Mierzwa
4b4c3971b8
Always use UTC for watchdog timestamps
...
Forcing UTC will ensure that offset calculation is always correct
2017-04-01 08:35:07 -07:00
Łukasz Mierzwa
7e8dc0c0ff
Remove dynamic watchdog
...
JS code have a watchdog timer that will check if last data from unsee isn't too old, if that happens it will print an error in the UI and reload the page. This is a fail safe for weird bugs and cases where unsee is running unattended. Currently timeout for this watchdog is configured dynamically based on refresh rate, but if the backend is configured to pull data from Alertmanager less often than watchdog tolerance, then watchdog will trigger false positive. This commit changes watchdog tolerance to 15 minutes (it seems reasonable to assume people won't use Alertmanager pull interval longer than 1-5 minutes) and adds a note to the readme.
2017-04-01 08:35:07 -07:00
Łukasz Mierzwa
d2a9923dca
Use the correct value when setting options via query string
...
Copy & paste bug, value from previous check is used instead of the correct one
2017-03-28 15:37:44 -07:00
Łukasz Mierzwa
2c4770ea5d
Call javascript functions via public methods
...
This fixes cookie reset button, which wasn't working due to name conflicts (reset function in summary.js was called instead)
2017-03-27 10:39:20 -07:00
Łukasz Mierzwa
f8420d4632
Use go-bindata-assetfs for static files
...
This allows unsee to be compiled into a single self-contained binary, without any need to external static files or templates
2017-03-26 17:41:17 -07:00