Double quotation marks (") in friendly_name are not automatically escaped in the metrics output, and will cause scraping by prometheus to fail. For example:
Scraping succeeds if double quotes are manually escaped in the config file. The following is okay:
# friendly_name = Ada's 13\" Laptop
Technically this also applies to friendly_json, but unescaped double qoutes would be malformed JSON, and it is the user's responsibility to supply well-formed JSON. In the case of friendly_name, I would propose either the exporter automatically escape double quotes, or a note be added to the README to let the user know of this requirement.
Double quotation marks (
"
) infriendly_name
are not automatically escaped in the metrics output, and will cause scraping by prometheus to fail. For example:will result in a prometheus error like:
Prometheus will also mark the host as not
up
.Scraping succeeds if double quotes are manually escaped in the config file. The following is okay:
Technically this also applies to
friendly_json
, but unescaped double qoutes would be malformed JSON, and it is the user's responsibility to supply well-formed JSON. In the case offriendly_name
, I would propose either the exporter automatically escape double quotes, or a note be added to the README to let the user know of this requirement.