zhmcclient / zhmc-prometheus-exporter

A Prometheus exporter for the IBM Z HMC
Apache License 2.0
11 stars 8 forks source link

Got tons of Jinja2 expression messages after the exporter started #488

Closed cheeye closed 3 months ago

cheeye commented 3 months ago

Describe the bug Got tons of messages like below:

Ignoring label 'value' on metric with exporter name 'storage_groups' due to error in rendering the Jinja2 expression in its value: KeyError: '/api/storage-groups/646e5dd6-ba10-11eb-a480-00106f23b391'

To Reproduce Starting the exporter.

Environment information

Command output zhmc_prometheus_exporter

andy-maier commented 3 months ago

@cheeye These warnings should not affect the function of the exporter, other than not adding the "value" label to the "zhmc_partition_storage_groups" metric. I will look into it.

andy-maier commented 3 months ago

@cheeye provided zhmc exporter log files to me. Unfortunately, the log records in there are not sufficient for me to understand the issue.

I have added additional details when this happens, that are printed on the output and also put into the zhmc exporter log. That is in PR #498 and will be in the upcoming version 1.6.0 (to be released soon).

andy-maier commented 3 months ago

I am closing this ticket. Version 1.6.0 of the zhmc exporter has been released today. It produces debug output (to both standard out and to the log file) in case the issue with the Jinja2 expressions happens again. In case it happens again, please open a new issue and provide the complete log file with --log-comp hmc=debug set.