Prometheus exporter for FLEXlm License Manager
lmstat
license information.
$ go get github.com/mjtrangoni/flexlm_exporter
$ cd $GOPATH/src/github.com/mjtrangoni/flexlm_exporter
$ make
This is an illustrative example of the configuration file in YAML format.
# FlexLM Licenses to be monitored.
---
licenses:
- name: app1
license_file: /usr/local/flexlm/licenses/license.dat.app1
features_to_exclude: feature1,feature2
monitor_users: True
monitor_reservations: True
- name: app2
license_server: 28000@host1,28000@host2,28000@host3
features_to_include: feature5,feature30
monitor_users: True
monitor_reservations: True
Notes:
- It is possible to define a license with a path in
license_file
, that has to be readable from the exporter instance, or withlicense_server
in aport@host
combination format. - You can exclude some features from exporting with
features_to_exclude
, or export some defined and exclude the rest withfeature_to_include
.
$ ./flexlm_exporter <flags>
Docker images are available on,
- Quay.io.
$ docker pull quay.io/mjtrangoni/flexlm_exporter
- Docker.
$ docker pull mjtrangoni/flexlm_exporter
You can launch a flexlm_exporter container with,
$ docker run --name flexlm_exporter -d -p 9319:9319 --volume $LMUTIL_LOCAL:/usr/bin/flexlm/ --volume $CONFIG_PATH_LOCAL:/config $DOCKER_REPOSITORY --path.lmutil="/usr/bin/flexlm/lmutil" --path.config="/config/licenses.yml"
Metrics will now be reachable at http://localhost:9319/metrics.
lmutil lmstat -v
information.lmutil lmstat -c license_file -a
orlmutil lmstat -c license_server -a
license information.lmutil lmstat -c license_file -i
orlmutil lmstat -c license_server -i
license features expiration date.
Refer to CONTRIBUTING.md
Apache License 2.0, see LICENSE.