-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding rpms for EL8 and EL9 and changelog for 0.0.6 and 0.0.7 (#53)
* Improving rpm build script and adding support for EL8 and EL9 * Adding release 0.0.7
- Loading branch information
1 parent
22342f2
commit 12e7b2d
Showing
7 changed files
with
151 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: RPM Build centos7 | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Package RPM and SRPM | ||
uses: guilbaults/rpm-package-action@centos | ||
with: | ||
path: . | ||
spec: infiniband-exporter-el7.spec | ||
distro: centos-7 | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: output/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: RPM Build rocky8 | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Package RPM and SRPM | ||
uses: xmidt-org/rpm-package-action@v1 | ||
with: | ||
path: . | ||
spec: infiniband-exporter-el8.spec | ||
distro: rocky-8 | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: output/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: RPM Build rocky9 | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Package RPM and SRPM | ||
uses: guilbaults/rpm-package-action@centos | ||
with: | ||
path: . | ||
spec: infiniband-exporter-el9.spec | ||
distro: rocky-9 | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: output/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
Name: infiniband-exporter | ||
Version: 0.0.7 | ||
%global gittag 0.0.7 | ||
Release: 1%{?dist} | ||
Summary: Prometheus exporter for a Infiniband Fabric | ||
|
||
License: Apache License 2.0 | ||
URL: https://github.com/guilbaults/infiniband-exporter | ||
Source0: https://github.com/guilbaults/%{name}/archive/v%{gittag}/%{name}-%{version}.tar.gz | ||
|
||
BuildArch: noarch | ||
BuildRequires: systemd | ||
Requires: python3 | ||
Requires: infiniband-diags | ||
|
||
%description | ||
Prometheus exporter for a Infiniband fabric. This exporter only need to be installed on one server connected to the fabric, it will collect all the ports statistics on all the switches. | ||
|
||
Metrics are identified by type, port number, switch GUID and name. The remote connection of each port is also collected. Thus each metric represents a cable between 2 switches, or between a switch and a card in a server. | ||
|
||
When a node name map file is provided, it will be used by ibquerryerror to put a more human friendly name on switches. | ||
|
||
This exporter takes 3 seconds to collect the information of 60+ IB switches, and 900+ compute nodes. The information takes about 7.5MB in ASCII format for that fabric. | ||
|
||
%prep | ||
%autosetup -n %{name}-%{gittag} | ||
%setup -q | ||
|
||
%build | ||
|
||
%install | ||
mkdir -p %{buildroot}/%{_bindir} | ||
mkdir -p %{buildroot}/%{_unitdir} | ||
|
||
install -m 0755 %{name}.py %{buildroot}/%{_bindir}/%{name} | ||
install -m 0644 infiniband-exporter.service %{buildroot}/%{_unitdir}/infiniband-exporter.service | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%files | ||
%{_bindir}/%{name} | ||
%{_unitdir}/infiniband-exporter.service | ||
|
||
%changelog | ||
* Tue Dec 12 2023 Simon Guilbault <simon.guilbault@calculquebec.ca> 0.0.7-1 | ||
- Building RPM for EL9 | ||
* Thu Jan 21 2022 Simon Guilbault <simon.guilbault@calculquebec.ca> 0.0.6-1 | ||
- Adding PortXmitConstraintErrors, PortMalformedPktErrors and PortSwLifetimeLimitDiscards | ||
* Mon Nov 22 2021 Simon Guilbault <simon.guilbault@calculquebec.ca> 0.0.5-1 | ||
- Implement PortSwHOQLifetimeLimitDiscards metric | ||
* Mon Aug 02 2021 Simon Guilbault <simon.guilbault@calculquebec.ca> 0.0.4-1 | ||
- Deprecated python2 | ||
- Adding client HCA stats | ||
- Adding scrape errors handling | ||
* Fri Apr 09 2021 Simon Guilbault <simon.guilbault@calculquebec.ca> 0.0.3-1 | ||
- Adding ca_name option | ||
- Adding a real logging output instead of print() | ||
- Adding scrape duration and status | ||
- Detect when ibqueryerrors is not executable | ||
* Mon Mar 30 2020 Simon Guilbault <simon.guilbault@calculquebec.ca> 0.0.2-1 | ||
- Fixing counter reset using python subprocess.Popen() | ||
* Fri Mar 20 2020 Simon Guilbault <simon.guilbault@calculquebec.ca> 0.0.1-1 | ||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters