Skip to content

Commit

Permalink
tidb-server: Use 15 as default value for metrics-interval (pingcap#1764)
Browse files Browse the repository at this point in the history
We only need to set metrics-addr.
  • Loading branch information
shenli authored Sep 26, 2016
1 parent 7a2bc12 commit 53d7d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tidb-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var (
logFile = flag.String("log-file", "", "log file path")
joinCon = flag.Int("join-concurrency", 5, "the number of goroutines that participate joining.")
metricsAddr = flag.String("metrics-addr", "", "prometheus pushgateway address, leaves it empty will disable prometheus push.")
metricsInterval = flag.Int("metrics-interval", 0, "prometheus client push interval in second, set \"0\" to disable prometheus push.")
metricsInterval = flag.Int("metrics-interval", 15, "prometheus client push interval in second, set \"0\" to disable prometheus push.")
binlogSocket = flag.String("binlog-socket", "", "socket file to write binlog")
)

Expand Down

0 comments on commit 53d7d4e

Please sign in to comment.