stuart nelson
1e34f29532
Filter alerts ( #633 )
...
* Vendor dependencies.
This updates several old dependencies, removes
some that are no longer needed, and adds
`pkg/labels` from prometheus `dev-2.0` branch.
* Add metrics selector parsing code
This is a temporary simplified re-implementation
of promQL's metric selector parsing.
* Add alerts filtering
Filter alerts through `?filter=` query string.
* Add silences filtering
Filter silences through `?filter=` query string.
* Move `parse` to `pkg/parse`
2017-03-16 11:16:10 +01:00
stuart nelson
5a9953d5ce
Add basic debouncer
2017-03-14 11:15:23 +01:00
stuart nelson
5004299b83
Pull out some appHeader code
2017-03-14 10:37:39 +01:00
Max Inden
0790930343
Render page header aka nav bar with elm ( #4 )
...
This replaces the static nav bar specification in the index.html file.
2017-03-14 10:27:52 +01:00
Max Inden
fced9e126b
api: Expose mesh status ( #644 )
...
* api: Expose mesh status
The weaveworks mesh package reveals information about the current status
of the mesh network between alertmanager instances. This commit exposes
the current address and connection status of each instance connected to
the targeted alertmanager instance via the /status API endpoint.
* api: Replace LocalConnectionStatus with PeerStatus
Now meshStatus contains all peers (Name, NickName, UID) of the network.
Additionally adding Name and Nickname of current target to toplevel of
meshNetwork object.
2017-03-07 18:17:03 +01:00
stuart nelson
5e56d34e88
Show active/pending/expired on silences
2017-03-06 16:35:29 +01:00
stuart nelson
c53bb2f357
Set silences and silence resulting from update
2017-03-06 16:06:47 +01:00
stuart nelson
2243546edf
Update README.md
2017-03-06 14:06:39 +01:00
stuart nelson
1b416e9394
Massive extraction of Silences
...
Pull rest of silences from top-level namespace
into its own namespace.
2017-03-06 13:53:20 +01:00
stuart nelson
c01a86372d
Pass filter query string for silences to API
2017-03-06 12:34:20 +01:00
stuart nelson
a454792595
Remove unused parsefilter
...
Filter parsing is handled on the server side.
2017-03-06 12:34:09 +01:00
stuart nelson
812588a61c
Re-add "New Silence" button
...
Got deleted at some point. Oops.
2017-03-06 11:56:10 +01:00
James O'Gorman
00e3b98614
template: Add reReplaceAll function ( #639 )
...
This allows for using regexp replacement in templates.
2017-03-04 12:07:31 +00:00
stuart nelson
412d33336d
Update README.md ( #641 )
...
Make it more clear that -mesh.peer flag should be
repeated for each peer.
2017-03-02 12:35:04 +01:00
stuart nelson
24a9a64bdf
Only find MAC address if no command-line flag value given ( #638 )
...
* Find MAC address if mesh.hardware-addr not given
Defaulting to the machine's MAC address fails
sometimes fails and causes a panic. Allow the user
to specify custom address to skip this so they can
run AlertManager.
* -mesh.hardware-address -> -mesh.peer-id
* Fix command-line invocation
2017-02-28 14:57:45 +01:00
stuart nelson
90fc6f55dc
Remove client-side parsing, improve error message
2017-02-28 10:59:18 +01:00
stuart nelson
b0eef742c4
Silenced attr on alerts is also now a string
2017-02-23 16:49:56 +01:00
stuart nelson
6ec1dd886a
Silences use non-numeric uuids
2017-02-23 16:40:56 +01:00
stuart nelson
b93c7efdf5
Update silence api interaction for v0.5 api
2017-02-22 17:30:20 +01:00
stuart nelson
14d27172d9
Correctly name arguments to error view
2017-02-22 17:29:26 +01:00
stuart nelson
021f13d631
Some renaming
...
Will potentially abort doing this filtering on the
frontend, but saving this for now.
2017-02-22 17:29:04 +01:00
stuart nelson
0ecc59076c
Add DELETE to acceptable cors methods
2017-02-22 13:55:57 +01:00
stuart nelson
a51bb46a80
Rename maybeQuery to maybeFilter
2017-02-22 11:15:48 +01:00
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