Hi all,
I would like to monitor with zabbix some hosts who just have a telegraf agent installed.
On them, output prometheus_client is configured so I could reach all datas via http://host:9273/metrics
I would like to implement a 'master' item to get all information and use 'HTTP agent' to reach exposed datas but I don't need to get all values, and only catch important fields.
I would like to know if it's possible to only match certain lines using preprocessing. (like grep in bash)
I already try to use preprocessing and validation>Matched regular expression and for testing set 'cpu-total'

With that, it return the all page withoug filtering
I also try to use Text>Regular expression but it only return the 1rst result and all lines who must match with cpu="cpu-total"

With that I will create dependant items based on this main raw item.
We are using Zabbix 5.0 in our use case
Regards
I would like to monitor with zabbix some hosts who just have a telegraf agent installed.
On them, output prometheus_client is configured so I could reach all datas via http://host:9273/metrics
I would like to implement a 'master' item to get all information and use 'HTTP agent' to reach exposed datas but I don't need to get all values, and only catch important fields.
I would like to know if it's possible to only match certain lines using preprocessing. (like grep in bash)
I already try to use preprocessing and validation>Matched regular expression and for testing set 'cpu-total'
With that, it return the all page withoug filtering
I also try to use Text>Regular expression but it only return the 1rst result and all lines who must match with cpu="cpu-total"
With that I will create dependant items based on this main raw item.
We are using Zabbix 5.0 in our use case
Regards
Comment