metricskey

package
v0.0.0-...-20d7626 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ResourceTypeKnativeRevision is the Stackdriver resource type for Knative revision
	ResourceTypeKnativeRevision = "knative_revision"

	// LabelProject is the label for project (e.g. GCP GAIA ID, AWS project name)
	LabelProject = "project_id"

	// LabelLocation is the label for location (e.g. GCE zone, AWS region) where the service is deployed
	LabelLocation = "location"

	// LabelClusterName is the label for immutable name of the cluster
	LabelClusterName = "cluster_name"

	// LabelNamespaceName is the label for immutable name of the namespace that the service is deployed
	LabelNamespaceName = "namespace_name"

	// LabelServiceName is the label for the deployed service name
	LabelServiceName = "service_name"

	// LabelRouteName is the label for immutable name of the route that receives the request
	LabelRouteName = "route_name"

	// LabelConfigurationName is the label for the configuration which created the monitored revision
	LabelConfigurationName = "configuration_name"

	// LabelRevisionName is the label for the monitored revision
	LabelRevisionName = "revision_name"

	// ValueUnknown is the default value if the field is unknown, e.g. project will be unknown if Knative
	// is not running on GKE.
	ValueUnknown = "unknown"
)

Variables

View Source
var (
	// KnativeRevisionLabels stores the set of resource labels for resource type knative_revision.
	// LabelRouteName is added as extra label since it is optional, not in this map.
	KnativeRevisionLabels = sets.NewString(
		LabelProject,
		LabelLocation,
		LabelClusterName,
		LabelNamespaceName,
		LabelServiceName,
		LabelConfigurationName,
		LabelRevisionName,
	)

	// KnativeRevisionMetrics stores a set of metric types which are supported
	// by resource type knative_revision.
	KnativeRevisionMetrics = sets.NewString(
		"knative.dev/serving/activator/request_count",
		"knative.dev/serving/activator/request_latencies",
		"knative.dev/serving/autoscaler/desired_pods",
		"knative.dev/serving/autoscaler/requested_pods",
		"knative.dev/serving/autoscaler/actual_pods",
		"knative.dev/serving/autoscaler/stable_request_concurrency",
		"knative.dev/serving/autoscaler/panic_request_concurrency",
		"knative.dev/serving/autoscaler/target_concurrency_per_pod",
		"knative.dev/serving/autoscaler/panic_mode",
		"knative.dev/serving/revision/request_count",
		"knative.dev/serving/revision/request_latencies",
	)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL