Include Go version, platform, and other build info in version string

Additionally update MatchesServerVersion to only check GitVersion,
GitCommit, and GitTreeState.
This commit is contained in:
Jeff Grafton
2016-01-20 18:33:34 -08:00
parent 4c2d129bdb
commit fb663f2cd5
5 changed files with 26 additions and 11 deletions

View File

@@ -46,7 +46,7 @@ var CommonMetrics = map[string][]string{
"http_response_size_bytes": {"handler", "quantile"},
"http_response_size_bytes_count": {"handler"},
"http_response_size_bytes_sum": {"handler"},
"kubernetes_build_info": {"major", "minor", "gitCommit", "gitTreeState", "gitVersion"},
"kubernetes_build_info": {"major", "minor", "gitCommit", "gitTreeState", "gitVersion", "buildDate", "goVersion", "compiler", "platform"},
"process_cpu_seconds_total": {},
"process_max_fds": {},
"process_open_fds": {},