You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.1 KiB
65 lines
2.1 KiB
Name: prometheus
|
|
Version: 2.25.0
|
|
Release: itix1
|
|
Summary: The Prometheus monitoring system and time series database.
|
|
License: Apache-2.0
|
|
Source0: https://github.com/prometheus/%{name}/releases/download/v%{version}/%{name}-%{version}.linux-amd64.tar.gz
|
|
Source1: prometheus.service
|
|
ExclusiveArch: x86_64
|
|
Requires(pre): shadow-utils
|
|
BuildRequires: systemd
|
|
|
|
%description
|
|
|
|
Prometheus, a Cloud Native Computing Foundation project, is a systems and
|
|
service monitoring system. It collects metrics from configured targets at
|
|
given intervals, evaluates rule expressions, displays the results, and can
|
|
trigger alerts when specified conditions are observed.
|
|
|
|
# Since we don't recompile from source, disable the build_id checking
|
|
%global _missing_build_ids_terminate_build 0
|
|
%global _build_id_links none
|
|
%global debug_package %{nil}
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}.linux-amd64
|
|
cp %{S:1} %{name}.service
|
|
|
|
%build
|
|
rm NOTICE
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/srv/%{name}
|
|
install -D prometheus %{buildroot}/opt/%{name}/bin/prometheus
|
|
install -D promtool %{buildroot}/opt/%{name}/bin/promtool
|
|
install -D -m 0644 consoles/* -t %{buildroot}/opt/%{name}/bin/consoles/
|
|
install -D -m 0644 console_libraries/* -t %{buildroot}/opt/%{name}/bin/console_libraries/
|
|
install -D -m 0644 prometheus.yml %{buildroot}/opt/%{name}/etc/prometheus.yaml
|
|
install -D -m 0644 %{name}.service %{buildroot}/%{_unitdir}/%{name}.service
|
|
|
|
%files
|
|
%defattr(0644, root, root, 0755)
|
|
%license LICENSE
|
|
%dir /opt/%{name}/bin/
|
|
%dir /opt/%{name}/bin/consoles/
|
|
%dir /opt/%{name}/bin/console_libraries/
|
|
%dir /opt/%{name}/etc/
|
|
%dir /srv/%{name}/
|
|
%attr(0644, root, root) /opt/%{name}/bin/prometheus
|
|
%attr(0644, root, root) /opt/%{name}/bin/promtool
|
|
/opt/%{name}/bin/consoles/*
|
|
/opt/%{name}/bin/console_libraries/*
|
|
%config /opt/%{name}/etc/prometheus.yaml
|
|
%{_unitdir}/%{name}.service
|
|
|
|
%pre
|
|
getent group itix-svc >/dev/null || groupadd -r itix-svc
|
|
getent passwd %{name} >/dev/null || useradd -r -g itix-svc \
|
|
-d /srv/%{name} -s /sbin/nologin -c "Prometheus monitoring" \
|
|
%{name}
|
|
|
|
exit 0
|
|
|
|
%changelog
|
|
* Mon Feb 22 2021 Nicolas MASSE <nicolas.masse@itix.fr> - 2.25.0-itix1
|
|
- First release
|
|
|