Bug 1929798 - Package needed for EPEL 7 and 8
Summary: Package needed for EPEL 7 and 8
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: golang-github-prometheus
Version: 34
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-17 16:43 UTC by nicolas.baratto
Modified: 2021-03-28 18:14 UTC (History)
4 users (show)

Fixed In Version: golang-github-prometheus-2.24.1-3.el8.1 golang-github-prometheus-2.24.1-3.el7.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-07 15:44:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description nicolas.baratto 2021-02-17 16:43:25 UTC
Is it possible to add the package to EPEL 7 and 8 ? Moreover node exporter is also a need. I found something here https://copr.fedorainfracloud.org/coprs/rtsisyk/prometheus-node-exporter/  but it doesn't seem to be maintained anymore.

Prometheus node exporter : https://github.com/prometheus/node_exporter

Comment 1 Robert-André Mauchin 🐧 2021-02-17 22:53:28 UTC
This is in good way, I have prepared the build for EPEL7 and 8 for prometheus (I assume you don't need to use it as a library so I only packaged the binary).

For node_exporter, I've built the new deps (only 2) for Fedora and prepared it also for EPEL. However I don't know if some kind of default configuration is needed. I might need to add a Systemd file.

Comment 2 Robert-André Mauchin 🐧 2021-02-18 00:02:46 UTC
Ok I have systemd and set up a node_exporter user as described in https://github.com/prometheus/node_exporter/tree/master/examples/systemd

Now I need to wait for the scm requests for the new branches to be processed.

Comment 3 nicolas.baratto 2021-02-18 09:17:19 UTC
It is an excellent news ! Thanks

Comment 4 Fedora Update System 2021-02-20 01:12:41 UTC
FEDORA-EPEL-2021-fb2ae94f8a has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-fb2ae94f8a

Comment 5 Fedora Update System 2021-02-20 01:24:40 UTC
FEDORA-EPEL-2021-0780b85304 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-0780b85304

Comment 6 Fedora Update System 2021-02-21 01:53:14 UTC
FEDORA-EPEL-2021-fb2ae94f8a has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-fb2ae94f8a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-02-21 01:59:11 UTC
FEDORA-EPEL-2021-0780b85304 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-0780b85304

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Robert-André Mauchin 🐧 2021-03-04 11:40:31 UTC
(In reply to nicolas.baratto from comment #3)
> It is an excellent news ! Thanks

I've built golang-github-prometheus-node-exporter on F33-35 and EPEL7/8. It should be available on EPEL within 2 weeks after testing.

Comment 9 nicolas.baratto 2021-03-04 12:34:34 UTC
(In reply to Robert-André Mauchin 🐧 from comment #8)
> (In reply to nicolas.baratto from comment #3)
> > It is an excellent news ! Thanks
> 
> I've built golang-github-prometheus-node-exporter on F33-35 and EPEL7/8. It
> should be available on EPEL within 2 weeks after testing.

Excellent, I can already test the both packages in testing. Thanks

Comment 10 Fedora Update System 2021-03-07 15:44:08 UTC
FEDORA-EPEL-2021-fb2ae94f8a has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2021-03-07 15:47:39 UTC
FEDORA-EPEL-2021-0780b85304 has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 David Taillois 2021-03-25 09:49:29 UTC
Hello, 

I think that there is a bug on the package golang-github-prometheus-node-exporter-1.1.1-1.el8.x86_64

After his installation the executable node_exporter is put in /usr/bin/node_exporter. 
But on the configuration file /etc/systemd/system/node_exporter.service , the executable is set on /usr/sbin/node_exporter. So the service node-exporter.service can't start without changing the executable path. 

A made manually the change and it's work. 

Thanks for your feedback. 

David T

Comment 13 David Taillois 2021-03-25 09:57:26 UTC
Hello, 

Also i forget to ask  sorry. Regarding the package golang-github-prometheus-2.24.1-3.el8.1.x86_64

Could it be possible on the futur to be able to reload the service prometheus.service ? 

sudo systemctl reload prometheus.service
Failed to reload prometheus.service: Job type reload is not applicable for unit prometheus.service.


Many thanks

David T

Comment 14 Robert-André Mauchin 🐧 2021-03-28 18:14:20 UTC
(In reply to David Taillois from comment #12)
> Hello, 
> 
> I think that there is a bug on the package
> golang-github-prometheus-node-exporter-1.1.1-1.el8.x86_64
> 
> After his installation the executable node_exporter is put in
> /usr/bin/node_exporter. 
> But on the configuration file /etc/systemd/system/node_exporter.service ,
> the executable is set on /usr/sbin/node_exporter. So the service
> node-exporter.service can't start without changing the executable path. 
> 
> A made manually the change and it's work. 
> 
> Thanks for your feedback. 
> 
> David T

I've pushed an update with this.

(In reply to David Taillois from comment #13)
> Hello, 
> 
> Also i forget to ask  sorry. Regarding the package
> golang-github-prometheus-2.24.1-3.el8.1.x86_64
> 
> Could it be possible on the futur to be able to reload the service
> prometheus.service ? 
> 
> sudo systemctl reload prometheus.service
> Failed to reload prometheus.service: Job type reload is not applicable for
> unit prometheus.service.
> 
> 
> Many thanks
> 
> David T

Not really a specialist of service files, I took hints from Arch and Debian:

[Unit]
Description=Prometheus service monitoring system and time series database
Documentation=https://prometheus.io/docs/introduction/overview/ man:prometheus(1)
Wants=network-online.target
After=network-online.target

[Service]
Restart=on-failure
EnvironmentFile=/etc/sysconfig/prometheus
User=prometheus
Group=prometheus
ExecStart=/usr/bin/prometheus \
          --config.file=${CONFIG_FILE} \
          --storage.tsdb.path=${STORAGE_TSDB_PATH} \
          --web.console.libraries=${WEB_CONSOLE_LIBRARIES_PATH} \
          --web.console.templates=${WEB_CONSOLE_TEMPLATES_PATH} \
          --web.listen-address=${WEB_LISTEN_ADDRESS}
ExecReload=/bin/kill -HUP $MAINPID
TimeoutStopSec=20s
SendSIGKILL=no

[Install]
WantedBy=multi-user.target


Note You need to log in before you can comment on or make changes to this bug.