mjtrangoni
flexlm_exporter
Go

Prometheus exporter for FLEXlm License Manager information

Last updated Jun 30, 2026
94
Stars
44
Forks
17
Issues
0
Stars/day
Attention Score
46
Language breakdown
No language data available.
Files click to expand
README

FLEXlm Exporter Build Status

CircleCI [Docker Repository on Quay][quay] [Docker Pulls][hub] Go Reference Coverage Status Go Report Card License StyleCI

Prometheus exporter for FLEXlm License Manager lmstat license information.

If you are looking for other License Managers metrics (like rlm,lmx, and mathlm), please check the License Manager Exporter.

Install

go install github.com/mjtrangoni/flexlm_exporter

Building

cd $GOPATH/src/github.com/mjtrangoni/flexlm_exporter
make

Configuration

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 featurestoexclude: feature1,feature2 monitor_users: True monitor_reservations: True monitor_versions: False - name: app2 license_server: 28000@host1,28000@host2,28000@host3 featurestoinclude: feature5,feature30 monitor_users: True monitor_reservations: True monitor_versions: False

Notes:

1. It is possible to define a license with a path in license_file, that has to be readable from the exporter instance, or with license_server in a port@host combination format. 2. You can exclude some features from exporting with featurestoexclude, or export some defined and exclude the rest with featuretoinclude.

Running

./flexlm_exporter <flags>

Docker images

Docker images are available on,

1. Quay.io. $ docker pull quay.io/mjtrangoni/flexlm_exporter:latest 1. Docker. $ docker pull mjtrangoni/flexlm_exporter:latest 1. GHCR. $ docker pull ghcr.io/mjtrangoni/flexlm_exporter:latest

Please make sure that SELinux is not running in your host, or run the container as root.

You can launch a flexlm_exporter container with,

$ export DOCKERREPOSITORY="quay.io/mjtrangoni/flexlmexporter:latest"
$ export LMUTIL_LOCAL="PATH where your lmutil binary is located"
$ export C
$ docker run --name flexlm_exporter -d -p 9319:9319 \
    --volume $LMUTIL_LOCAL:/usr/bin/flexlm/ \
    --volume $CONFIGPATHLOCAL:/home/exporter/config/licenses.yml \
    $DOCKER_REPOSITORY --path.lmutil="/usr/bin/flexlm/lmutil" \
    --path.c

Metrics will now be reachable at .

What's exported?

1. lmutil lmstat -v information. 1. lmutil lmstat -c licensefile -a or lmutil lmstat -c licenseserver -a license information. 1. lmutil lmstat -c licensefile -i or lmutil lmstat -c licenseserver -i license features expiration date.

Dashboards

1. Grafana Dashboard

Alerting

Prometheus rules

Prometheus rules for alerting with Prometheus Alertmanager.

groups:
  • name: FlexLM
rules: - alert: FlexLmServerDown expr: flexlmserverstatus == 0 for: 5m labels: severity: error annotations: summary: "Flexlm Error (instance {{ $labels.instance }})" description: "FlexLm {{ $labels.collector }} was not successful\n VALUE = {{ $value }}\n LABELS: {{ $labels }}" - alert: LicenceAvailable expr: 100*(flexlmfeatureused / flexlmfeatureissued) > 95 for: 5m labels: severity: warning annotations: summary: "Licence Available Status (instance {{ $labels.instance }})" description: "Licence fully used \n VALUE = {{ $value }}\n LABELS: {{ $labels }}" - alert: LicenseExpiring expr: ((flexlmfeatureexpiration_seconds - time()) / 86400) < 14 for: 30m labels: severity: warning annotations: summary: License {{ $labels.app }} expiring soon on {{ $labels.instance }} description: License {{ $labels.app }} on {{ $labels.instance }} has {{ $labels.features }} features ({{ $labels.licenses }} licenses) expiring in {{ $value }} days

Contributing

Refer to CONTRIBUTING.md

License

Apache License 2.0, see LICENSE.

[hub]: https://hub.docker.com/r/mjtrangoni/flexlm_exporter/ [quay]: https://quay.io/repository/mjtrangoni/flexlm_exporter

🔗 More in this category

© 2026 GitRepoTrend · mjtrangoni/flexlm_exporter · Updated daily from GitHub