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 = map[string]struct{}{ LabelProject: {}, LabelLocation: {}, LabelClusterName: {}, LabelNamespaceName: {}, LabelServiceName: {}, LabelConfigurationName: {}, LabelRevisionName: {}, } // ResourceTypeToLabelsMap maps resource type to the set of resource labels ResourceTypeToLabelsMap = map[string]map[string]struct{}{ ResourceTypeKnativeRevision: KnativeRevisionLabels, } // KnativeRevisionMetricsPrefixes stores a set of metrics prefixes that belong to resource type knative_revision KnativeRevisionMetricsPrefixes = map[string]struct{}{ "knative.dev/serving/autoscaler": {}, "knative.dev/serving/activator": {}, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.