-
Notifications
You must be signed in to change notification settings - Fork 2
/
prometheus-slurm-exporter.spec
56 lines (48 loc) · 2.7 KB
/
prometheus-slurm-exporter.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Name: prometheus-slurm-exporter
Version: 1.13
Release: 1%{?dist}
Summary: Prometheus Exporter for Slurm
License: See LICENSE file in gitrepo.
URL: https://github.com/fasrc/prometheus-slurm-exporter
%description
Prometheus Exporter for Slurm. Uses the prometheus python implementation.
%prep
%build
rm -rf prometheus-slurm-exporter
git clone https://github.com/fasrc/prometheus-slurm-exporter.git
cd prometheus-slurm-exporter
rm -rf .git
rm -rf .gitignore
./bootstrap.sh
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}/opt/prometheus-slurm-exporter
rsync -av %{_topdir}/BUILD/prometheus-slurm-exporter/ %{buildroot}/opt/prometheus-slurm-exporter/
install -D -m644 %{_topdir}/BUILD/prometheus-slurm-exporter/systemd/prometheus-slurm-exporter-lsload.service %{buildroot}/%{_unitdir}/prometheus-slurm-exporter-lsload.service
install -D -m644 %{_topdir}/BUILD/prometheus-slurm-exporter/systemd/prometheus-slurm-exporter-sdiag.service %{buildroot}/%{_unitdir}/prometheus-slurm-exporter-sdiag.service
install -D -m644 %{_topdir}/BUILD/prometheus-slurm-exporter/systemd/prometheus-slurm-exporter-sshare.service %{buildroot}/%{_unitdir}/prometheus-slurm-exporter-sshare.service
install -D -m644 %{_topdir}/BUILD/prometheus-slurm-exporter/systemd/prometheus-slurm-exporter-seas.service %{buildroot}/%{_unitdir}/prometheus-slurm-exporter-seas.service
install -D -m644 %{_topdir}/BUILD/prometheus-slurm-exporter/systemd/prometheus-slurm-exporter-kempner.service %{buildroot}/%{_unitdir}/prometheus-slurm-exporter-kempner.service
install -D -m644 %{_topdir}/BUILD/prometheus-slurm-exporter/systemd/prometheus-slurm-exporter-klsload.service %{buildroot}/%{_unitdir}/prometheus-slurm-exporter-klsload.service
install -D -m644 %{_topdir}/BUILD/prometheus-slurm-exporter/systemd/prometheus-slurm-exporter-ksacct.service %{buildroot}/%{_unitdir}/prometheus-slurm-exporter-ksacct.service
%files
%defattr(-,root,root,-)
/opt/prometheus-slurm-exporter/*
%{_unitdir}/prometheus-slurm-exporter-lsload.service
%{_unitdir}/prometheus-slurm-exporter-sdiag.service
%{_unitdir}/prometheus-slurm-exporter-sshare.service
%{_unitdir}/prometheus-slurm-exporter-seas.service
%{_unitdir}/prometheus-slurm-exporter-kempner.service
%{_unitdir}/prometheus-slurm-exporter-klsload.service
%{_unitdir}/prometheus-slurm-exporter-ksacct.service
%changelog
* Mon Nov 4 2024 Paul Edmon <[email protected]>
- Adding Kempner sacct exporter
* Tue Aug 27 2024 Paul Edmon <[email protected]>
- Adding kempner exporters.
* Fri Dec 1 2023 Paul Edmon <[email protected]>
- Fixing bug.
* Tue Nov 28 2023 Paul Edmon <[email protected]>
- Added power monitoring.
* Fri Oct 20 2023 Paul Edmon <[email protected]>
- Initial version.