flexlm_exporter icon indicating copy to clipboard operation
flexlm_exporter copied to clipboard

Pretty names for features

Open pfranz opened this issue 6 years ago • 4 comments

I'm not sure if this is the case for all flexlm features, but Autodesk's are so cryptic they provide a rather beefy lookup table: https://knowledge.autodesk.com/customer-service/network-license-administration/managing-network-licenses/interpreting-your-license-file/feature-codes/2018-flexnet-feature-codes

Due to how they're issued to us, the Grafana Dashboard was a bit overwhelming that I hadn't noticed I was missing a bunch of data. A dashboard of pretty names would help me figure out what to include/exclude so I can slim things down.

How would you recommend I get a "pretty" name into Grafana? Right now I'm just writing them into the charts by hand. Would it make sense to have a lookup table in the preferences similar to how snmp_exporter does it?

pfranz avatar Jun 28 '19 17:06 pfranz

Hi @pfranz, I like the idea, and something like the snmp_exporter would be great. The only thing would be making this optional (disabled per default), as all feature that I have are readable out-of-the-box. Would you like to send me a PR or should I implement it?

mjtrangoni avatar Jun 29 '19 14:06 mjtrangoni

I was definitely intending for this to be optional. To be clear, I was thinking of having it be a separate label instead of overwriting "name." As an example result: flexlm_feature_issued{app="juno.lax",name="86988A250_2018_0F",pretty_name="Autodesk Flame 2018"} 2 but I'm not well versed in Prometheus best practices.

I'd be happy if you had time to implement it. I'm not too competent with Go or attached to a specific implementation, but if you're busy I can take a stab at it.

pfranz avatar Jun 30 '19 06:06 pfranz

@pfranz Could you please send me one Autodesk flexlm output per email or redacted it you like, so I can use it for testing the new feature? FYI: The pretty name will be replacing the name label, as we need to save labels.

mjtrangoni avatar Jul 07 '19 19:07 mjtrangoni

I could also use this feature.
Here is the metrics output of the flexlm exporter for autodesk: autodesk_metrics_redacted.txt

Maybe a more flexible way to implement this, would be to let the user (optionally) specify the lookup table (e.g. as csv file), which will be used to translate the feature names. If the list were hard coded it would require frequent updates, since Autodesk adds new feature codes every year.

Here is the list for 2020: https://knowledge.autodesk.com/customer-service/network-license-administration/managing-network-licenses/interpreting-your-license-file/feature-codes/2020-flexnet-feature-codes

csrichter avatar Mar 30 '20 14:03 csrichter