mjtrangoni / flexlm_exporter

Prometheus exporter for FLEXlm License Manager information
Apache License 2.0
83 stars 30 forks source link

FlexLM exporter is unable to report "issued and usage" metrics for some features of a EDA license vendor #144

Open puneet336 opened 1 month ago

puneet336 commented 1 month ago

What did you do?

I am running flexlm exporter to track the license usage in our EDA environment. I noticed that since last 2 months , the flexLM exporter is unable to report features usage data for some License features.

We tried getting the latest release by compiling the binary from source code . but that too did not help.

here's how the graph looks -

What did you expect to see?

/license/synopsys/lmutil lmstat -c /license/synopsys/license.dat -a | grep -E -e "Users of (PrimeTime|ECO-BASE|SSST)"

flexlm_feature_issued and flexlm_feature_used metrics for all the following features

image

SO many features are active and under use, but graph shows opposite picture - image

What did you see instead? Under which circumstances?

only ECO_BASE and SSST feature usage is being reported by exporter

image

though i can see other Feature's expiry information data , example - PrimeTime image

System information

Centos 7 3.10.0-1160.42.2.el7.x86_64

FlexLM Server information

lmutil - Copyright (c) 1989-2024 Flexera. All Rights Reserved.
lmstat v11.19.6.0 build 293152 x64_linux

FlexLM Exporter version

flexlm_exporter, version  (branch: non-git, revision: non-git)
  build user:       user@server
  build date:       20240925-14:12:00
  go version:       go1.21.2
  platform:         linux/amd64
  tags:             netgo static_build

flexlm_exporter, version 0.0.10 (branch: HEAD, revision: 2db4628f16dd4fb2876ef3ab5c0115e7a90be21f)
  build user:       circleci@534b05f47c40
  build date:       20231128-14:55:26
  go version:       go1.21.4
  platform:         linux/amd64
  tags:             netgo static_build

FlexLM Exporter configuration file

licenses:
  - name: synopsys
    license_file: /license/synopsys/license.dat
    monitor_users: True
    monitor_reservations: True
    monitor_versions: False

Logs

[root@server flexlm_exporter-0.0.12]# ./flexlm_exporter --path.lmutil=/license/synopsys/lmutil --path.config=/configs/snps/licenses.yml --web.listen-address=:9000 --log.level=debug
ts=2024-09-25T14:51:51.236Z caller=flexlm_exporter.go:201 level=info msg="Starting flexlm_exporter" version="(version=, branch=non-git, revision=non-git)"
ts=2024-09-25T14:51:51.236Z caller=flexlm_exporter.go:202 level=info msg="Build context" build_context="(go=go1.21.2, platform=linux/amd64, user=user1@server, date=20240925-14:12:00, tags=netgo static_build)"
ts=2024-09-25T14:51:51.236Z caller=flexlm_exporter.go:204 level=warn msg="FLEXlm Exporter is running as root user. This exporter is designed to run as unprivileged user, root is not required."
ts=2024-09-25T14:51:51.237Z caller=flexlm_exporter.go:125 level=info msg="Enabled collectors"
ts=2024-09-25T14:51:51.237Z caller=flexlm_exporter.go:136 level=info collector=lmstat
ts=2024-09-25T14:51:51.237Z caller=flexlm_exporter.go:136 level=info collector=lmstat_feature_exp
ts=2024-09-25T14:51:51.237Z caller=config.go:48 level=info msg="Loading license config file:"
ts=2024-09-25T14:51:51.237Z caller=config.go:49 level=info -=/configs/snps/licenses.yml
ts=2024-09-25T14:51:51.240Z caller=tls_config.go:313 level=info msg="Listening on" address=[::]:9000
ts=2024-09-25T14:51:51.240Z caller=tls_config.go:316 level=info msg="TLS is disabled." http2=false address=[::]:9000
ts=2024-09-25T14:51:59.870Z caller=flexlm_exporter.go:91 level=debug msg="collect query:" filters="unsupported value type"
ts=2024-09-25T14:52:00.095Z caller=lmstat_feature_exp.go:109 level=debug collector=lmstat_feature_exp
ts=2024-09-25T14:52:00.095Z caller=lmstat_feature_exp.go:109 level=debug collector=lmstat_feature_exp
ts=2024-09-25T14:52:00.095Z caller=lmstat_feature_exp.go:109 level=debug collector=lmstat_feature_exp
ts=2024-09-25T14:52:00.095Z caller=lmstat_feature_exp.go:109 level=debug collector=lmstat_feature_exp
ts=2024-09-25T14:52:00.095Z caller=lmstat_feature_exp.go:109 level=debug collector=lmstat_feature_exp
ts=2024-09-25T14:52:00.095Z caller=lmstat_feature_exp.go:109 level=debug collector=lmstat_feature_exp
ts=2024-09-25T14:52:00.095Z caller=lmstat_feature_exp.go:109 level=debug collector=lmstat_feature_exp
ts=2024-09-25T14:52:00.095Z caller=lmstat_feature_exp.go:109 level=debug collector=lmstat_feature_exp
.......
ts=2024-09-25T14:52:00.117Z caller=collector.go:182 level=debug OK:=lmstat_feature_exp collectorsucceededafter:=0.245750564
ts=2024-09-25T14:52:03.918Z caller=collector.go:182 level=debug OK:=lmstat collectorsucceededafter:=4.04588118