Skip to content

Textfile phrasing error containing "  #3164

@Kn0lc

Description

@Kn0lc

Host operating system: output of uname -a

Linux fedora-server 6.11.4-201.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Oct 20 15:04:22 UTC 2024 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

node_exporter, version 1.8.2 (branch: tarball, revision: 1.fc40)
build user:
build date: 20240714
go version: go1.22.5
platform: linux/amd64
tags: rpm_crashtraceback,netgo,osusergo,static_build

node_exporter command line flags

/usr/bin/prometheus-node-exporter --collector.textfile.directory /var/lib/node_exporter/textfile_collector/

node_exporter log output

Okt 24 22:28:43 fedora-server prometheus-node-exporter[20502]: ts=2024-10-24T20:28:43.595Z caller=textfile.go:245 level=error collector=textfile msg="failed to collect textfile data" file=smart_metrics.prom err="failed to parse textfile data from "/var/lib/node_exporter/textfile_collector/smart_metrics.prom": text format parsing error in line 89: unexpected end of label value "Toshiba 25""

Line 89 in the Text file:
smartmon_device_info{disk="/dev/sdl",type="sat",model_family="Toshiba 2.5" HDD MQ01ABD...",model_name="TOSHIBA MQ01ABD100",device_model="",serial_number="54EOTUN8T",firmware_version="AX001U",vendor="",product="",revision="",lun_id=""} 1

Are you running node_exporter in Docker?

not running in Docker

What did you expect to see?

node exporter can handle the character " in the model_family textfield as the " which ends the textfield is combined with a "," (...2.5" HDD MQ01ABD...",) or "}"

What did you see instead?

an error sie log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions