Open gbeyer3 opened 3 years ago
Hi,
This module currently need to be installed manually with pip3 install prometheus-client
.
python2 support for this program was removed in the latest release, previously this was using python2-prometheus_client
from epel to provide this module and there are no python3-prometheus_client
available on Centos 7.
A small warning was placed in the README.md in this commit https://github.com/guilbaults/infiniband-exporter/commit/20dcf98d44552a58aed8105bab2a70a1610fdd7d
The upstream module: https://pypi.org/project/prometheus-client/
Hi,
you can also use Miniconda for resolving dependencies in Python.
It is a great tool. I just use the installer and then manage the dependencies.
With that you can also get different Python versions and environments running easily.
I have written some notes about that here.
The prometheus_client is also available there:
$ conda search prometheus
prometheus. Search: *prometheus*
# Name Version Build Channel
...
prometheus_client 0.10.0 pyhd3eb1b0_0 pkgs/main
prometheus_client 0.10.1 pyhd3eb1b0_0 pkgs/main
prometheus_client 0.11.0 pyhd3eb1b0_0 pkgs/main
Hello, I'm getting an error when attempting to start the infiniband exporter service:
Started Infiniband_exporter. Aug 11 14:20:42 \ python3[374627]: Traceback (most recent call last):
Aug 11 14:20:42 \ python3[374627]: File "/usr/bin/infiniband_exporter.py", line 12, in
Aug 11 14:20:42 \ python3[374627]: from prometheus_client.core import CounterMetricFamily, GaugeMetricFamily
Aug 11 14:20:42 \ python3[374627]: ModuleNotFoundError: No module named 'prometheus_client'
Aug 11 14:20:42 \ systemd[1]: infiniband_exporter.service: main process exited, code=exited, status=1/FAILURE
Aug 11 14:20:42 \ systemd[1]: Unit infiniband_exporter.service entered failed state.
Aug 11 14:20:42 \ systemd[1]: infiniband_exporter.service failed.
Is there a dependency that I am missing - CounterMetricFamily, GaugeMetricFamily ? If so, where do I get it?
i'm using v 0.0.4
Thanks