-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prometheus push metrics #1733
prometheus push metrics #1733
Conversation
LGTM |
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.") | ||
metricsInterval = flag.String("metrics-interval", "0s", "prometheus client push interval, set \"0s\" to disable prometheus.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use metricsInterval
and metricsInterval
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not disable prometheus, but push.
@zimulala PTAL |
LGTM |
} | ||
log.Info("start Prometheus push client") | ||
// TODO: TiDB do not have uniq name, so we use host+port to compose a name. | ||
name := fmt.Sprintf("TiDB-%s:%s", *host, *port) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TiKV uses TiKV_1
, I think it better be to "TiDB_%s:%s"
.
@overvenus PTAL |
LGTM |
1 similar comment
LGTM |
@coocood @siddontang PTAL
Refer: tikv/pd#325