forked from cern-eos/eos_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheos_exporter.spec
92 lines (77 loc) · 3.07 KB
/
eos_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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#
# eos_exporter spec file
#
%define version _VERSION_
Name: eos_exporter
Summary: The Prometheus EOS exporter exposes EOS metrics.
Version: %{version}
Release: 1
License: AGPLv3
BuildRoot: %{_tmppath}/%{name}-buildroot
Group: CERN-IT/ST
BuildArch: x86_64
Source: %{name}-%{version}.tar.gz
BuildRequires: systemd
%description
This RPM provides a binary and a systemd unit to run the eos_exporter in the EOS instance's MGMs.
# Don't do any post-install weirdness, especially compiling .py files
%define __os_install_post %{nil}
%{?systemd_requires}
Requires: systemd
#Pre installation/upgrade of RPM section
%pre
%prep
%setup -n %{name}-%{version}
%install
# server versioning
# installation
rm -rf %buildroot/
mkdir -p %buildroot/usr/local/bin
mkdir -p %buildroot/opt/eos_exporter/bin
mkdir -p %buildroot/etc/logrotate.d
mkdir -p %buildroot/var/log/eos_exporter
install -m 755 eos_exporter %buildroot/opt/eos_exporter/bin/eos_exporter
install -D -m 644 %{name}.unit %{buildroot}%{_unitdir}/%{name}.service
%clean
rm -rf %buildroot/
%files
%defattr(-,root,root,-)
/var/log/eos_exporter/
/opt/eos_exporter/bin/*
%{_unitdir}/%{name}.service
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%changelog
* Tue Mar 07 2023 Roberto Valverde <[email protected]> 0.1.2-1
- Bugfix: crash when category error is specified in fsck repair
* Mon Mar 06 2023 Roberto Valverde <[email protected]> 0.1.1-1
- Fsck collector uses now eos fsck stat instead of fsck report for performance reasons.
- Fsck does not report by filesystem anymore, for performance reasons.
* Fri Mar 03 2023 Roberto Valverde <[email protected]> 0.1.0-1
- Mgm url gathered from EOS_MGM_ALIAS, removes dependency of CERN domain
- Added eos fsck collector for exposing fsck metrics
- Added missing metric freebytes@configRW on the space collector
- Updated Reame
* Tue Feb 03 2023 Roberto Valverde <[email protected]> 0.0.14-1
- Fixes problem of acumulation of eos who metrics
* Tue Jan 31 2023 Roberto Valverde <[email protected]> 0.0.13-1
- Added eos who metrics
- Added missing eos node metrics
* Mon Oct 17 2022 Roberto Valverde <[email protected]> 0.0.12-1
- Added eos recycle and eos who collectors.
* Thu Jun 24 2022 Aritz Brosa Iartza <[email protected]> 0.0.11-1
- Remove -a flag from eos ns stat (NS collector ~7s scrape time), excludes batch user info.
* Thu Jun 22 2022 Aritz Brosa Iartza <[email protected]> 0.0.10-1
- Fix NS collector, fix unmarshalling issues.
* Thu May 10 2022 Aritz Brosa Iartza <[email protected]> 0.0.9-1
- Add IO stat collector, with its metrics.
* Thu Apr 26 2022 Aritz Brosa Iartza <[email protected]> 0.0.8-1
- Introduce batch overload metrics.
* Thu Mar 09 2022 Aritz Brosa Iartza <[email protected]> 0.0.7-1
- Improve the release title for GitHub tagged-releases, and improve systemd unit logs.
* Thu Feb 22 2022 Aritz Brosa Iartza <[email protected]> 0.0.5-1
- First version that is not a pre-release with proper systemd unit.
* Thu Feb 17 2022 Aritz Brosa Iartza <[email protected]> 0.0.4-1
- First version with RPMs building enabled.