Hi,
I'm using my prometheus integration with zabbix. Here I'm trying to monitor the pod status.
My pod `test-postgres-k8sdev-cluster-pooler-repl-6f797d558-n86gs` in `crashloopback`, I fixed it and then it started as different name.
But in check still for pod `test-postgres-k8sdev-cluster-pooler-repl-6f797d558-n86gs` its `0` and I could still see in the `latest data` with greyed out with below error:
```
Preprocessing failed for: {"data":[{"pod":"haproxy-564cf4b9c9-dxmjr","state":"1"},{"pod":"loop-review-postgres-k8sdev-clust...
1. Failed: cannot extract value from json by path "$.data[?(@.pod=='test-postgres-k8sdev-cluster-pooler-repl-6f797d558-n86gs')].state.first()": no data matches the specified path
```
How can I pass preprocessing JSONPath to set to value `1` if the podname itself not found in the current fetched data.
I used this doc for this integration. https://cloud.redhat.com/blog/monito...prometheus-api
thanks
I'm using my prometheus integration with zabbix. Here I'm trying to monitor the pod status.
My pod `test-postgres-k8sdev-cluster-pooler-repl-6f797d558-n86gs` in `crashloopback`, I fixed it and then it started as different name.
But in check still for pod `test-postgres-k8sdev-cluster-pooler-repl-6f797d558-n86gs` its `0` and I could still see in the `latest data` with greyed out with below error:
```
Preprocessing failed for: {"data":[{"pod":"haproxy-564cf4b9c9-dxmjr","state":"1"},{"pod":"loop-review-postgres-k8sdev-clust...
1. Failed: cannot extract value from json by path "$.data[?(@.pod=='test-postgres-k8sdev-cluster-pooler-repl-6f797d558-n86gs')].state.first()": no data matches the specified path
```
How can I pass preprocessing JSONPath to set to value `1` if the podname itself not found in the current fetched data.
I used this doc for this integration. https://cloud.redhat.com/blog/monito...prometheus-api
thanks
Comment