Skip to content

Commit b1625a0

Browse files
Provide default working config for artifacts (prometheus#1313)
1 parent f53b247 commit b1625a0

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

.promu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build:
1515
-X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
1616
tarball:
1717
files:
18-
- doc/examples/simple.yml
18+
- examples/ha/alertmanager.yml
1919
- LICENSE
2020
- NOTICE
2121
crossbuild:

Dockerfile

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
FROM prom/busybox:latest
22
MAINTAINER The Prometheus Authors <[email protected]>
33

4-
COPY amtool /bin/amtool
5-
COPY alertmanager /bin/alertmanager
6-
COPY doc/examples/simple.yml /etc/alertmanager/config.yml
4+
COPY amtool /bin/amtool
5+
COPY alertmanager /bin/alertmanager
6+
COPY examples/ha/alertmanager.yml /etc/alertmanager/alertmanager.yml
77

88
EXPOSE 9093
99
VOLUME [ "/alertmanager" ]
10-
WORKDIR /alertmanager
10+
WORKDIR /etc/alertmanager
1111
ENTRYPOINT [ "/bin/alertmanager" ]
12-
CMD [ "--config.file=/etc/alertmanager/config.yml", \
13-
"--storage.path=/alertmanager" ]
12+
CMD [ "--storage.path=/alertmanager" ]

Procfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
a1: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a1 --web.listen-address=:9093 --cluster.listen-address=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yaml
2-
a2: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a2 --web.listen-address=:9094 --cluster.listen-address=127.0.0.1:8002 --cluster.peer=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yaml
3-
a3: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a3 --web.listen-address=:9095 --cluster.listen-address=127.0.0.1:8003 --cluster.peer=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yaml
1+
a1: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a1 --web.listen-address=:9093 --cluster.listen-address=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yml
2+
a2: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a2 --web.listen-address=:9094 --cluster.listen-address=127.0.0.1:8002 --cluster.peer=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yml
3+
a3: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a3 --web.listen-address=:9095 --cluster.listen-address=127.0.0.1:8003 --cluster.peer=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yml
44
wh: go run ./examples/webhook/echo.go
55

File renamed without changes.

0 commit comments

Comments
 (0)