add stability level to aggregator metrics and drop blank line in cmd file

This commit is contained in:
Han Kang 2019-08-26 12:32:00 -07:00
parent 466980dd74
commit 6eee64c308
2 changed files with 6 additions and 5 deletions

View File

@ -29,7 +29,6 @@ import (
)
func main() {
rand.Seed(time.Now().UnixNano())
command := app.NewAPIServerCommand()

View File

@ -24,15 +24,17 @@ import (
var (
unavailableCounter = metrics.NewCounterVec(
&metrics.CounterOpts{
Name: "aggregator_unavailable_apiservice_count",
Help: "Counter of APIServices which are marked as unavailable broken down by APIService name and reason.",
Name: "aggregator_unavailable_apiservice_count",
Help: "Counter of APIServices which are marked as unavailable broken down by APIService name and reason.",
StabilityLevel: metrics.ALPHA,
},
[]string{"name", "reason"},
)
unavailableGauge = metrics.NewGaugeVec(
&metrics.GaugeOpts{
Name: "aggregator_unavailable_apiservice",
Help: "Gauge of APIServices which are marked as unavailable broken down by APIService name.",
Name: "aggregator_unavailable_apiservice",
Help: "Gauge of APIServices which are marked as unavailable broken down by APIService name.",
StabilityLevel: metrics.ALPHA,
},
[]string{"name"},
)