BREAKING CHANGE: disable prometheus temporarily
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
the exporter doesn't build on crystal 1.8 and we aren't using prometheus, so it's easier to disable for now.
This commit is contained in:
parent
d97b0f4991
commit
564bbbfcfa
3 changed files with 1 additions and 22 deletions
|
@ -4,9 +4,8 @@ FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
|||
MAINTAINER "f <f@sutty.nl>"
|
||||
ARG KNOT_VERSION=3.1.8
|
||||
|
||||
RUN apk add --no-cache knot~${KNOT_VERSION} knot-prometheus-exporter daemonize
|
||||
RUN apk add --no-cache knot~${KNOT_VERSION}
|
||||
COPY ./monit.conf /etc/monit.d/knot.conf
|
||||
COPY ./prometheusd.sh /usr/local/bin/prometheusd
|
||||
|
||||
EXPOSE 53
|
||||
EXPOSE 53/udp
|
||||
|
|
|
@ -4,7 +4,3 @@ check process knot with pidfile /tmp/knot.pid
|
|||
if 5 restarts within 8 cycles then alert
|
||||
if failed port 53 type udp protocol dns for 3 times within 5 cycles then restart
|
||||
if failed port 53 type tcp protocol dns for 3 times within 5 cycles then restart
|
||||
|
||||
check process prometheus with pidfile /tmp/prometheus.pid
|
||||
start program = "/usr/local/bin/prometheusd start"
|
||||
stop program = "/usr/local/bin/prometheusd stop"
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
STATS=${STATS:-/tmp/stats.yaml}
|
||||
pid=/tmp/prometheus.pid
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
test -f $pid && echo "prometheus-exporter already running"
|
||||
daemonize -c /tmp -p $pid -l $pid -u knot /usr/local/bin/syslogize /usr/bin/knot-prometheus-exporter ${STATS}
|
||||
;;
|
||||
stop)
|
||||
test -f $pid && cat $pid | xargs -r kill || true
|
||||
rm -f $pid
|
||||
;;
|
||||
esac
|
Loading…
Reference in a new issue