fix consul port label

This commit is contained in:
Florian Pfitzer 2015-07-31 16:18:25 +00:00
parent adf7f16d1a
commit 1fa0b0f253
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ package discovery
import (
"fmt"
"net/http"
"strconv"
"strings"
"sync"
"time"
@ -275,7 +276,7 @@ func (cd *ConsulDiscovery) watchService(srv *consulService, ch chan<- *config.Ta
ConsulNodeLabel: clientmodel.LabelValue(node.Node),
ConsulTagsLabel: clientmodel.LabelValue(tags),
ConsulServiceAddressLabel: clientmodel.LabelValue(node.ServiceAddress),
ConsulServicePortLabel: clientmodel.LabelValue(node.ServicePort),
ConsulServicePortLabel: clientmodel.LabelValue(strconv.Itoa(node.ServicePort)),
})
}