stuart nelson
4bde9ee318
Only show loading for silences on initial load
2017-02-22 11:13:32 +01:00
stuart nelson
7608ebcf23
Move NewUrl in update function
2017-02-22 11:01:47 +01:00
stuart nelson
625bf66981
Refactor filter code in Alerts
2017-02-22 11:01:47 +01:00
stuart nelson
d0a4fad006
Filter silences
...
1:1 direct match on silences for filtering
Need to fix the reloading.
2017-02-22 11:01:25 +01:00
Björn Rabenstein
c38bf35abb
Merge pull request #631 from prometheus/beorn7/meta
...
Remove AUTHORS.md and add MAINTAINERS.md
2017-02-21 15:25:15 +01:00
beorn7
6996050303
Remove AUTHORS.md and add MAINTAINERS.md
...
This implements the suggestion to name Stuart as the maintainer for
now. We can later revisit if this is a solution that works and is
sustainable for everyone involved.
2017-02-21 14:21:00 +01:00
stuart nelson
95bad7b2d4
Remove unused todo view
2017-02-21 12:32:04 +01:00
stuart nelson
215e91da8c
Simplify silence list view code
2017-02-21 12:31:27 +01:00
stuart nelson
b707d5c7f3
Respect query string silenced=false
...
Previously, any value for the silenced querystring
key resulted in showing the silenced alerts.
2017-02-21 12:06:32 +01:00
stuart nelson
19125e6c0a
Remove old comments
2017-02-21 12:01:41 +01:00
stuart nelson
9149412539
Increase default timeout to 1sec
2017-02-21 11:58:05 +01:00
stuart nelson
43a0ca8b8f
Remove old comments
2017-02-21 11:57:03 +01:00
stuart nelson
d1c2c9b7ed
Make all navigation changes in one place
2017-02-21 11:54:44 +01:00
stuart nelson
737c795f8c
remove extra Html.map
2017-02-20 21:55:41 +01:00
stuart nelson
7c9880a724
Fix filter view so you can update filter
...
Previously, a bad filter would hide the filter
box, which would force a reload.
2017-02-20 17:40:43 +01:00
stuart nelson
797c98a65a
Use filter instead of query
2017-02-20 17:37:52 +01:00
stuart nelson
01783e575e
Use identity instead of toString for receiver
2017-02-20 17:25:29 +01:00
stuart nelson
a07e29ac4c
Fix error with query string
...
When the text area was emptied, it would still
pass the string on as Just "", which would result
in "query=" being added to the url.
2017-02-20 17:24:33 +01:00
stuart nelson
f4edbb5203
Updating url with query
...
Probably contains bugs that need to be found.
2017-02-20 17:12:33 +01:00
stuart nelson
55fdd16c6e
Fix visual bug for EditSilence
...
The state was not being set to Loading, so the
previous state (error, an already loaded silence,
et c.) would be displayed while loading occurred.
2017-02-20 12:17:02 +01:00
stuart nelson
376db8c19c
Add error handling for SilenceDestroy
2017-02-20 12:16:51 +01:00
stuart nelson
d4e22e3849
Add error handling for silence creation
2017-02-20 11:56:51 +01:00
stuart nelson
0e510ec075
Add error handling for api responses
2017-02-20 11:26:13 +01:00
stuart nelson
9126426eff
Filter by labels on alerts
...
This should be encoded in the URL and stored
there, and used as the "source of truth" for
parsing and propagating the filters.
2017-02-10 18:03:14 +01:00
stuart nelson
4d4791e0fb
Start moving Silence Update stuff into on func
2017-02-10 11:58:57 +01:00
stuart nelson
addc9efdcf
Add filter for showing active alerts by default
...
Can show silenced alerts with query string.
2017-02-09 14:56:44 +01:00
stuart nelson
1c132c01a3
Parse query params after hash in URL
2017-02-09 13:52:28 +01:00
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