NETWAYS / NETWAYS/icingaweb2-module-perfdatagraphs

How to escape white spaces in variable perfdatagraphs_config_highlight

Open
#76 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

backend/influxv1 question
Dominant language
PHP
Stars
34
Forks
7
Avg merge
37m
Merged PRs (30d)
7

Description

https://github.com/NETWAYS/icingaweb2-module-perfdatagraphs/blob/23b940d18b16cbec2e22a1ef9f71f67910ea3940/doc/03-Configuration.md?plain=1#L63

These perfdatagraphs are awesome!

When I try to promote a metric to the top of the list of graphs, this does not work if there's a white space in the metric. Is there a way to set this up:

Error message :
`
[2026-01-09 14:07:55 +0800] critical/config: Error: syntax error, unexpected invalid token

/etc/icinga2/conf.d/vtmis/service-tfp.conf(62): vars.perfdatagraphs_config_highlight = "track\ in\ count"

                                                                                             ^^

`

As visible in the screenshot, the metric did not promote to the top

Image Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the configuration example at doc/03-Configuration.md line 63 and reproduce the reported setting in the referenced Icinga service configuration. Confirm the supported escaping or configuration form for metric names containing spaces, and verify that the metric is promoted without an Icinga syntax error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.