mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
add git commit
This commit is contained in:
parent
0313009ec9
commit
c05de65111
1 changed files with 5 additions and 0 deletions
|
|
@ -32,6 +32,10 @@ import (
|
||||||
cli "gopkg.in/urfave/cli.v1"
|
cli "gopkg.in/urfave/cli.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
gitCommit string // Git SHA1 commit hash of the release (set via linker flags)
|
||||||
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
collectionInterval = 5 * time.Second
|
collectionInterval = 5 * time.Second
|
||||||
)
|
)
|
||||||
|
|
@ -170,6 +174,7 @@ func setupMetrics(ctx *cli.Context) {
|
||||||
|
|
||||||
go influxdb.InfluxDBWithTags(gethmetrics.DefaultRegistry, collectionInterval, endpoint, database, username, password, "swarm-smoke.", map[string]string{
|
go influxdb.InfluxDBWithTags(gethmetrics.DefaultRegistry, collectionInterval, endpoint, database, username, password, "swarm-smoke.", map[string]string{
|
||||||
"host": hosttag,
|
"host": hosttag,
|
||||||
|
"version": gitCommit,
|
||||||
"filesize": fmt.Sprintf("%v", filesize),
|
"filesize": fmt.Sprintf("%v", filesize),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue