Skip to content
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

Merged
merged 7 commits into from
Sep 18, 2016
Merged

prometheus push metrics #1733

merged 7 commits into from
Sep 18, 2016

Conversation

shenli
Copy link
Member

@shenli shenli commented Sep 18, 2016

@siddontang
Copy link
Member

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.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use metricsInterval and metricsInterval.

Copy link
Member

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.

@shenli shenli changed the title Shenli/push metrics prometheus push metrics Sep 18, 2016
@shenli
Copy link
Member Author

shenli commented Sep 18, 2016

@zimulala PTAL

@zimulala
Copy link
Contributor

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)
Copy link
Member

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".

@shenli
Copy link
Member Author

shenli commented Sep 18, 2016

@overvenus PTAL

@overvenus
Copy link
Member

LGTM

1 similar comment
@coocood
Copy link
Member

coocood commented Sep 18, 2016

LGTM

@shenli shenli merged commit d4c84b4 into master Sep 18, 2016
@shenli shenli deleted the shenli/push-metrics branch September 18, 2016 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants