Added parity status metrics

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2025-11-25 10:52:34 +00:00
parent b901352f0f
commit 357b98e98e
6 changed files with 267 additions and 23 deletions

View File

@@ -0,0 +1,11 @@
FROM golang:1.25-alpine AS builder
WORKDIR /app/
ADD go.mod go.sum ./
RUN go mod download
ADD . .
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-w -s" -o unraid-exporter main.go
FROM golang:1.25-alpine
WORKDIR /app/
COPY --from=builder /app/unraid-exporter /app/unraid-exporter
ENTRYPOINT ["/app/unraid-exporter"]