forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
39 lines (32 loc) · 1.33 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
package constants // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/constants"
// Resource label keys.
const (
// TODO: Remove after switch to new Metrics definition
K8sType = "k8s"
ContainerType = "container"
// Resource labels keys for UID.
K8sKeyNamespaceUID = "k8s.namespace.uid"
K8sKeyReplicationControllerUID = "k8s.replicationcontroller.uid"
K8sKeyResourceQuotaUID = "k8s.resourcequota.uid"
K8sKeyClusterResourceQuotaUID = "openshift.clusterquota.uid"
// Resource labels keys for Name.
K8sKeyReplicationControllerName = "k8s.replicationcontroller.name"
K8sKeyResourceQuotaName = "k8s.resourcequota.name"
K8sKeyClusterResourceQuotaName = "openshift.clusterquota.name"
// Kubernetes resource kinds
K8sKindCronJob = "CronJob"
K8sKindDaemonSet = "DaemonSet"
K8sKindDeployment = "Deployment"
K8sKindJob = "Job"
K8sKindReplicationController = "ReplicationController"
K8sKindReplicaSet = "ReplicaSet"
K8sStatefulSet = "StatefulSet"
)
// Keys for K8s metadata
const (
K8sKeyWorkLoadKind = "k8s.workload.kind"
K8sKeyWorkLoadName = "k8s.workload.name"
K8sServicePrefix = "k8s.service."
)