Skip to content

Commit

Permalink
Merge pull request #27 from soundcloud/grobie/updates
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
cagedmantis authored Jun 15, 2017
2 parents 4e1717c + e9ba5df commit dae68f9
Show file tree
Hide file tree
Showing 197 changed files with 47,625 additions and 14,746 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dist: trusty
language: go

go:
- 1.7
- 1.8

script:
- make
17 changes: 5 additions & 12 deletions bind/v2/v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,35 +78,28 @@ func (c *Client) Stats(...bind.StatisticGroup) (bind.Statistics, error) {

s.Server.BootTime = stats.Server.BootTime
for _, t := range stats.Server.QueriesIn {
s.Server.IncomingQueries = append(s.Server.IncomingQueries, counter(t))
s.Server.IncomingQueries = append(s.Server.IncomingQueries, bind.Counter(t))
}
for _, t := range stats.Server.Requests {
s.Server.IncomingRequests = append(s.Server.IncomingRequests, counter(t))
s.Server.IncomingRequests = append(s.Server.IncomingRequests, bind.Counter(t))
}
for _, t := range stats.Server.NSStats {
s.Server.NameServerStats = append(s.Server.NameServerStats, counter(t))
s.Server.NameServerStats = append(s.Server.NameServerStats, bind.Counter(t))
}
for _, view := range stats.Views {
v := bind.View{
Name: view.Name,
Cache: view.Cache,
}
for _, t := range view.Rdtype {
v.ResolverQueries = append(v.ResolverQueries, counter(t))
v.ResolverQueries = append(v.ResolverQueries, bind.Counter(t))
}
for _, t := range view.Resstat {
v.ResolverStats = append(v.ResolverStats, counter(t))
v.ResolverStats = append(v.ResolverStats, bind.Counter(t))
}
s.Views = append(s.Views, v)
}
s.TaskManager = stats.Taskmgr

return s, nil
}

func counter(c Counter) bind.Counter {
return bind.Counter{
Name: c.Name,
Counter: c.Counter,
}
}
10 changes: 7 additions & 3 deletions bind_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (

const (
namespace = "bind"
exporter = "bind_exporter"
resolver = "resolver"
)

Expand Down Expand Up @@ -448,14 +449,17 @@ func main() {
flag.Parse()

if *showVersion {
fmt.Fprintln(os.Stdout, version.Print("bind_exporter"))
fmt.Fprintln(os.Stdout, version.Print(exporter))
os.Exit(0)
}
log.Infoln("Starting bind_exporter", version.Info())
log.Infoln("Starting", exporter, version.Info())
log.Infoln("Build context", version.BuildContext())
log.Infoln("Configured to collect statistics", groups.String())

prometheus.MustRegister(NewExporter(*bindVersion, *bindURI, *bindTimeout, groups))
prometheus.MustRegister(
version.NewCollector(exporter),
NewExporter(*bindVersion, *bindURI, *bindTimeout, groups),
)
if *bindPidFile != "" {
procExporter := prometheus.NewProcessCollectorPIDFn(
func() (int, error) {
Expand Down
13 changes: 12 additions & 1 deletion vendor/github.com/Sirupsen/logrus/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 76 additions & 9 deletions vendor/github.com/Sirupsen/logrus/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 64 additions & 0 deletions vendor/github.com/Sirupsen/logrus/alt_exit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dae68f9

Please sign in to comment.