Skip to content

Commit

Permalink
Export reconciler metrics. (knative#2742)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdemirhan authored and knative-prow-robot committed Dec 18, 2018
1 parent f051eeb commit 46dd680
Show file tree
Hide file tree
Showing 4 changed files with 663 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import (
clientset "github.com/knative/serving/pkg/client/clientset/versioned"
informers "github.com/knative/serving/pkg/client/informers/externalversions"
"github.com/knative/serving/pkg/logging"
"github.com/knative/serving/pkg/metrics"
"github.com/knative/serving/pkg/reconciler"
"github.com/knative/serving/pkg/reconciler/v1alpha1/clusteringress"
"github.com/knative/serving/pkg/reconciler/v1alpha1/configuration"
Expand Down Expand Up @@ -192,6 +193,8 @@ func main() {

// Watch the logging config map and dynamically update logging levels.
configMapWatcher.Watch(logging.ConfigName, logging.UpdateLevelFromConfigMap(logger, atomicLevel, component))
// Watch the observability config map and dynamically update metrics exporter.
configMapWatcher.Watch(metrics.ObservabilityConfigName, metrics.UpdateExporterFromConfigMap(component, logger))

// These are non-blocking.
kubeInformerFactory.Start(stopCh)
Expand Down
Loading

0 comments on commit 46dd680

Please sign in to comment.