Package: prometheus-node-exporter-collectors
X-Debbugs-Cc: xavier.mehrenber...@airbus.com
Version: 0+git20210115.7d89f19-1
Severity: important

Dear Maintainer,

I run a system with the default locale set to LANG=fr_FR.UTF-8.

Because of this, prometheus-node-exporter-smartmon.service generates a
metrics textfile (/var/lib/prometheus/node-exporter/smartmon.prom) that
has numbers formatted in a way that prometheus-node-exporter is unable to
parse, such as:

smartmon_airflow_temperature_cel_raw_value{disk="/dev/sda",type="sat",smart_id="190"}
2,800000e+01

To fix this temporarily, I edited the service file (systemctl edit
--full prometheus-node-exporter-smartmon.service) and added the
following line to the [Service] section:

Environment=LANG=C.UTF-8

After that, generated smartmon.prom files have numbers formatted with a
'.' as decimal separator, and prometheus-node-exporter parses them
properly.

-- System Information:
Debian Release: 11.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-8-amd64 (SMP w/2 CPU threads)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages prometheus-node-exporter-collectors depends on:
ii  daemon                    0.7-1
ii  moreutils                 0.65-1
ii  prometheus-node-exporter  1.1.2+ds-2.1
ii  systemd-sysv              247.3-6

Versions of packages prometheus-node-exporter-collectors recommends:
ii  dbus           1.12.20-2
ii  python3        3.9.2-3
ii  smartmontools  7.2-1

prometheus-node-exporter-collectors suggests no packages.

-- no debconf information
The information in this e-mail is confidential. The contents may not be 
disclosed or used by anyone other than the addressee. Access to this e-mail by 
anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and 
delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of 
this e-mail as it has been sent over public networks. If you have any concerns 
over the content of this message or its Accuracy or Integrity, please contact 
Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus 
scanning software but you should take whatever measures you deem to be 
appropriate to ensure that this message and any attachments are virus free.

Reply via email to