prometheus
This commit is contained in:
parent
c06dc5a527
commit
f106771da9
2 changed files with 16 additions and 0 deletions
|
@ -1,2 +1,8 @@
|
|||
FROM sutty/monit:latest
|
||||
MAINTAINER "f <f@sutty.nl>"
|
||||
|
||||
RUN apk add --no-cache prometheus daemonize
|
||||
COPY ./prometheusd.sh /usr/local/bin/prometheusd
|
||||
|
||||
EXPOSE 9090
|
||||
VOLUME /var/lib/prometheus
|
||||
|
|
10
prometheusd.sh
Executable file
10
prometheusd.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
pid=/tmp/prometheus.pid
|
||||
var=/var/lib/prometheus
|
||||
log=/dev/log
|
||||
|
||||
chown prometheus:prometheus /var/lib/prometheus/data
|
||||
|
||||
daemonize -p "${pid}" -l "${pid}" -u prometheus -c "${var}" -a -o "${log}" -e "${log}" \
|
||||
/usr/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path="${var}/data"
|
Loading…
Reference in a new issue