sipcapture / homer-docker

HOMER 10 Docker
GNU Affero General Public License v3.0
13 stars 10 forks source link

error in the template Grafana #7

Closed SerhiiZahuba closed 6 months ago

SerhiiZahuba commented 7 months ago

Hello. Found an error in the template Grafana. In expr, need to remove a space at the end of the term.

https://github.com/sipcapture/homer-docker/blob/b62f58fdf34b00fee2cd3e38923aa121dcf1fdb9/all-in-one/grafana/provisioning/dashboards/CallFlow_Dashboard.json#L193

"expr": "{job=\"heplify-server\", src_ip=~\"$src_ip\", dst_ip=~\"$dst_ip\"} | response=~\"$method\" or type!=\"sip\" |~ ${search:raw} | regexp \"Call-ID:\s+(?.+?\r\n)\"",

needs replace to

"expr": "{job=\"heplify-server\", src_ip=~\"$src_ip\", dst_ip=~\"$dst_ip\"} | response=~\"$method\" or type!=\"sip\" |~ ${search:raw} | regexp \"Call-ID:\s+(?.+?)\"",

tony1661 commented 6 months ago

I believe I have this covered in a PR

lmangani commented 6 months ago

Fixed by @tony1661