Closed SerhiiZahuba closed 6 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)\"",
${search:raw}
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+(?.+?)\"",
I believe I have this covered in a PR
Fixed by @tony1661
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\" |~.+?\r\n)\"",
${search:raw}
| regexp \"Call-ID:\s+(?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+(?