diff --git a/config/config.go b/config/config.go index f8fdc9d2..0247c413 100644 --- a/config/config.go +++ b/config/config.go @@ -1,6 +1,6 @@ package config -const Version = "heplify-server 1.55" +const Version = "heplify-server 1.56" var Setting HeplifyServer diff --git a/metric/prometheus.go b/metric/prometheus.go index ad79f45c..bb9d696a 100644 --- a/metric/prometheus.go +++ b/metric/prometheus.go @@ -67,7 +67,7 @@ func (p *Prometheus) expose(hCh chan *decoder.HEP) { var srcHit, dstHit bool srcTarget, srcHit = p.TargetMap[pkt.SrcIP] if srcHit { - methodResponses.WithLabelValues(srcTarget, "src", "", pkt.SIP.FirstMethod, pkt.SIP.CseqMethod).Inc() + methodResponses.WithLabelValues(srcTarget, "src", pkt.NodeName, pkt.SIP.FirstMethod, pkt.SIP.CseqMethod).Inc() if pkt.SIP.ReasonVal != "" && strings.Contains(pkt.SIP.ReasonVal, "850") { reasonCause.WithLabelValues(srcTarget, extractXR("cause=", pkt.SIP.ReasonVal), pkt.SIP.FirstMethod).Inc() @@ -75,10 +75,10 @@ func (p *Prometheus) expose(hCh chan *decoder.HEP) { } dstTarget, dstHit = p.TargetMap[pkt.DstIP] if dstHit { - methodResponses.WithLabelValues(dstTarget, "dst", "", pkt.SIP.FirstMethod, pkt.SIP.CseqMethod).Inc() + methodResponses.WithLabelValues(dstTarget, "dst", pkt.NodeName, pkt.SIP.FirstMethod, pkt.SIP.CseqMethod).Inc() } if !srcHit && !dstHit { - methodResponses.WithLabelValues("unknown", "", "", pkt.SIP.FirstMethod, pkt.SIP.CseqMethod).Inc() + methodResponses.WithLabelValues("unknown", "", pkt.NodeName, pkt.SIP.FirstMethod, pkt.SIP.CseqMethod).Inc() } }