-
Notifications
You must be signed in to change notification settings - Fork 4
/
eos_exporter.spec
116 lines (101 loc) · 4.35 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#
# eos_exporter spec file
#
%define version 0.1.14
Name: eos_exporter
Summary: The Prometheus EOS exporter exposes EOS metrics.
Version: %{version}
Release: 1%{?dist}
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
* Wed Oct 16 2024 Maria Arsuaga Rios <[email protected]> 0.1.14-1
- Adding EC categories for fsck
* Wed Aug 21 2024 Hugo Gonzalez Labrador <[email protected]> 0.1.13-1
- Fix CI by using new docker runners
* Tue Aug 20 2024 Hugo Gonzalez Labrador <[email protected]> 0.1.12-1
- Fix CI
* Tue Aug 20 2024 Hugo Gonzalez Labrador <[email protected]> 0.1.11-1
- Add quotas exporter
* Mon Jun 3 2024 Cedric Caffy <[email protected]> 0.1.8-1
- Adds new eos inspector metrics as access time volume and files, birthtime and cost per group.
- Adds qclient metrics
- Package name includes the OS distribution
* Thu Feb 8 2024 Hugo Gonzalez <[email protected]> 0.1.7-1
- Adds new eos inspector collector and volume per layout metrics
* Mon Jan 22 2024 Roberto Valverde <[email protected]> 0.1.6-1
- Adds new eos inspector collector and volume per layout metrics
* Thu Nov 09 2023 Roberto Valverde <[email protected]> 0.1.5-1
- Add metric reset to do not report on removed node/fs
- Add eos fusex collector with mount info
* Wed Aug 16 2023 Roberto Valverde <[email protected]> 0.1.4-1
- Stability improvements
- Removal of eos_vs collector
* Mon Jul 10 2023 Roberto Valverde <[email protected]> 0.1.3-1
- Bugfix: Fixes unmarshal errors when space nominal quota is not defined.
* 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.