Hi, I am trying to change metric_name
( telegraf/plugins/parsers/xpath at master · influxdata/telegraf · GitHub )
This is somehow not working … I would like to change metric_name (to be dropped later) in case, there is some attribute status=false instead of attribute status=true at root element…
[[inputs.http.xpath]]
metric_name = “concat( substring( ‘validname’, 1, number(wario/@status = ‘true’) * 9), substring( ‘validname_error’, 1, ( 1 - number(wario/@status = ‘true’)) * 15))”
What is wrong with this query? My metric name ends like “validnamevalidname_error” :-/