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() { func main() {
rand.Seed(time.Now().UnixNano()) rand.Seed(time.Now().UnixNano())
command := app.NewAPIServerCommand() command := app.NewAPIServerCommand()

View File

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