Server 7.0.22.
I am trying to write a template to collect metrics from cloudflared.
Master item fetches
web.page.get[127.0.0.1,/metrics,20241]
This outputs something like:
This is my regex for collecting a metric:
(?<=^cloudflared_config_local_config_pushes ).*
You can see it matches the value 0:

Preprocessing on dependent item created as follows [just trust me that this is the regex as above in the box]:

But this does not work. Always returns:
Why is the type 'none'? Obviously I want numeric but set it to Text to help debug. What is wrong with my regex?
I am trying to write a template to collect metrics from cloudflared.
Master item fetches
web.page.get[127.0.0.1,/metrics,20241]
This outputs something like:
Code:
HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain; version=0.0.4; charset=utf-8; escaping=underscores
Date: Mon, 16 Feb 2026 09:32:01 GMT
# HELP build_info Build and version information
# TYPE build_info gauge
build_info{goversion="go1.24.11",revision="2026-01-20-11:14 UTC",type="",version="2026.1.1"} 1
# HELP cloudflared_config_local_config_pushes Number of local configuration pushes to the edge
# TYPE cloudflared_config_local_config_pushes counter
cloudflared_config_local_config_pushes 0
# HELP cloudflared_config_local_config_pushes_errors Number of errors occurred during local configuration pushes
# TYPE cloudflared_config_local_config_pushes_errors counter
cloudflared_config_local_config_pushes_errors 0
....many many more lines...
(?<=^cloudflared_config_local_config_pushes ).*
You can see it matches the value 0:
Preprocessing on dependent item created as follows [just trust me that this is the regex as above in the box]:
But this does not work. Always returns:
Preprocessing failed for: HTTP/1.1 200 OK..Connection: close..Transfer-Encoding: chunked..Content-Type: text/plain; version...
1. Failed: cannot perform regular expression "(?<=^cloudflared_config_local_config_pushes ).*" match for value of type "none": pattern does not match
1. Failed: cannot perform regular expression "(?<=^cloudflared_config_local_config_pushes ).*" match for value of type "none": pattern does not match

Shame you did not reply on 16th 
Comment