Commit Graph
222 Commits
Author SHA1 Message Date
Łukasz MierzwaandŁukasz Mierzwa 4b927a3f92 feat(api): expose all receivers in the API response 2020-05-14 16:45:49 +01:00
Łukasz MierzwaandŁukasz Mierzwa b379e091c7 fix(tests): add annotation custom order sort tests 2020-05-09 15:18:56 +01:00
Łukasz MierzwaandŁukasz Mierzwa 7711f3bcd6 fix(tests): update tests with annotations order option 2020-05-09 15:18:56 +01:00
Benoît KnechtandŁukasz Mierzwa 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 MierzwaandŁukasz Mierzwa 51f5c816a5 fix(tests): more test coverage 2020-04-21 17:33:31 +01:00
Łukasz MierzwaandŁukasz Mierzwa 215242dc51 fix(tests): add more annotation tests 2020-04-20 22:59:48 +01:00
Łukasz MierzwaandŁukasz Mierzwa bc9b711d0f fix(ui): correctly handle annotations with spaces after the link
Fixes #1648
2020-04-20 22:59:48 +01:00
Łukasz MierzwaandŁukasz Mierzwa 1e787e0c9c fix(backend): ensure alertmanager server uses default name if not set
Fixes #1646
2020-04-20 15:52:58 +01:00
Łukasz Mierzwa e1b548fc93 fix(tests): add more test coverage 2020-04-05 12:50:15 +01:00
Łukasz Mierzwa c4731089ee fix(tests): add more test coverage 2020-04-04 15:26:24 +01:00
Łukasz Mierzwa f41066b6ba feat(api): expose per grid state count 2020-03-31 09:16:55 +01:00
Łukasz Mierzwa 53289a1a06 feat(backend): add multi-grid UI options to configuration file 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 4117a0b391 fix(backend): anchor all regexes in the config 2020-03-26 16:12:23 +00:00
Łukasz Mierzwa 225bf73373 fix(backend): remove empty config slice checks 2020-03-25 22:41:51 +00:00
Łukasz Mierzwa 8d0495766c fix(backend): regenerate code using swagger v0.23.0 2020-03-25 14:59:00 +00:00
Renovate BotandŁukasz Mierzwa 0e079f4e09 chore(deps): update quay.io/goswagger/swagger docker tag to v0.23.0 2020-03-25 14:59:00 +00:00
Łukasz Mierzwa 6313077150 feat(backend): add configuration options for silence ACL rules 2020-03-09 22:28:43 +00:00
Łukasz Mierzwa 2ab6892c85 feat(backend): use username from credentials for silences
When authentication is enabled and proxy mode is on then ensure all silences are created with the username from credentials, rather than what the user sends.
2020-02-26 11:26:19 +00:00
Łukasz Mierzwa bd2017314f fix(backend): correctly load configuration using CONFIG_FILE env variable
Fixes #1466
2020-02-26 10:27:49 +00:00
Łukasz Mierzwa 1b31486eff fix(backend): remove deprecated BuildNameToCertificate usage 2020-02-26 09:48:29 +00:00
Łukasz Mierzwa e9306d2222 fix(backend): remove silenceForm.author config section 2020-02-22 15:50:01 +00:00
Łukasz Mierzwa fbff53c51b feat(backend): support header based auth 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 6ce7b88bd6 fix(tests): more test coverage for cors credential settings 2020-02-19 13:08:08 +00:00
Łukasz Mierzwa f502319005 feat(backend): allow setting CORS credentials policy 2020-02-19 09:59:35 +00:00
Łukasz Mierzwa f8ee7b3cd0 fix(backend): empty string slice configuration options end up being nil
Fixes #1439
2020-02-18 13:28:35 +00:00
Łukasz Mierzwa 265dbf823f fix(backend): remove file:// transport support 2020-02-12 16:51:09 +00:00
Łukasz Mierzwa 908c2b96d5 fix(project): drop support for Alertmanager v1 API 2020-02-12 16:09:55 +00:00
Łukasz Mierzwa 95f197bd34 fix(tests): more test coverage 2020-02-11 15:32:41 +00:00
Łukasz Mierzwa 84b36b12bd fix(tests): more test coverage 2020-02-11 13:15:44 +00:00
Łukasz Mierzwa 05e9ab5299 chore(backend): switch to github.com/knadh/koanf for config handling 2020-02-09 15:37:01 +00:00
Łukasz Mierzwa 62b7d85f70 fix(tests): remove v0.61 mapper
That version had problems, remove it
2020-02-06 15:08:17 +00:00
Łukasz Mierzwa db78b6bca1 chore(backend): refactor config flag setup for better test coverage 2020-02-05 16:57:56 +00:00
Łukasz Mierzwa 43bd35a94f fix(backend): update api v2 client code 2020-02-02 10:38:14 +00:00
Renovate BotandŁukasz Mierzwa 5a07013f13 chore(deps): update quay.io/goswagger/swagger docker tag to v0.22.0 2020-02-02 10:38:14 +00:00
Łukasz Mierzwa 4ac60a7c2b fix(tests): more complete config tests 2020-01-31 16:59:26 +00:00
Łukasz Mierzwa a2ca29d88e feat(backend): add log.timestamp to disable timestamps in log messages 2020-01-31 15:07:27 +00:00
Łukasz Mierzwa 3a0492bf74 fix(tests): add more test coverage 2020-01-28 22:26:56 +00:00
Łukasz Mierzwa 572f9975b8 feat(backend): add readonly option to alertmanager 2020-01-28 22:26:56 +00:00
Łukasz Mierzwa 38e43b1ef4 fix(backend): sanitize urls in errors 2020-01-23 12:12:26 +00:00
Łukasz Mierzwa 884bd3581e fix(backend): mask credentials in error logs
Fixes #1363
2020-01-22 10:56:42 +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 a9a7d8fc8d fix(backend): move version logging to include upstream name 2019-12-06 15:30:07 +00:00
Łukasz Mierzwa ae7b097630 fix(backend): correct pre-release version parsing for alertmanager upstreams
Fixes #1229
2019-12-05 19:10:56 +00:00
Łukasz Mierzwa ac6f8c0093 fix(build): don't upgrade packages during docker builds 2019-12-02 14:15:42 +00:00
Łukasz Mierzwa 4cc15f10d1 chore(backend): use new settings for UI theme configuration 2019-11-29 21:20:34 +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