Skip to content

Commit

Permalink
Merge pull request #59 from scalableminds/slurm-exporter
Browse files Browse the repository at this point in the history
Add slurm-exporter
  • Loading branch information
robert-oleynik authored Sep 24, 2024
2 parents 65538fd + 9af931e commit f8a3aa3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- s3-proxy
- sbt
- slurm-docker-cluster
- slurm-exporter
- wklink
- om-bistro
- metrics-pusher
Expand Down
16 changes: 16 additions & 0 deletions slurm-exporter/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ARG GO_VERSION=1.22
ARG SLURM_VERSION=24.05.3

FROM cimg/go:$GO_VERSION AS builder

ARG SLURM_EXPORTER_VERSION=0.20

WORKDIR /build
RUN wget "https://github.com/vpenso/prometheus-slurm-exporter/archive/refs/tags/${SLURM_EXPORTER_VERSION}.zip" && unzip "${SLURM_EXPORTER_VERSION}.zip"
RUN go build -C "prometheus-slurm-exporter-${SLURM_EXPORTER_VERSION}" -o /build/bin/prometheus-slurm-exporter

FROM scalableminds/slurmctl:$SLURM_VERSION

COPY --from=builder /build/bin/prometheus-slurm-exporter /usr/bin

ENTRYPOINT [ "/usr/bin/prometheus-slurm-exporter" ]

0 comments on commit f8a3aa3

Please sign in to comment.