mjtrangoni / flexlm_exporter

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

Data more two days aren't keeping #107

Closed fabriciolelis closed 9 months ago

fabriciolelis commented 9 months ago

What did you do?

I'm using the last version of the docker image.

What did you expect to see?

I can only visualize the last two days' license usage.

What did you see instead? Under which circumstances?

I'd like to see more than two days' license usage.

System information

Linux 4.15.0-213-generic x86_64

FlexLM Server information

No response

FlexLM Exporter version

flexlm_exporter, version 0.0.12 (branch: HEAD, revision: e2d706c598274dbd8050e8893bde69eb00b6d040)
  build user:       circleci@466860c5924b
  build date:       20240218-16:57:49
  go version:       go1.21.7
  platform:         linux/amd64
  tags:             netgo static_build

FlexLM Exporter configuration file

licenses:
  - name: 
    license_file: 
    monitor_users: True
    monitor_reservations: True
    monitor_versions: False

Logs

ts=2024-02-19T10:45:37.889Z caller=flexlm_exporter.go:201 level=info msg="Starting flexlm_exporter" version="(version=0.0.12, branch=HEAD, revision=e2d706c598274dbd8050e8893bde69eb00b6d040)"
ts=2024-02-19T10:45:37.889Z caller=flexlm_exporter.go:202 level=info msg="Build context" build_context="(go=go1.21.7, platform=linux/amd64, user=circleci@466860c5924b, date=20240218-16:57:49, tags=netgo static_build)"
ts=2024-02-19T10:45:37.890Z caller=flexlm_exporter.go:125 level=info msg="Enabled collectors"
ts=2024-02-19T10:45:37.890Z caller=flexlm_exporter.go:136 level=info collector=lmstat
ts=2024-02-19T10:45:37.890Z caller=flexlm_exporter.go:136 level=info collector=lmstat_feature_exp
ts=2024-02-19T10:45:37.890Z caller=config.go:48 level=info msg="Loading license config file:"
ts=2024-02-19T10:45:37.890Z caller=config.go:49 level=info -=/home/exporter/config/licenses.yml
ts=2024-02-19T10:45:37.890Z caller=tls_config.go:313 level=info msg="Listening on" address=[::]:9319
ts=2024-02-19T10:45:37.890Z caller=tls_config.go:316 level=info msg="TLS is disabled." http2=false address=[::]:9319
mjtrangoni commented 9 months ago

Hi @fabriciolelis, A prometheus exporter does not store any metric, just expose them all at the /metrics endpoint. You should better look at your prometheus backend retention time. See for example here.