Commit Graph

1294 Commits

Author SHA1 Message Date
stuart nelson
608c573479 Handle empty alerts list 2017-02-09 11:34:16 +01:00
stuart nelson
80052b5084 Filter alertGroups by receiver in url 2017-02-09 11:13:35 +01:00
stuart nelson
7be6c13297 Fix silence destroy return expectation
Also remove unused "error" string
2017-02-08 12:17:50 +01:00
stuart nelson
eab27236be Update states for create/destroy
- Still need to render appropriate messages
- DELETE is successful according to API, but not
  working from frontend's POV
2017-02-08 12:11:58 +01:00
stuart nelson
b031359379 Remove unused NotAsked type 2017-02-08 11:59:39 +01:00
stuart nelson
9d4ebcc148 Fix creating silence from alert
The matchers in the alert were being wiped out by
nullSilence. This removes that change.
2017-02-08 11:53:39 +01:00
stuart nelson
2b6326b94a Add loading pattern for alerts 2017-02-08 11:53:23 +01:00
stuart nelson
e224c5b031 Add support for elm debugger when recompiling 2017-02-08 11:30:45 +01:00
stuart nelson
02867ce6ae Remove Loading from Alerts 2017-02-08 11:30:36 +01:00
stuart nelson
e0018d14b2 Use Loading pattern for silences 2017-02-08 11:30:16 +01:00
stuart nelson
e6ed36d529 Remove unused SilenceFromAlert 2017-02-07 15:21:35 +01:00
Andrey Kuzmin
4c2f99aed2 Use the translator pattern for child to parent communication (#2)
* Use the translator pattern for child to parent communication

* Correctly navigate to alerts
2017-02-07 15:18:36 +01:00
stuart nelson
3f0b4bb352 Bubble up alert to update for creating silence from alert 2017-01-24 13:13:16 +01:00
Andrey Kuzmin
6606a76743 Extracted alerts (#1) 2017-01-21 16:54:22 +01:00
stuart nelson
142f92151e Simplify noop message 2017-01-19 14:09:48 +01:00
stuart nelson
5f7b7a5d65 Align header with body 2017-01-19 14:07:33 +01:00
Fabian Reinartz
b5af749423 Merge pull request #607 from mattbostock/prevent_panic
Prevent panic on failed config load
2017-01-17 16:19:37 +01:00
Matt Bostock
890f148a27 Prevent panic on failed config load
Prevent Alertmanager from panicking when the configuration cannot be
loaded.

Spotted in version 0.4.2:

    INFO[0000] Starting alertmanager (version=0.4.2, branch=HEAD, revision=9a5ab2fa63dd7951f4f202b0846d4f4d8e9615b0)  source=main.go:84
    INFO[0000] Build context (go=go1.7.3, user=root@45f28166fed1, date=20170117-13:50:50)  source=main.go:85
    INFO[0000] Loading configuration file                    file=alertmanager.yml source=main.go:156
    ERRO[0000] error: yaml: line 64: could not find expected ':'  source=api.go:115
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x401adb]

    goroutine 1 [running]:
    panic(0x83e240, 0xc42000e020)
            /usr/local/go/src/runtime/panic.go:500 +0x1a1
    main.(*API).Update(0xc4200b20f0, 0xc42019f800, 0x17e7, 0x45d964b800)
            /go/src/github.com/prometheus/alertmanager/api.go:117 +0xcb
    main.main.func3(0x0, 0x0)
            /go/src/github.com/prometheus/alertmanager/main.go:172 +0x226
    main.main()
            /go/src/github.com/prometheus/alertmanager/main.go:192 +0x97a
    make: *** [run] Error 2
2017-01-17 14:59:11 +00:00
devnev
f2ba86e9d2 Add proper JSON marshaling of config regexps. (#602) 2017-01-17 11:50:54 +01:00
stuart nelson
9dd877ed90 Comments on getSilences 2017-01-17 10:58:12 +01:00
stuart nelson
f55eebfa6a Remove href on create
Would redirect when we don't want that.
2017-01-17 04:44:30 +01:00
stuart nelson
1062b392eb Server can run without rebuilding elm files 2017-01-17 03:41:13 +01:00
stuart nelson
139b5513fc Compile script.js to top level 2017-01-17 03:12:25 +01:00
stuart nelson
bfc0b56ed3 Update form view 2017-01-16 19:53:56 +01:00
stuart nelson
34921383aa Move to internal Time
Have string representation for editing, which
enables the form to show "this is invalid" but
also allow to have a correctly formed ISO8601 that
gets sent to the API.
2017-01-16 14:55:31 +01:00
Martín Ferrari
5489644cbe Wait for test server to be ready before running tests (#605)
* Wait for test server to be ready before running tests

This fixes problems when running the acceptance tests in slow or CPU-starved
machines, as mentioned in #472.
2017-01-16 12:32:27 +00:00
stuart nelson
11a9d789f6 Add some more loading indicators
To be removed in a refactor ..
2017-01-15 11:43:50 +01:00
stuart nelson
dce15d70ca Re-organize the massive update function 2017-01-15 11:26:08 +01:00
stuart nelson
56abfd73c5 Use exposed imports in parsing 2017-01-15 11:19:33 +01:00
stuart nelson
8d80b0a250 Add "Loading" view 2017-01-14 21:09:12 +01:00
stuart nelson
c2e86f2ec7 Start trying to break stuff apart into modules 2017-01-13 13:59:51 -05:00
stuart nelson
291f2b4653 Remove View from some things' names 2017-01-13 13:17:43 -05:00
stuart nelson
fd227bb7c7 Update silence show 2017-01-13 13:14:43 -05:00
stuart nelson
10a74504e6 Remove object data 2017-01-13 12:09:53 -05:00
stuart nelson
767df174a0 Move silenceListView 2017-01-13 12:09:11 -05:00
stuart nelson
47fed35d26 Re-use silenceView 2017-01-13 12:07:15 -05:00
stuart nelson
99bb581e7e Remove comment 2017-01-13 11:47:19 -05:00
stuart nelson
b1ddde61a8 Recompile elm code on server startup 2017-01-13 11:46:24 -05:00
stuart nelson
7bb0543b1c Add destroy to list view 2017-01-13 11:46:07 -05:00
stuart nelson
a609c5c0ec Add DESTROY for silences
Need to update API to accept destroy verb.
2017-01-12 18:12:45 -05:00
stuart nelson
278d922bee Create new silences through API 2017-01-12 17:45:26 -05:00
stuart nelson
64fa1430f5 Remove logging of hash location 2017-01-12 16:23:06 -05:00
stuart nelson
797c16083f Give new silences the default time range 2017-01-12 16:22:51 -05:00
stuart nelson
00897e85c7 Move to using ISO8601 date
Useability for the form is horrible, and will be
fixed after silences are being created.
2017-01-12 14:20:41 -05:00
stuart nelson
764dbb229e Persist all silence form changes 2017-01-09 12:37:11 -05:00
Fabian Reinartz
45bd4fd3e5 Merge pull request #595 from brancz/fix-send-resolved
notify: replace unfiltered with filtered alerts
2017-01-09 11:55:33 +01:00
stuart nelson
34909a74cb Add persistence when updating matcher fields 2017-01-08 22:40:18 -05:00
stuart nelson
ff5c8247d6 Delete matchers on silence creation form 2017-01-08 21:31:58 -05:00
stuart nelson
2502986d09 Add edit button to silence view 2017-01-08 21:29:31 -05:00
stuart nelson
639b2a8957 Minor style stuff 2017-01-07 15:18:34 -05:00