Skip to content

Commit dae68f9

Browse files
authored
Merge pull request #27 from soundcloud/grobie/updates
Update dependencies
2 parents 4e1717c + e9ba5df commit dae68f9

File tree

197 files changed

+47625
-14746
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+47625
-14746
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ dist: trusty
33
language: go
44

55
go:
6-
- 1.7
7-
6+
- 1.8
7+
88
script:
99
- make

bind/v2/v2.go

+5-12
Original file line numberDiff line numberDiff line change
@@ -78,35 +78,28 @@ func (c *Client) Stats(...bind.StatisticGroup) (bind.Statistics, error) {
7878

7979
s.Server.BootTime = stats.Server.BootTime
8080
for _, t := range stats.Server.QueriesIn {
81-
s.Server.IncomingQueries = append(s.Server.IncomingQueries, counter(t))
81+
s.Server.IncomingQueries = append(s.Server.IncomingQueries, bind.Counter(t))
8282
}
8383
for _, t := range stats.Server.Requests {
84-
s.Server.IncomingRequests = append(s.Server.IncomingRequests, counter(t))
84+
s.Server.IncomingRequests = append(s.Server.IncomingRequests, bind.Counter(t))
8585
}
8686
for _, t := range stats.Server.NSStats {
87-
s.Server.NameServerStats = append(s.Server.NameServerStats, counter(t))
87+
s.Server.NameServerStats = append(s.Server.NameServerStats, bind.Counter(t))
8888
}
8989
for _, view := range stats.Views {
9090
v := bind.View{
9191
Name: view.Name,
9292
Cache: view.Cache,
9393
}
9494
for _, t := range view.Rdtype {
95-
v.ResolverQueries = append(v.ResolverQueries, counter(t))
95+
v.ResolverQueries = append(v.ResolverQueries, bind.Counter(t))
9696
}
9797
for _, t := range view.Resstat {
98-
v.ResolverStats = append(v.ResolverStats, counter(t))
98+
v.ResolverStats = append(v.ResolverStats, bind.Counter(t))
9999
}
100100
s.Views = append(s.Views, v)
101101
}
102102
s.TaskManager = stats.Taskmgr
103103

104104
return s, nil
105105
}
106-
107-
func counter(c Counter) bind.Counter {
108-
return bind.Counter{
109-
Name: c.Name,
110-
Counter: c.Counter,
111-
}
112-
}

bind_exporter.go

+7-3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424

2525
const (
2626
namespace = "bind"
27+
exporter = "bind_exporter"
2728
resolver = "resolver"
2829
)
2930

@@ -448,14 +449,17 @@ func main() {
448449
flag.Parse()
449450

450451
if *showVersion {
451-
fmt.Fprintln(os.Stdout, version.Print("bind_exporter"))
452+
fmt.Fprintln(os.Stdout, version.Print(exporter))
452453
os.Exit(0)
453454
}
454-
log.Infoln("Starting bind_exporter", version.Info())
455+
log.Infoln("Starting", exporter, version.Info())
455456
log.Infoln("Build context", version.BuildContext())
456457
log.Infoln("Configured to collect statistics", groups.String())
457458

458-
prometheus.MustRegister(NewExporter(*bindVersion, *bindURI, *bindTimeout, groups))
459+
prometheus.MustRegister(
460+
version.NewCollector(exporter),
461+
NewExporter(*bindVersion, *bindURI, *bindTimeout, groups),
462+
)
459463
if *bindPidFile != "" {
460464
procExporter := prometheus.NewProcessCollectorPIDFn(
461465
func() (int, error) {

vendor/github.com/Sirupsen/logrus/CHANGELOG.md

+12-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/Sirupsen/logrus/README.md

+76-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/Sirupsen/logrus/alt_exit.go

+64
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)