-
Notifications
You must be signed in to change notification settings - Fork 17
/
config.yaml
63 lines (56 loc) · 2.89 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 2021 Canonical Ltd.
# See LICENSE file for licensing details.
options:
config_file:
type: string
default: ""
description: >
Alertmanager configuration file (yaml), with the exclusion of the templates section.
To send the contents of a file to this configuration option, the symbol `@` must be used.
Usage: `juju config alertmanager config_file=@alertmanager.yaml`
For more information on configuring the Alertmanager, refer to:
https://www.prometheus.io/docs/alerting/latest/configuration/
templates_file:
type: string
default: ""
description: >
Alertmanager templates definition file. This is a slight deviation from the official
alertmanager config spec. All templates need to go into this single config option, instead of
the 'templates' section of the main configuration file. The templates will be pushed to the
workload container, and the configuration file will be updated accordingly. Templates can't
be used without `config_file`.
Refer to https://prometheus.io/docs/alerting/latest/notification_examples/ for more details
on templates.
web_external_url:
type: string
default: ""
description: |
DEPRECATED. This config option is no longer used, in favor of "skipPrefix".
The URL under which Alertmanager is externally reachable (for example, if
Alertmanager is served via a manually configured ingress).
This config option is used for the `--web.external-url` alertmanager cli
argument. If this charm config option is provided, it takes precedence over the
URL provided over the "ingress" relation.
Note: this config option shouldn't be included when you're using the "ingress"
relation (e.g. traefik) - the charm will automatically assign an external url
to `--web.external-url` when related to an ingress provider.
This should be a complete URI, including scheme, or a fully qualified subpath
starting with `/`.
If Alertmanager is being served directly from the root of a fully-qualified
host or a bare A record, this may be omitted.
If the URL has a path portion, Alertmanager will use it to prefix all HTTP
endpoints.
cpu:
description: |
K8s cpu resource limit, e.g. "1" or "500m". Default is unset (no limit). This value is used
for the "limits" portion of the resource requirements (the "requests" portion is
automatically deduced from it).
See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
type: string
memory:
description: |
K8s memory resource limit, e.g. "1Gi". Default is unset (no limit). This value is used
for the "limits" portion of the resource requirements (the "requests" portion is
automatically deduced from it).
See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
type: string