Reading https://www.zabbix.com/documentation/5.2/manual/config/items/itemtypes/prometheus.
I create the "HTTP agent item". I use the wizard to create a dependent item.

After choosing the "preprocessing" sub-tab, I pick "Prometheus pattern" and add a parameter.

The documentation seems to suggest that I can put in a pattern that would exist from Prometheus' /metrics page. I picked promhttp_metric_handler_requests_total{code=".*"} because there's 3 of them:
However, trying to add it fails:

That error message is rather confusing: Where's "name" and "key"
I create the "HTTP agent item". I use the wizard to create a dependent item.
After choosing the "preprocessing" sub-tab, I pick "Prometheus pattern" and add a parameter.
The documentation seems to suggest that I can put in a pattern that would exist from Prometheus' /metrics page. I picked promhttp_metric_handler_requests_total{code=".*"} because there's 3 of them:
# TYPE promhttp_metric_handler_requests_total counter
promhttp_metric_handler_requests_total{code="200"} 1128
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0
promhttp_metric_handler_requests_total{code="200"} 1128
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0
That error message is rather confusing: Where's "name" and "key"
are they 2nd and 3rd fields I filled in here?
Or is promhttp_metric_handler_requests_total the key and the name {code=".*"}?
Or is code the key and ".*" the name?
And then, what defines "empty"?
Or is promhttp_metric_handler_requests_total the key and the name {code=".*"}?
Or is code the key and ".*" the name?
And then, what defines "empty"?
Comment