diff --git a/broker/ipc.go b/broker/ipc.go index 7e2951c..d58baec 100644 --- a/broker/ipc.go +++ b/broker/ipc.go @@ -108,7 +108,7 @@ func (i *IPC) ProxyPolls(arg messages.Arg, response *[]byte) error { if offer == nil { i.ctx.metrics.IncrementCounter("proxy-idle") - i.ctx.metrics.promMetrics.ProxyPollTotal.With(prometheus.Labels{"nat": natType, "status": "idle"}).Inc() + i.ctx.metrics.promMetrics.ProxyPollTotal.With(prometheus.Labels{"nat": natType, "type": proxyType, "status": "idle"}).Inc() b, err = messages.EncodePollResponse("", false, "") if err != nil { @@ -119,7 +119,7 @@ func (i *IPC) ProxyPolls(arg messages.Arg, response *[]byte) error { return nil } - i.ctx.metrics.promMetrics.ProxyPollTotal.With(prometheus.Labels{"nat": natType, "status": "matched"}).Inc() + i.ctx.metrics.promMetrics.ProxyPollTotal.With(prometheus.Labels{"nat": natType, "type": proxyType, "status": "matched"}).Inc() var relayURL string bridgeFingerprint, err := bridgefingerprint.FingerprintFromBytes(offer.fingerprint) if err != nil { diff --git a/broker/metrics.go b/broker/metrics.go index ae1183c..c1d4e4a 100644 --- a/broker/metrics.go +++ b/broker/metrics.go @@ -329,7 +329,7 @@ func initPrometheus() *PromMetrics { Name: "rounded_proxy_poll_total", Help: "The number of snowflake proxy polls, rounded up to a multiple of 8", }, - []string{"nat", "status"}, + []string{"nat", "type", "status"}, ) promMetrics.ProxyAnswerTotal = safeprom.NewCounterVec(