Commit Graph

203 Commits

Author SHA1 Message Date
Łukasz Mierzwa
791cc7f10b fix(backend): correctly count alerts in /silences.json
Fixes #3909
2022-01-31 12:55:58 +00:00
Łukasz Mierzwa
ba00800ca7 fix(tests): update snapshots 2022-01-30 15:20:25 +00:00
Łukasz Mierzwa
197d3a06d7 fix(backend): log messages correctly with json and timestamps
Fixes #3822
2021-12-28 17:07:09 +00:00
Łukasz Mierzwa
5fa49ace2f feat(backend): show recently expired silences 2021-12-19 13:20:19 +00:00
Łukasz Mierzwa
650fdca8e6 feat(ci): use goimports to format import statements 2021-12-16 20:51:52 +00:00
Łukasz Mierzwa
087c9c1398 feat(backend): add tls options for history requests
Fixes #3707
2021-12-16 19:07:43 +00:00
Taavi Väänänen
7e5571e135 fix(acl): do not validate group names from proxies
Validating the group name made sense when they were defined statically
in the configuration file. However when using a HTTP proxy to provide
group information it just causes issues.
2021-12-06 16:51:25 +00:00
Łukasz Mierzwa
14ce63f7dc fix(backend): enable more linters in golangci-lint 2021-11-03 17:16:14 +00:00
Łukasz Mierzwa
c71c9e6107 fix(backend): retry failed alertmanager requests 2021-11-01 12:14:22 +00:00
Łukasz Mierzwa
d172c58a1a feat(backend): add labels:order config option
Fixes #3500
2021-11-01 11:00:46 +00:00
Łukasz Mierzwa
c90a5063ef fix(api): move static & valueOnly label information to a map 2021-11-01 00:18:05 +00:00
Łukasz Mierzwa
8f7cca40cc fix(api): use slices for labels instead of maps 2021-10-29 17:18:15 +01:00
Alex Kampmeier
23fb5484d6 feat(config): add config parameter labels.valueOnly_re 2021-10-28 10:44:38 +01:00
Alex Kampmeier
7018eb1c8b feat(config): add config parameters labels.keep_re and labels.strip_re 2021-10-28 10:44:38 +01:00
Łukasz Mierzwa
e9c692a391 fix(api): ensure proxy paths are encoded
Fixes #3651
2021-10-27 22:36:30 +01:00
Łukasz Mierzwa
4ccc0a35ab fix(auth): add missing test coverage 2021-10-23 14:38:54 +01:00
Taavi Väänänen
9b89b4ee2a feat(auth): allow reading user groups from headers
Closes: #3361
Signed-off-by: Taavi Väänänen <hi@taavi.wtf>
2021-10-23 14:38:54 +01:00
Taavi Väänänen
bda2fcbc29 refactor(auth): set groups during authentication
Instead of loading groups from config when they're checked, move group
calculation to same place where the username itself is determined. This
is needed to allow sourcing group membership from a HTTP header or
similar in a future commit.

Signed-off-by: Taavi Väänänen <hi@taavi.wtf>
2021-10-23 14:38:54 +01:00
Łukasz Mierzwa
ebfe335750 fix(api): ensure alert state is always correctly selected 2021-09-23 21:03:00 +01:00
Łukasz Mierzwa
973ef191ba fix(backend): fix history rewrite rule handling 2021-08-18 14:18:51 +01:00
Łukasz Mierzwa
5bc045b389 chore(actions): use latest Go version (#3441) 2021-08-17 09:52:15 +01:00
Łukasz Mierzwa
5d8ad6acf2 fix(api): remove redundant silences initialization 2021-07-23 19:55:05 +01:00
valihanov
c1353f88cc fix(api): refactor silence map initialization to avoid races 2021-07-23 19:55:05 +01:00
Łukasz Mierzwa
75b2789597 feat(backend): add labels:valueOnly config option 2021-07-19 20:04:05 +01:00
Łukasz Mierzwa
434eb677fd feat(api): add /version endpoint
Fixes #3332
2021-07-19 18:28:30 +01:00
Łukasz Mierzwa
fc3f6baedf feat(api): string grid labels from alert groups
Fixes #3222
2021-07-19 17:43:46 +01:00
Łukasz Mierzwa
716e62c347 fix(api): dedup should be done before alert limit 2021-07-16 19:12:29 +01:00
Łukasz Mierzwa
68c4163dd2 fix(ui): skip custom asset loading if not enabled 2021-07-15 14:29:49 +01:00
Łukasz Mierzwa
7b8e8bb17a feat(api): limit group alerts 2021-07-14 18:00:07 +01:00
Łukasz Mierzwa
1f32666036 fix(api): use POST requests for /alerts.json endpoint 2021-07-12 22:09:11 +01:00
Łukasz Mierzwa
907ac420d3 feat(api): use a dedicated API endpoint for overview modal 2021-07-09 12:25:32 +01:00
Łukasz Mierzwa
e1505a01cb fix(api): fix empty response for alertList.json 2021-07-08 10:09:54 +01:00
Łukasz Mierzwa
d7389c8de0 fix(api): avoid generating one grid per alert 2021-07-06 21:00:48 +01:00
Łukasz Mierzwa
dcfbea3376 chore(api): refactor grid label select source 2021-07-03 12:36:02 +01:00
Łukasz Mierzwa
f13cd9a112 feat(api): add alertList.json endpoint 2021-07-02 22:06:45 +01:00
Łukasz Mierzwa
04379fc3cc feat(ui): paginate api 2021-06-28 12:28:40 +01:00
Łukasz Mierzwa
3ad9eef277 fix(ui): disable cra preflight checks 2021-06-24 17:28:38 +01:00
Łukasz Mierzwa
186d2a4e01 fix(backend): add a go_max_procs metric 2021-06-03 14:32:26 +01:00
Łukasz Mierzwa
79c2fbc6e7 feat(backend): use automaxprocs for GOMAXPROCS 2021-06-03 13:10:51 +01:00
Łukasz Mierzwa
19d7a29551 fix(ci): enable revive linter 2021-05-28 21:28:31 +01:00
Łukasz Mierzwa
caf18887ea feat(backend): support isEqual silence field in ACLs 2021-05-18 17:08:44 +01:00
Łukasz Mierzwa
bdb80960a6 fix(backend): don't skip labels with variants == groups 2021-05-18 13:00:13 +01:00
Łukasz Mierzwa
19345cc53a feat(ui): add support for alertmanager v0.22.0 2021-05-15 11:41:01 +01:00
Łukasz Mierzwa
aa7b54f02b fix(backend): redirect to slash
If listen.prefix is set to /foo we should redirect /foo => /foo/

Fixes 3084
2021-05-07 18:40:04 +01:00
Łukasz Mierzwa
c812c25393 feat(backend): add alert history source rewrite rules
Fixes #3064
2021-05-04 13:28:35 +01:00
Łukasz Mierzwa
ac03e835af fix(backend): use correct label selectors 2021-05-04 10:43:46 +01:00
Łukasz Mierzwa
12c4a22d71 feat(project): show alert history 2021-05-01 19:37:29 +01:00
Łukasz Mierzwa
31d21f29cf chore(backend): use hashicorp/golang-lru for internal cache 2021-04-25 18:38:29 +01:00
Łukasz Mierzwa
9222133df8 fix(backend): allow duplicated upstream URIs
Fixes #3024
2021-04-22 15:24:38 +01:00
Łukasz Mierzwa
e0f52dacbd feat(backend): add auto multi-grid config 2021-04-21 10:51:18 +01:00