85 Commits

Author SHA1 Message Date
Łukasz Mierzwa
04379fc3cc feat(ui): paginate api 2021-06-28 12:28:40 +01:00
Łukasz Mierzwa
a6bc8813ca fix(ui): fix history being fetched twice 2021-06-27 15:36:21 +01:00
Łukasz Mierzwa
19d7a29551 fix(ci): enable revive linter 2021-05-28 21:28:31 +01:00
Łukasz Mierzwa
19345cc53a feat(ui): add support for alertmanager v0.22.0 2021-05-15 11:41:01 +01:00
Łukasz Mierzwa
12c4a22d71 feat(project): show alert history 2021-05-01 19:37:29 +01:00
Łukasz Mierzwa
e63447238d feat(ui): allow HTML in annotations
Fixes #2886
2021-04-08 19:43:25 +01:00
Łukasz Mierzwa
f68399cc70 feat(ui): allow moving annotations to alert dropdown menu
Fixes #2596
2021-03-06 16:01:50 +00:00
Łukasz Mierzwa
2b963c65d1 feat(ui): allow customising ack silence comment
Fixes #2369
2020-11-24 19:52:56 +00:00
Łukasz Mierzwa
6a67d5ba8e fix(backend): simplify version probes 2020-10-30 18:09:23 +00:00
Łukasz Mierzwa
170dba8a37 chore(backend): use zerolog instead of logrus 2020-10-15 10:10:00 +01:00
Frits van Bommel
72d24ad98a chore(deps): migrate to new sortorder import path
See fvbommel/util#7
2020-09-13 17:09:12 +01:00
Łukasz Mierzwa
760acee8d7 feat(api): expose alert fingerprint in the API response 2020-06-30 23:53:56 +01:00
Łukasz Mierzwa
fcb207f397 fix(api): return label color data as rgba strings 2020-06-25 18:28:49 +01:00
Łukasz Mierzwa
1a46986600 fix(backend): cleanup state checks 2020-06-12 19:14:17 +01:00
Łukasz Mierzwa
c74479d435 fix(api): expose alert fingerprint in the API 2020-05-30 18:12:54 +01:00
Łukasz Mierzwa
fbef0aeb5f fix(backend): reduce number of memory allocations 2020-05-28 18:44:13 +01:00
Łukasz Mierzwa
9563b9119d feat(test): report more metrics when running go benchmarks 2020-05-23 17:06:11 +01:00
Łukasz Mierzwa
4b927a3f92 feat(api): expose all receivers in the API response 2020-05-14 16:45:49 +01:00
Łukasz Mierzwa
b379e091c7 fix(tests): add annotation custom order sort tests 2020-05-09 15:18:56 +01:00
Benoît Knecht
7f3846b9f8 feat(backend): Add option to order annotations
The `annotations.order` option lets users pass a list of annotation names in
the order they want them displayed. Any annotation that isn't in the list is
shown after the annotations from the list, in alphabetical order.

For instance, with

```yaml
annotations:
  order:
  - summary
  - description
```

an alert with `description`, `help`, `runbook` and `summary` annotations will
have them displayed in that order:

- `summary`
- `description`
- `help`
- `runbook`

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
2020-05-09 15:18:56 +01:00
Łukasz Mierzwa
215242dc51 fix(tests): add more annotation tests 2020-04-20 22:59:48 +01:00
Łukasz Mierzwa
bc9b711d0f fix(ui): correctly handle annotations with spaces after the link
Fixes #1648
2020-04-20 22:59:48 +01:00
Łukasz Mierzwa
f41066b6ba feat(api): expose per grid state count 2020-03-31 09:16:55 +01:00
Łukasz Mierzwa
cff62dda2f feat(api): generate alert grid per label value
This allows generating multiple independent alert group lists, one per unique value of the label specified by the user.
This way we can have a separate grid per severity or cluster label value.
2020-03-31 09:16:55 +01:00
Łukasz Mierzwa
e9306d2222 fix(backend): remove silenceForm.author config section 2020-02-22 15:50:01 +00:00
Łukasz Mierzwa
e08c442e39 feat(backend): add basic auth support 2020-02-22 15:50:00 +00:00
Łukasz Mierzwa
f502319005 feat(backend): allow setting CORS credentials policy 2020-02-19 09:59:35 +00:00
Łukasz Mierzwa
572f9975b8 feat(backend): add readonly option to alertmanager 2020-01-28 22:26:56 +00:00
Łukasz Mierzwa
2e2591f7c9 fix(api): hash is not used by the UI, don't expose it 2020-01-06 22:22:47 +00:00
Łukasz Mierzwa
0015d3fa4e feat(ui): replace jira link detection with a generic link finder
Fixes #1140
2019-11-11 23:24:06 +00:00
Łukasz Mierzwa
6857368607 feat(backend): add backend configuration for silence acks, expose it via the api 2019-11-05 10:12:08 +00:00
Łukasz Mierzwa
67e473af54 feat(api): expose the number of matched alerts on /silences.json 2019-10-30 17:25:11 +00:00
Łukasz Mierzwa
22ea4393ab feat(api): expose all silences under /silences.json 2019-10-26 17:36:12 +01:00
Łukasz Mierzwa
1346237777 fix(project): refactor proxy & external_uri handling
Fixes #1024
2019-10-11 00:10:58 +01:00
Łukasz Mierzwa
4efe17e8f1 feat(api): expose alertmanager headers in the API 2019-09-26 20:37:23 +01:00
Łukasz Mierzwa
77735ffcf1 fix(backend): fix problems found by new linters 2019-08-18 15:51:54 +01:00
Łukasz Mierzwa
29b6c7baae fix(backend): fix problems found by new linters 2019-08-18 10:58:26 +01:00
Łukasz Mierzwa
939970fd5f fix(backend): reformat backend code 2019-08-17 14:52:35 +01:00
Łukasz Mierzwa
4ab8f0305a feat(tests): add more test coverage 2019-08-08 15:45:01 +01:00
Łukasz Mierzwa
6b497217d9 fix(backend): remove endsAt from alerts
This is unused but keeps changing
2019-08-08 15:45:00 +01:00
Łukasz Mierzwa
86506563e9 feat(api): sort alert groups in the backend 2019-08-08 15:45:00 +01:00
Łukasz Mierzwa
68b6e17e64 chore(backend): reformat code 2019-08-08 15:45:00 +01:00
Łukasz Mierzwa
9b6273595d chore: move sorting to the backend 2019-08-08 15:45:00 +01:00
Łukasz Mierzwa
49087ee10d fix(api): overview modal should sort label names in ascending order 2019-07-31 13:21:27 +01:00
Łukasz Mierzwa
e36f25a248 chore(api): add offset and raw filter value to the counters dict 2019-07-14 18:22:55 +01:00
Łukasz Mierzwa
1a98e01622 feat(backend): allow extracting silence author from auth headers 2019-07-12 23:04:15 +01:00
Łukasz Mierzwa
f0fee594d9 feat(api): add labels stats to the api response
These will be used by an overview modal, showing top labels.
2019-07-09 23:03:01 +01:00
Łukasz Mierzwa
4bd9f447e2 feat(backend): query cluster status via v2 Alertmanager API
This change switches to v2 API when querying for cluster status on Alertmanager 0.17.0+.
v1 will soon be removed so this is needed to support future Alertmanager releases
2019-06-22 17:48:33 +01:00
Łukasz Mierzwa
2fea920e57 feat(api): expose silenceform:strip:labels settings in the API 2019-04-29 20:17:40 +01:00
Łukasz Mierzwa
dfea73923c refactor(backend): add support for OpenAPI based client for alertmanager 2019-04-24 20:56:58 +01:00