Documentation ¶
Overview ¶
Package metrics provides Knative utilities for exporting metrics to Stackdriver backend or Prometheus backend based on config-observability settings.
Index ¶
Constants ¶
View Source
const ( // Stackdriver is used for Stackdriver backend Stackdriver metricsBackend = "stackdriver" // Prometheus is used for Prometheus backend Prometheus metricsBackend = "prometheus" )
Variables ¶
This section is empty.
Functions ¶
func UpdateExporterFromConfigMap ¶
func UpdateExporterFromConfigMap(domain string, component string, logger *zap.SugaredLogger) func(configMap *corev1.ConfigMap)
UpdateExporterFromConfigMap returns a helper func that can be used to update the exporter when a config map is updated
Types ¶
type KnativeRevision ¶
type KnativeRevision struct { Project string Location string ClusterName string NamespaceName string ServiceName string ConfigurationName string RevisionName string }
func (*KnativeRevision) MonitoredResource ¶
func (kr *KnativeRevision) MonitoredResource() (resType string, labels map[string]string)
Click to show internal directories.
Click to hide internal directories.