James O'Gorman
430b933729
Merge pull request #33 from cloudflare/js-bugfix
...
Fix missing closing bracket
v0.2.0
2017-04-01 20:50:48 +01: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
dac1059f58
Merge pull request #32 from cloudflare/mock-fix
...
Mock fix
2017-04-01 11:56:01 -07:00
Łukasz Mierzwa
58ba0cdaa9
Prettify json mock data for easier editing in the future
2017-04-01 10:49:07 -07:00
Łukasz Mierzwa
a79f30195c
Fix syntax error in silence mock data
2017-04-01 10:47:50 -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
118af00557
Merge pull request #29 from cloudflare/git-docs
...
Document releases and tags
v0.1.0
2017-04-01 10:31:38 -07:00
Łukasz Mierzwa
bdca59f18e
Merge pull request #30 from cloudflare/watchdog-fixes
...
Watchdog fixes
2017-04-01 10:31:26 -07:00
Łukasz Mierzwa
efd16d398d
Merge pull request #31 from cloudflare/more-tests
...
More tests
2017-04-01 10:31:15 -07:00
Łukasz Mierzwa
c3df4d5d37
Update binary assets to contain all watchdog updates
2017-04-01 08:35:07 -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
28204582aa
Use example.com domain in mock data
2017-03-31 23:58:23 -07:00
Łukasz Mierzwa
06c7c03aa0
Style fixes
...
goimports fixed a few lines
2017-03-31 23:30:13 -07:00
Łukasz Mierzwa
83496297d6
Add tests for package currently not covered by testing
2017-03-31 23:30:13 -07:00
Łukasz Mierzwa
2c003b8a87
Document releases and tags
...
Fixes #27
2017-03-31 09:25:03 -07:00
Łukasz Mierzwa
1fa511f352
Merge pull request #28 from cloudflare/fix-make-vendor-update
...
Fix 'make vendor-update' to work as documented
2017-03-30 13:54:55 -07:00
Łukasz Mierzwa
a0375a243d
Fix 'make vendor-update' to work as documented
...
make vendor-update should update everything inside the vendor dir, to do this 'govendor fetch' needs to be used, current command ('govendor update') is used to copy packages from /home/lukasz/work/go to vendor dir
2017-03-30 13:21:24 -07:00
Łukasz Mierzwa
c5398ab43d
Merge pull request #20 from cloudflare/govendor
...
Switch from manul to govendor for maintaining vendor directory
2017-03-30 13:13:38 -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
039240bd73
Merge pull request #19 from cloudflare/stable-sort
...
Store alert sha1 internally and use it as a secondary key when sorting
2017-03-29 19:51:13 -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
Łukasz Mierzwa
337b399317
Merge pull request #21 from davidkarlsen/master
...
add EXPOSE to Dockerfile
2017-03-29 09:01:29 -07:00
Matt Bostock
df3536db5a
Merge pull request #18 from cloudflare/query-arg-fixes
...
Use the correct value when setting options via query string
2017-03-29 12:36:35 +01:00
Tristan Colgate
b7dd9d088e
Fixes for 0.5.1
2017-03-29 08:40:14 +01:00
David J. M. Karlsen
4e2a9f1df2
add EXPOSE
2017-03-29 08:30:52 +02:00
Łukasz Mierzwa
b458f63713
Switch from manul to govendor for maintaining vendor directory
...
Manul works great, but using git submodules creates some problems (like https://github.com/travis-ci/travis-ci/issues/5806 ), switch to govendor to have reproducible builds
2017-03-28 20:09:26 -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
c633a2fafc
Merge pull request #17 from cloudflare/travis
...
Add a config file for travis-ci.org
2017-03-28 13:03:25 -07:00
Łukasz Mierzwa
118f3784bf
Add a config file for travis-ci.org
...
This enables travis-ci.org integration, travis will run 'make test' for new PRs
2017-03-28 12:51:32 -07:00
Łukasz Mierzwa
9f309cf5d2
Merge pull request #12 from cloudflare/tests
...
Collection of a small fixes to improve testing
2017-03-28 12:38:59 -07:00
Łukasz Mierzwa
e0279ebe5e
Add more details about make variable 'DEBUG'
...
Make 'make DEBUG=true ...' work with run-docker target and provide more details of what it will do
2017-03-28 11:25:27 -07:00
Łukasz Mierzwa
66710c6020
Sanitize URLs to hide all passwords when logging runtime config
...
When unsee starts it will print runtime config, but this can contain password for URL keys, replace passwords with 'xxx' string
2017-03-28 11:00:16 -07:00
Łukasz Mierzwa
54d67cbbaa
Add more tests for views
...
We moved static file handling to binary assets, add some tests so we can spot issues with this code
2017-03-28 10:26:13 -07:00
Łukasz Mierzwa
d99f7e60d8
Don't create http.FileServer on every favicon request
...
Setup it once and use for all requests
2017-03-28 10:26:13 -07:00
Łukasz Mierzwa
1ba5228cb1
Move view setup after all middleware
...
prometheus middleware needs to be initialized first, before any view is created
2017-03-28 10:26:13 -07:00
Łukasz Mierzwa
cbe15f71af
Add tests for config handling
2017-03-28 10:26:13 -07:00
Matt Bostock
a2faf05e32
Merge pull request #13 from cloudflare/screenshot
...
Add a screenshot to the README
2017-03-28 17:34:29 +01:00
Łukasz Mierzwa
fd7d3a3585
Move runtime config logging into separate function
...
This should only happen when needed, so moving this to a dedicated function that is called on startup
2017-03-28 09:10:15 -07:00
Łukasz Mierzwa
f810ec31d8
Don't enable debug mode by default
...
This should only be enabled when needed, it's mentioned in the docs
2017-03-28 09:10:15 -07:00
Łukasz Mierzwa
ee638b9fb8
Add a screenshot to the README
2017-03-28 09:01:29 -07:00
Matt Bostock
dbdd457e9a
Merge pull request #15 from cloudflare/bugfixes
...
Bugfixes
2017-03-28 10:18:52 +01:00
Matt Bostock
5063bd0a2e
Merge pull request #14 from cloudflare/mock-data
...
Add mock data for testing
2017-03-28 10:15:02 +01:00
Matt Bostock
fbc52b13ee
Merge pull request #16 from cloudflare/license
...
License
2017-03-28 09:55:26 +01:00
Łukasz Mierzwa
317936d107
Use links when referencing other files in the repo
2017-03-27 22:30:37 -07:00
Łukasz Mierzwa
1af3d08870
Use correct name for the license file
...
Checked with https://help.github.com/articles/adding-a-license-to-a-repository/ and there should be no '.md' extension on this file
2017-03-27 22:26:53 -07:00
Łukasz Mierzwa
0eb885bded
Compare timestamps as is when sorting
...
Remove rounding of timestamps when sorting alert list, not sure why it was added, it's not needed
2017-03-27 19:40:04 -07:00