Prometheus metrics collector and exporter for RLM (Reprise License Manager)
Project description
RLM-Prometheus
Prometheus exporter providing metrics from a Reprise License Manager (RLM) instance.
Installation
Example installation on Debian / Ubuntu:
# required for creating Python virtualenvs:
apt install python3-venv
# create a virtualenv in /opt:
python3 -m venv /opt/rlm-exporter
# update 'pip' and install the 'rlm-exporter' package:
/opt/rlm-exporter/bin/pip install --upgrade pip
/opt/rlm-exporter/bin/pip install rlm-exporter
Running as a service
adduser --system rlmexporter
cp -v /opt/rlm-exporter/lib/python*/site-packages/resources/systemd/rlm-exporter.service /etc/systemd/system/
systemctl daemon-reload
systemctl edit rlm-exporter.service
The last command will open an editor with the override configuration of the
service's unit file. Add a section like this at the top of the override
file, with the bare minimum of setting RLM_ISV
and most likely also RLM_URI
:
[Service]
### specific configuration for the RLM exporter service:
Environment=RLM_ISV=example_isv
Environment=RLM_URI=http://license-server.example.xy:5054
Finally enable the service and start it right away. The second line will show
the log messages on the console until Ctrl+C
is pressed. This way you should
be able to tell if the service has started up properly and is providing metrics
on the configured port:
systemctl enable --now rlm-exporter.service
journalctl --follow --unit rlm-exporter
Firewall settings for RLM on Windows
For the metrics collection it is obviously necessary the exporter can gather data from your RLM instance. The standard approach is to send requests to RLM's built-in web server. By default access to it is blocked and those restrictions should not be lifted more than necessary.
There is an example snippet in Open-RlmFirewallPort.ps1 that demonstrates how to adjust the Windows firewall so the collector's host IP address is allowed to connect to RLM.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for rlm_prometheus-0.1.1rc0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43b109e8a1ea350b570936ad47143745ff5bc7700e9d6705e8b8fe3ae7a2ba23 |
|
MD5 | 9548b53d7fbf99783fa18fa087e4ea29 |
|
BLAKE2b-256 | feed4b7b8d25bdd7ab98c0c4618a57eb85fed93e2c78f7b9916c271d276ca9bc |