Implement Prometheus metrics

This commit is contained in:
Flavio Meyer 2020-09-01 12:56:35 +02:00
parent 4b52934656
commit ae6687b7d2
2 changed files with 5 additions and 0 deletions

View file

@ -25,6 +25,7 @@ RUN freshclam --quiet --no-dns
# Build go package
ADD . /go/src/clamav-rest/
RUN go get github.com/dutchcoders/go-clamd
RUN go get github.com/prometheus/client_golang/prometheus/promhttp
ADD ./server.* /etc/ssl/clamav-rest/
RUN cd /go/src/clamav-rest && go build -v