Skip to content

Commit

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

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

RUN go install github.com/rivosinc/[email protected]
WORKDIR /usr/src/app

RUN git clone https://github.com/vpenso/prometheus-slurm-exporter.git /usr/src/app && \
make bin/prometheus-slurm-exporter

FROM scratch as tmp

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

#prometheus exporter
COPY --from=build-exporter /go/bin/prometheus-slurm-exporter /usr/bin/prometheus-slurm-exporter
COPY --from=build-exporter /usr/src/app/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: 9092
- port: 8080
name: scrape
selector:
app: slurm
Expand Down

0 comments on commit e6a5fc0

Please sign in to comment.