11 Commits

Author SHA1 Message Date
Ł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
0d82cffd79 Add -web.prefix / WEB_PREFIX option
This allows people to use unsee with a sub uri setup, which is pretty common usa case, fixes #22
2017-03-30 19:35:52 +01: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
ec08572f0a Use application/json for haml templates
application/javascript was set in commit 5e501844a7 which works, but causes browsers to throw lots of errors in the console, as they try to parse those scripts as javascript, json type still works and doesn't have same issue with browsers
2017-03-26 17:41:17 -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