Commit Graph

87 Commits

Author SHA1 Message Date
Łukasz Mierzwa
477e8f29bb feat(backend): add healthcheck:visible config option
Fixes #2614
2021-01-17 12:59:19 +00:00
Łukasz Mierzwa
17b4e943b8 feat(backend): add healtcheck:filters option 2020-12-13 13:18:38 +00:00
Łukasz Mierzwa
2b963c65d1 feat(ui): allow customising ack silence comment
Fixes #2369
2020-11-24 19:52:56 +00:00
Łukasz Mierzwa
feaad60007 feat(backend): add config option to listen on HTTPS 2020-11-20 19:26:41 +00:00
Łukasz Mierzwa
8ee2a8e744 feat(backend): add log.requests option
This controls request log separately from log.level
2020-10-19 09:59:58 +01:00
Łukasz Mierzwa
170dba8a37 chore(backend): use zerolog instead of logrus 2020-10-15 10:10:00 +01:00
Łukasz Mierzwa
e7b5bf8fd9 feat(backend): configure UI animations defaults in config 2020-10-11 17:09:37 +01:00
Łukasz Mierzwa
54b475da5d fix(backend): correctly handle AUTHENTICATION_HEADER_VALUE_RE env variable
SILENCEFORM_AUTHOR_POPULATE_FROM_HEADER_* env support was removed, but old code is still present, remove it.
Correctly parse AUTHENTICATION_HEADER_VALUE_RE env variable into authentication.header.value_re config option.

Fixes #2246
2020-10-06 12:42:46 +01:00
Łukasz Mierzwa
c8d706bb91 feat(backend): fail on unknown keys in the config file 2020-09-27 20:40:18 +01:00
Łukasz Mierzwa
940eacd0ea feat(backend): fail on unknown keys in ACL config file 2020-09-27 20:40:18 +01:00
Łukasz Mierzwa
958653a505 fix(tests): refactor testscript tests 2020-09-25 19:11:50 +01:00
Łukasz Mierzwa
5c0ad44fb3 feat(backend): allow using regex rules in requiredMatcher acl actions
Fixes #2001
2020-09-08 12:50:20 +01:00
Łukasz Mierzwa
e9551ed3e1 fix(backend): check for invalid listen.prefix 2020-06-18 14:59:32 +01:00
Łukasz Mierzwa
e52cc91964 feat(config): add cluster option to alertmanager instances 2020-06-12 19:14:17 +01:00
Łukasz Mierzwa
7711f3bcd6 fix(tests): update tests with annotations order option 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
1e787e0c9c fix(backend): ensure alertmanager server uses default name if not set
Fixes #1646
2020-04-20 15:52:58 +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
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
6313077150 feat(backend): add configuration options for silence ACL rules 2020-03-09 22:28:43 +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
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
05e9ab5299 chore(backend): switch to github.com/knadh/koanf for config handling 2020-02-09 15:37:01 +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
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
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
03caf18a4f feat(ui): allow setting default value for UI darkTheme option 2019-10-28 18:38:12 +00:00
Nicolas Ledez
ade15ae06d Custom karma name (#994)
* feat: feat: add karma.name parameter

* fix(backend): remove duplicated 'name'

* feat(docs): mention karma:name in docs

* feat(demo): set custom title for demo
2019-10-05 12:17:09 +01:00
Łukasz Mierzwa
d7c15240f1 feat(backend): allow configuring defaults for the UI 2019-10-04 23:03:10 +01:00
Łukasz Mierzwa
ad699fc6fe feat(backend): add external_uri config option for alertmanager upstreams
Fixes #899
2019-08-27 21:58:52 +01:00
Łukasz Mierzwa
939970fd5f fix(backend): reformat backend code 2019-08-17 14:52:35 +01:00
Łukasz Mierzwa
86506563e9 feat(api): sort alert groups in the backend 2019-08-08 15:45:00 +01:00
Łukasz Mierzwa
1a98e01622 feat(backend): allow extracting silence author from auth headers 2019-07-12 23:04:15 +01:00
Łukasz Mierzwa
e20f7049b3 fix(backend): ensure that we always use default timeout for am requests
Timeout attribute for each alertmanager upstream should default to the value of alertmanager.timeout flag.
Without that it will default to 0s which will cause it to timeout instantly
2019-06-27 16:43:55 +01:00
Giedrius Statkevičius
d0a1076962 internal/config: fix tests
Add a new field to the configuration string: log.format. It was missing
thus the unit test fails.
2019-05-27 11:12:51 +03:00
Giedrius Statkevičius
5197e89e73 karma: add ability to configure log format
Add a rudimentary switch which would let users switch between different
formats used for logging. This is needed so that software such as
`logstash` could easily understand the structure of log messages and
index them accordingly.
2019-05-27 11:00:44 +03:00
Łukasz Mierzwa
1eb1b6736a feat(config): add options for ignoring labels when populating silences 2019-04-29 20:17:13 +01:00
Łukasz Mierzwa
aa070a769c fix(config): change config schema to allow regex based matches
BREAKING CHANGE: this changes configuration schema for custom label values, it provides more flexibility when setting custom labels and also prevents '*' special wildcard value from conflicting with labels, since '*' is a valid label value.

Fixes #537
2019-03-21 11:17:18 +00:00
Łukasz Mierzwa
1ce7f1b2d0 fix(backend): workaround viper map key parsing
This is a workaround until this issue is fixed upstream.

Fixes #507
2019-03-13 10:30:22 +00:00