Commit Graph

4753 Commits

Author SHA1 Message Date
Łukasz Mierzwa
f0579b087b Rename models, strip Unsee prefix
Now that models package contains only unsee specific models rename everything stripping Unsee prefix from names
2017-04-06 19:24:48 -07:00
Łukasz Mierzwa
681d3d1a5b Remove alertmanager models in the models package
Those aren't needed anymore, only mapper package needs to know Alertmanager schema and it already does so
2017-04-06 19:24:48 -07:00
Łukasz Mierzwa
0936f1b9c1 We issue 3 requests on startup now, update log message 2017-04-06 19:24:48 -07:00
Łukasz Mierzwa
eb9a95be8a Add tests for new functions in alertmanager package 2017-04-06 19:24:48 -07:00
Łukasz Mierzwa
e46baaf5cb Update version information in the docs 2017-04-06 19:24:47 -07:00
Łukasz Mierzwa
ea50d334f0 Migrate test to per version mock data 2017-04-06 19:24:47 -07:00
Łukasz Mierzwa
eaf617c9aa Mocking alerts isn't needed for static file tests 2017-04-06 19:24:47 -07:00
Łukasz Mierzwa
3691b1667c Add mock data for Alertmanager v0.4 and v0.5 and a helper for easier usage in tests 2017-04-06 19:24:47 -07:00
Łukasz Mierzwa
e8727897f0 Use new alertmanager package methods for fetching AM data
Change to using mapper module, remove old code
2017-04-06 19:24:47 -07:00
Łukasz Mierzwa
d02028e581 Add functions in alertmanager package for getting alerts and silences via the mapper package 2017-04-06 19:24:47 -07:00
Łukasz Mierzwa
f533114801 Add a function for querying remote Alertmanager version 2017-04-06 19:24:47 -07:00
Łukasz Mierzwa
48848e2f08 Add mapper module allowing to pick Alertmanager schema handlers at runtime
This modules allows to have a dedicated path for unmarshaling Alertmanager reponse per Alertmanager version. It returns data in format handled internally by unsee (which is Alertmanager data + some additional attributes)
2017-04-06 19:24:47 -07:00
Łukasz Mierzwa
e7d694cece Move getJSONFromURL to the transport package
Move it and make it public so it can be reused outside of alertmanager package
2017-04-06 19:09:16 -07:00
Łukasz Mierzwa
b47788d9ce Move joinURL to the transport package
Move it and make it public so it can be reused outside of alertmanager package
2017-04-06 19:09:16 -07:00
Łukasz Mierzwa
797495e63a Merge pull request #43 from cloudflare/version-ui
Show version string instead of 'Settings' label
2017-04-06 12:45:59 -07:00
Łukasz Mierzwa
50670d8058 Show version string instead of 'Settings' label
We already have 'Settings' label in the tooltip and it's obvious those are settings, replace it with the version string
2017-04-06 10:23:12 -07:00
Matt Bostock
50d158a7ac Merge pull request #41 from cloudflare/ghi-39
Add Known issues section
2017-04-06 18:17:43 +01:00
Matt Bostock
1e608816d4 Merge branch 'master' into ghi-39 2017-04-06 18:15:49 +01:00
Łukasz Mierzwa
728e27a60b Merge pull request #40 from cloudflare/group-link
Group links
2017-04-05 22:36:55 -07:00
Łukasz Mierzwa
d6d0dd5240 Add Known issues section
Fixes #39
2017-04-05 14:49:52 -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
e65c296ed7 Fix mock alert data
Group and alert level labels didn't match, this fixes it
2017-04-04 16:36:06 -07:00
Łukasz Mierzwa
54ed5c3585 Merge pull request #38 from cloudflare/link-label
Add tooltips to external links
2017-04-04 07:44:15 -07:00
Łukasz Mierzwa
1226b32603 Add tooltips to external links
This adds a tooptip for alert source url and all links detected in labels
2017-04-03 17:27:53 -07:00
Łukasz Mierzwa
613c0cd927 Merge pull request #35 from cloudflare/store-refactor
Refactor store code to be a little less ugly
2017-04-03 11:55:02 -07:00
Łukasz Mierzwa
0a0e3b0d16 Refactor store code to be a little less ugly
This makes the code a little bit cleaner and safer, as it moves lots of locks into the store package, but it could still use some work.
2017-04-01 16:26:39 -07:00
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