Skip to content

Commit

Permalink
Change to newer prom slurm exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
kincl committed Nov 8, 2023
1 parent 99d2417 commit e723d66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions slurm/images/slurm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ RUN curl -LO https://download.schedmd.com/slurm/slurm-${SLURM_VERSION}.tar.bz2 &

FROM docker.io/golang:1.21 as build-exporter

WORKDIR /usr/src/app

RUN git clone https://github.com/vpenso/prometheus-slurm-exporter.git /usr/src/app && \
make bin/prometheus-slurm-exporter
RUN go install github.com/rivosinc/prometheus-slurm-exporter@v1.0.1

FROM scratch as tmp

Expand All @@ -47,7 +44,7 @@ COPY --from=build /usr/sbin/slurm* /usr/sbin/
COPY --from=build /usr/share/man/ /usr/share/man/

#prometheus exporter
COPY --from=build-exporter /usr/src/app/bin/prometheus-slurm-exporter /usr/bin/prometheus-slurm-exporter
COPY --from=build-exporter /go/bin/prometheus-slurm-exporter /usr/bin/prometheus-slurm-exporter

FROM ghcr.io/naps-product-sa/openshift-batch/munge:latest

Expand Down
2 changes: 1 addition & 1 deletion slurm/manifests/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
ports:
- port: 6817
name: slurmctld
- port: 8080
- port: 9092
name: scrape
selector:
app: slurm
Expand Down

0 comments on commit e723d66

Please sign in to comment.