Mercurial > code > home > repos > victoriametrics
annotate deploy_vmalert.yaml @ 28:e114edff93dc
more explicit intervals. try to get a single day of notification out of a disk err increase
author | drewp@bigasterisk.com |
---|---|
date | Wed, 19 Jul 2023 21:17:22 -0700 |
parents | cd115f1ca2a8 |
children |
rev | line source |
---|---|
0 | 1 apiVersion: apps/v1 |
2 kind: Deployment | |
3 metadata: | |
4 name: vmalert | |
5 spec: | |
6 replicas: 1 | |
7 strategy: { type: Recreate } | |
8 selector: | |
9 matchLabels: | |
10 app: vmalert | |
11 template: | |
12 metadata: | |
13 labels: | |
14 app: vmalert | |
7
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
15 annotations: |
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
16 prometheus.io/scrape: "true" |
0 | 17 spec: |
22
cd115f1ca2a8
use configmaps and a special pod refresh trick
drewp@bigasterisk.com
parents:
21
diff
changeset
|
18 volumes: |
cd115f1ca2a8
use configmaps and a special pod refresh trick
drewp@bigasterisk.com
parents:
21
diff
changeset
|
19 - name: config |
cd115f1ca2a8
use configmaps and a special pod refresh trick
drewp@bigasterisk.com
parents:
21
diff
changeset
|
20 configMap: { name: victoriametrics-config } |
0 | 21 serviceAccountName: victoriametrics |
22 containers: | |
23 - name: vmalert | |
21
10127391f6f3
don't use docker images to bake in the config files
drewp@bigasterisk.com
parents:
11
diff
changeset
|
24 image: docker.io/victoriametrics/vmalert:v1.91.2 |
0 | 25 args: |
7
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
26 - -configCheckInterval=5s |
11 | 27 - -datasource.url=http://victoriametrics/m/ |
28
e114edff93dc
more explicit intervals. try to get a single day of notification out of a disk err increase
drewp@bigasterisk.com
parents:
22
diff
changeset
|
28 - -datasource.queryStep=5m |
e114edff93dc
more explicit intervals. try to get a single day of notification out of a disk err increase
drewp@bigasterisk.com
parents:
22
diff
changeset
|
29 - -evaluationInterval=1m |
7
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
30 - -external.url=https://bigasterisk.com/vmalert |
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
31 - -loggerLevel=INFO |
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
32 - -loggerTimezone=America/Los_Angeles |
7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
drewp@bigasterisk.com
parents:
4
diff
changeset
|
33 - -memory.allowedBytes=512MB |
11 | 34 - -notifier.url=http://alertmanager |
35 - -remoteRead.url=http://victoriametrics/m/ | |
36 - -remoteWrite.url=http://victoriametrics/m/ | |
22
cd115f1ca2a8
use configmaps and a special pod refresh trick
drewp@bigasterisk.com
parents:
21
diff
changeset
|
37 - -rule=/local/rules |
0 | 38 ports: |
39 - containerPort: 8880 | |
22
cd115f1ca2a8
use configmaps and a special pod refresh trick
drewp@bigasterisk.com
parents:
21
diff
changeset
|
40 volumeMounts: |
cd115f1ca2a8
use configmaps and a special pod refresh trick
drewp@bigasterisk.com
parents:
21
diff
changeset
|
41 - { name: config, mountPath: /local } |
0 | 42 --- |
43 apiVersion: v1 | |
44 kind: Service | |
45 metadata: | |
46 name: vmalert | |
47 spec: | |
48 ports: | |
49 - port: 80 | |
50 targetPort: 8880 | |
51 selector: | |
52 app: vmalert |