Skip to content

Commit

Permalink
Merge pull request prometheus#948 from Marmelatze/consul_port
Browse files Browse the repository at this point in the history
consul port label
  • Loading branch information
fabxc committed Jul 31, 2015
2 parents adf7f16 + 1fa0b0f commit a5483a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion retrieval/discovery/consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package discovery
import (
"fmt"
"net/http"
"strconv"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -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)),
})
}

Expand Down

0 comments on commit a5483a4

Please sign in to comment.