package k8sconv
import "go.opentelemetry.io/otel/semconv/v1.40.0/k8sconv"
Package k8sconv provides types and functionality for OpenTelemetry semantic conventions in the "k8s" namespace.
Index ¶
- type ContainerCPULimit
- func NewContainerCPULimit( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerCPULimit, error)
- func (m ContainerCPULimit) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ContainerCPULimit) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ContainerCPULimit) Description() string
- func (m ContainerCPULimit) Inst() metric.Int64UpDownCounter
- func (ContainerCPULimit) Name() string
- func (ContainerCPULimit) Unit() string
- type ContainerCPULimitUtilization
- func NewContainerCPULimitUtilization( m metric.Meter, opt ...metric.Int64GaugeOption, ) (ContainerCPULimitUtilization, error)
- func (ContainerCPULimitUtilization) Description() string
- func (m ContainerCPULimitUtilization) Inst() metric.Int64Gauge
- func (ContainerCPULimitUtilization) Name() string
- func (m ContainerCPULimitUtilization) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)
- func (m ContainerCPULimitUtilization) RecordSet(ctx context.Context, val int64, set attribute.Set)
- func (ContainerCPULimitUtilization) Unit() string
- type ContainerCPURequest
- func NewContainerCPURequest( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerCPURequest, error)
- func (m ContainerCPURequest) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ContainerCPURequest) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ContainerCPURequest) Description() string
- func (m ContainerCPURequest) Inst() metric.Int64UpDownCounter
- func (ContainerCPURequest) Name() string
- func (ContainerCPURequest) Unit() string
- type ContainerCPURequestUtilization
- func NewContainerCPURequestUtilization( m metric.Meter, opt ...metric.Int64GaugeOption, ) (ContainerCPURequestUtilization, error)
- func (ContainerCPURequestUtilization) Description() string
- func (m ContainerCPURequestUtilization) Inst() metric.Int64Gauge
- func (ContainerCPURequestUtilization) Name() string
- func (m ContainerCPURequestUtilization) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)
- func (m ContainerCPURequestUtilization) RecordSet(ctx context.Context, val int64, set attribute.Set)
- func (ContainerCPURequestUtilization) Unit() string
- type ContainerEphemeralStorageLimit
- func NewContainerEphemeralStorageLimit( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerEphemeralStorageLimit, error)
- func (m ContainerEphemeralStorageLimit) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ContainerEphemeralStorageLimit) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ContainerEphemeralStorageLimit) Description() string
- func (m ContainerEphemeralStorageLimit) Inst() metric.Int64UpDownCounter
- func (ContainerEphemeralStorageLimit) Name() string
- func (ContainerEphemeralStorageLimit) Unit() string
- type ContainerEphemeralStorageRequest
- func NewContainerEphemeralStorageRequest( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerEphemeralStorageRequest, error)
- func (m ContainerEphemeralStorageRequest) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ContainerEphemeralStorageRequest) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ContainerEphemeralStorageRequest) Description() string
- func (m ContainerEphemeralStorageRequest) Inst() metric.Int64UpDownCounter
- func (ContainerEphemeralStorageRequest) Name() string
- func (ContainerEphemeralStorageRequest) Unit() string
- type ContainerMemoryLimit
- func NewContainerMemoryLimit( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerMemoryLimit, error)
- func (m ContainerMemoryLimit) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ContainerMemoryLimit) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ContainerMemoryLimit) Description() string
- func (m ContainerMemoryLimit) Inst() metric.Int64UpDownCounter
- func (ContainerMemoryLimit) Name() string
- func (ContainerMemoryLimit) Unit() string
- type ContainerMemoryRequest
- func NewContainerMemoryRequest( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerMemoryRequest, error)
- func (m ContainerMemoryRequest) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ContainerMemoryRequest) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ContainerMemoryRequest) Description() string
- func (m ContainerMemoryRequest) Inst() metric.Int64UpDownCounter
- func (ContainerMemoryRequest) Name() string
- func (ContainerMemoryRequest) Unit() string
- type ContainerReady
- func NewContainerReady( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerReady, error)
- func (m ContainerReady) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ContainerReady) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ContainerReady) Description() string
- func (m ContainerReady) Inst() metric.Int64UpDownCounter
- func (ContainerReady) Name() string
- func (ContainerReady) Unit() string
- type ContainerRestartCount
- func NewContainerRestartCount( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerRestartCount, error)
- func (m ContainerRestartCount) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ContainerRestartCount) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ContainerRestartCount) Description() string
- func (m ContainerRestartCount) Inst() metric.Int64UpDownCounter
- func (ContainerRestartCount) Name() string
- func (ContainerRestartCount) Unit() string
- type ContainerStatusReason
- func NewContainerStatusReason( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerStatusReason, error)
- func (m ContainerStatusReason) Add( ctx context.Context, incr int64, containerStatusReason ContainerStatusReasonAttr, attrs ...attribute.KeyValue, )
- func (m ContainerStatusReason) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ContainerStatusReason) Description() string
- func (m ContainerStatusReason) Inst() metric.Int64UpDownCounter
- func (ContainerStatusReason) Name() string
- func (ContainerStatusReason) Unit() string
- type ContainerStatusReasonAttr
- type ContainerStatusState
- func NewContainerStatusState( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerStatusState, error)
- func (m ContainerStatusState) Add( ctx context.Context, incr int64, containerStatusState ContainerStatusStateAttr, attrs ...attribute.KeyValue, )
- func (m ContainerStatusState) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ContainerStatusState) Description() string
- func (m ContainerStatusState) Inst() metric.Int64UpDownCounter
- func (ContainerStatusState) Name() string
- func (ContainerStatusState) Unit() string
- type ContainerStatusStateAttr
- type ContainerStorageLimit
- func NewContainerStorageLimit( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerStorageLimit, error)
- func (m ContainerStorageLimit) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ContainerStorageLimit) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ContainerStorageLimit) Description() string
- func (m ContainerStorageLimit) Inst() metric.Int64UpDownCounter
- func (ContainerStorageLimit) Name() string
- func (ContainerStorageLimit) Unit() string
- type ContainerStorageRequest
- func NewContainerStorageRequest( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerStorageRequest, error)
- func (m ContainerStorageRequest) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ContainerStorageRequest) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ContainerStorageRequest) Description() string
- func (m ContainerStorageRequest) Inst() metric.Int64UpDownCounter
- func (ContainerStorageRequest) Name() string
- func (ContainerStorageRequest) Unit() string
- type CronJobJobActive
- func NewCronJobJobActive( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (CronJobJobActive, error)
- func (m CronJobJobActive) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m CronJobJobActive) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (CronJobJobActive) Description() string
- func (m CronJobJobActive) Inst() metric.Int64UpDownCounter
- func (CronJobJobActive) Name() string
- func (CronJobJobActive) Unit() string
- type DaemonSetNodeCurrentScheduled
- func NewDaemonSetNodeCurrentScheduled( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DaemonSetNodeCurrentScheduled, error)
- func (m DaemonSetNodeCurrentScheduled) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m DaemonSetNodeCurrentScheduled) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (DaemonSetNodeCurrentScheduled) Description() string
- func (m DaemonSetNodeCurrentScheduled) Inst() metric.Int64UpDownCounter
- func (DaemonSetNodeCurrentScheduled) Name() string
- func (DaemonSetNodeCurrentScheduled) Unit() string
- type DaemonSetNodeDesiredScheduled
- func NewDaemonSetNodeDesiredScheduled( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DaemonSetNodeDesiredScheduled, error)
- func (m DaemonSetNodeDesiredScheduled) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m DaemonSetNodeDesiredScheduled) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (DaemonSetNodeDesiredScheduled) Description() string
- func (m DaemonSetNodeDesiredScheduled) Inst() metric.Int64UpDownCounter
- func (DaemonSetNodeDesiredScheduled) Name() string
- func (DaemonSetNodeDesiredScheduled) Unit() string
- type DaemonSetNodeMisscheduled
- func NewDaemonSetNodeMisscheduled( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DaemonSetNodeMisscheduled, error)
- func (m DaemonSetNodeMisscheduled) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m DaemonSetNodeMisscheduled) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (DaemonSetNodeMisscheduled) Description() string
- func (m DaemonSetNodeMisscheduled) Inst() metric.Int64UpDownCounter
- func (DaemonSetNodeMisscheduled) Name() string
- func (DaemonSetNodeMisscheduled) Unit() string
- type DaemonSetNodeReady
- func NewDaemonSetNodeReady( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DaemonSetNodeReady, error)
- func (m DaemonSetNodeReady) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m DaemonSetNodeReady) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (DaemonSetNodeReady) Description() string
- func (m DaemonSetNodeReady) Inst() metric.Int64UpDownCounter
- func (DaemonSetNodeReady) Name() string
- func (DaemonSetNodeReady) Unit() string
- type DeploymentPodAvailable
- func NewDeploymentPodAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DeploymentPodAvailable, error)
- func (m DeploymentPodAvailable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m DeploymentPodAvailable) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (DeploymentPodAvailable) Description() string
- func (m DeploymentPodAvailable) Inst() metric.Int64UpDownCounter
- func (DeploymentPodAvailable) Name() string
- func (DeploymentPodAvailable) Unit() string
- type DeploymentPodDesired
- func NewDeploymentPodDesired( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DeploymentPodDesired, error)
- func (m DeploymentPodDesired) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m DeploymentPodDesired) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (DeploymentPodDesired) Description() string
- func (m DeploymentPodDesired) Inst() metric.Int64UpDownCounter
- func (DeploymentPodDesired) Name() string
- func (DeploymentPodDesired) Unit() string
- type HPAMetricTargetCPUAverageUtilization
- func NewHPAMetricTargetCPUAverageUtilization( m metric.Meter, opt ...metric.Int64GaugeOption, ) (HPAMetricTargetCPUAverageUtilization, error)
- func (HPAMetricTargetCPUAverageUtilization) AttrContainerName(val string) attribute.KeyValue
- func (HPAMetricTargetCPUAverageUtilization) AttrHPAMetricType(val string) attribute.KeyValue
- func (HPAMetricTargetCPUAverageUtilization) Description() string
- func (m HPAMetricTargetCPUAverageUtilization) Inst() metric.Int64Gauge
- func (HPAMetricTargetCPUAverageUtilization) Name() string
- func (m HPAMetricTargetCPUAverageUtilization) Record( ctx context.Context, val int64, attrs ...attribute.KeyValue, )
- func (m HPAMetricTargetCPUAverageUtilization) RecordSet(ctx context.Context, val int64, set attribute.Set)
- func (HPAMetricTargetCPUAverageUtilization) Unit() string
- type HPAMetricTargetCPUAverageValue
- func NewHPAMetricTargetCPUAverageValue( m metric.Meter, opt ...metric.Int64GaugeOption, ) (HPAMetricTargetCPUAverageValue, error)
- func (HPAMetricTargetCPUAverageValue) AttrContainerName(val string) attribute.KeyValue
- func (HPAMetricTargetCPUAverageValue) AttrHPAMetricType(val string) attribute.KeyValue
- func (HPAMetricTargetCPUAverageValue) Description() string
- func (m HPAMetricTargetCPUAverageValue) Inst() metric.Int64Gauge
- func (HPAMetricTargetCPUAverageValue) Name() string
- func (m HPAMetricTargetCPUAverageValue) Record( ctx context.Context, val int64, attrs ...attribute.KeyValue, )
- func (m HPAMetricTargetCPUAverageValue) RecordSet(ctx context.Context, val int64, set attribute.Set)
- func (HPAMetricTargetCPUAverageValue) Unit() string
- type HPAMetricTargetCPUValue
- func NewHPAMetricTargetCPUValue( m metric.Meter, opt ...metric.Int64GaugeOption, ) (HPAMetricTargetCPUValue, error)
- func (HPAMetricTargetCPUValue) AttrContainerName(val string) attribute.KeyValue
- func (HPAMetricTargetCPUValue) AttrHPAMetricType(val string) attribute.KeyValue
- func (HPAMetricTargetCPUValue) Description() string
- func (m HPAMetricTargetCPUValue) Inst() metric.Int64Gauge
- func (HPAMetricTargetCPUValue) Name() string
- func (m HPAMetricTargetCPUValue) Record( ctx context.Context, val int64, attrs ...attribute.KeyValue, )
- func (m HPAMetricTargetCPUValue) RecordSet(ctx context.Context, val int64, set attribute.Set)
- func (HPAMetricTargetCPUValue) Unit() string
- type HPAPodCurrent
- func NewHPAPodCurrent( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (HPAPodCurrent, error)
- func (m HPAPodCurrent) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m HPAPodCurrent) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (HPAPodCurrent) Description() string
- func (m HPAPodCurrent) Inst() metric.Int64UpDownCounter
- func (HPAPodCurrent) Name() string
- func (HPAPodCurrent) Unit() string
- type HPAPodDesired
- func NewHPAPodDesired( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (HPAPodDesired, error)
- func (m HPAPodDesired) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m HPAPodDesired) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (HPAPodDesired) Description() string
- func (m HPAPodDesired) Inst() metric.Int64UpDownCounter
- func (HPAPodDesired) Name() string
- func (HPAPodDesired) Unit() string
- type HPAPodMax
- func NewHPAPodMax( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (HPAPodMax, error)
- func (m HPAPodMax) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m HPAPodMax) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (HPAPodMax) Description() string
- func (m HPAPodMax) Inst() metric.Int64UpDownCounter
- func (HPAPodMax) Name() string
- func (HPAPodMax) Unit() string
- type HPAPodMin
- func NewHPAPodMin( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (HPAPodMin, error)
- func (m HPAPodMin) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m HPAPodMin) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (HPAPodMin) Description() string
- func (m HPAPodMin) Inst() metric.Int64UpDownCounter
- func (HPAPodMin) Name() string
- func (HPAPodMin) Unit() string
- type JobPodActive
- func NewJobPodActive( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobPodActive, error)
- func (m JobPodActive) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m JobPodActive) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (JobPodActive) Description() string
- func (m JobPodActive) Inst() metric.Int64UpDownCounter
- func (JobPodActive) Name() string
- func (JobPodActive) Unit() string
- type JobPodDesiredSuccessful
- func NewJobPodDesiredSuccessful( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobPodDesiredSuccessful, error)
- func (m JobPodDesiredSuccessful) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m JobPodDesiredSuccessful) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (JobPodDesiredSuccessful) Description() string
- func (m JobPodDesiredSuccessful) Inst() metric.Int64UpDownCounter
- func (JobPodDesiredSuccessful) Name() string
- func (JobPodDesiredSuccessful) Unit() string
- type JobPodFailed
- func NewJobPodFailed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobPodFailed, error)
- func (m JobPodFailed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m JobPodFailed) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (JobPodFailed) Description() string
- func (m JobPodFailed) Inst() metric.Int64UpDownCounter
- func (JobPodFailed) Name() string
- func (JobPodFailed) Unit() string
- type JobPodMaxParallel
- func NewJobPodMaxParallel( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobPodMaxParallel, error)
- func (m JobPodMaxParallel) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m JobPodMaxParallel) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (JobPodMaxParallel) Description() string
- func (m JobPodMaxParallel) Inst() metric.Int64UpDownCounter
- func (JobPodMaxParallel) Name() string
- func (JobPodMaxParallel) Unit() string
- type JobPodSuccessful
- func NewJobPodSuccessful( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobPodSuccessful, error)
- func (m JobPodSuccessful) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m JobPodSuccessful) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (JobPodSuccessful) Description() string
- func (m JobPodSuccessful) Inst() metric.Int64UpDownCounter
- func (JobPodSuccessful) Name() string
- func (JobPodSuccessful) Unit() string
- type NamespacePhase
- func NewNamespacePhase( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NamespacePhase, error)
- func (m NamespacePhase) Add( ctx context.Context, incr int64, namespacePhase NamespacePhaseAttr, attrs ...attribute.KeyValue, )
- func (m NamespacePhase) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NamespacePhase) Description() string
- func (m NamespacePhase) Inst() metric.Int64UpDownCounter
- func (NamespacePhase) Name() string
- func (NamespacePhase) Unit() string
- type NamespacePhaseAttr
- type NetworkIODirectionAttr
- type NodeCPUAllocatable
- func NewNodeCPUAllocatable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeCPUAllocatable, error)
- func (m NodeCPUAllocatable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m NodeCPUAllocatable) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NodeCPUAllocatable) Description() string
- func (m NodeCPUAllocatable) Inst() metric.Int64UpDownCounter
- func (NodeCPUAllocatable) Name() string
- func (NodeCPUAllocatable) Unit() string
- type NodeCPUTime
- func NewNodeCPUTime( m metric.Meter, opt ...metric.Float64CounterOption, ) (NodeCPUTime, error)
- func (m NodeCPUTime) Add(ctx context.Context, incr float64, attrs ...attribute.KeyValue)
- func (m NodeCPUTime) AddSet(ctx context.Context, incr float64, set attribute.Set)
- func (NodeCPUTime) Description() string
- func (m NodeCPUTime) Inst() metric.Float64Counter
- func (NodeCPUTime) Name() string
- func (NodeCPUTime) Unit() string
- type NodeCPUUsage
- func NewNodeCPUUsage( m metric.Meter, opt ...metric.Int64GaugeOption, ) (NodeCPUUsage, error)
- func (NodeCPUUsage) Description() string
- func (m NodeCPUUsage) Inst() metric.Int64Gauge
- func (NodeCPUUsage) Name() string
- func (m NodeCPUUsage) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)
- func (m NodeCPUUsage) RecordSet(ctx context.Context, val int64, set attribute.Set)
- func (NodeCPUUsage) Unit() string
- type NodeConditionStatus
- func NewNodeConditionStatus( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeConditionStatus, error)
- func (m NodeConditionStatus) Add( ctx context.Context, incr int64, nodeConditionStatus NodeConditionStatusAttr, nodeConditionType NodeConditionTypeAttr, attrs ...attribute.KeyValue, )
- func (m NodeConditionStatus) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NodeConditionStatus) Description() string
- func (m NodeConditionStatus) Inst() metric.Int64UpDownCounter
- func (NodeConditionStatus) Name() string
- func (NodeConditionStatus) Unit() string
- type NodeConditionStatusAttr
- type NodeConditionTypeAttr
- type NodeEphemeralStorageAllocatable
- func NewNodeEphemeralStorageAllocatable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeEphemeralStorageAllocatable, error)
- func (m NodeEphemeralStorageAllocatable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m NodeEphemeralStorageAllocatable) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NodeEphemeralStorageAllocatable) Description() string
- func (m NodeEphemeralStorageAllocatable) Inst() metric.Int64UpDownCounter
- func (NodeEphemeralStorageAllocatable) Name() string
- func (NodeEphemeralStorageAllocatable) Unit() string
- type NodeFilesystemAvailable
- func NewNodeFilesystemAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeFilesystemAvailable, error)
- func (m NodeFilesystemAvailable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m NodeFilesystemAvailable) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NodeFilesystemAvailable) Description() string
- func (m NodeFilesystemAvailable) Inst() metric.Int64UpDownCounter
- func (NodeFilesystemAvailable) Name() string
- func (NodeFilesystemAvailable) Unit() string
- type NodeFilesystemCapacity
- func NewNodeFilesystemCapacity( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeFilesystemCapacity, error)
- func (m NodeFilesystemCapacity) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m NodeFilesystemCapacity) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NodeFilesystemCapacity) Description() string
- func (m NodeFilesystemCapacity) Inst() metric.Int64UpDownCounter
- func (NodeFilesystemCapacity) Name() string
- func (NodeFilesystemCapacity) Unit() string
- type NodeFilesystemUsage
- func NewNodeFilesystemUsage( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeFilesystemUsage, error)
- func (m NodeFilesystemUsage) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m NodeFilesystemUsage) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NodeFilesystemUsage) Description() string
- func (m NodeFilesystemUsage) Inst() metric.Int64UpDownCounter
- func (NodeFilesystemUsage) Name() string
- func (NodeFilesystemUsage) Unit() string
- type NodeMemoryAllocatable
- func NewNodeMemoryAllocatable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeMemoryAllocatable, error)
- func (m NodeMemoryAllocatable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m NodeMemoryAllocatable) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NodeMemoryAllocatable) Description() string
- func (m NodeMemoryAllocatable) Inst() metric.Int64UpDownCounter
- func (NodeMemoryAllocatable) Name() string
- func (NodeMemoryAllocatable) Unit() string
- type NodeMemoryAvailable
- func NewNodeMemoryAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeMemoryAvailable, error)
- func (m NodeMemoryAvailable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m NodeMemoryAvailable) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NodeMemoryAvailable) Description() string
- func (m NodeMemoryAvailable) Inst() metric.Int64UpDownCounter
- func (NodeMemoryAvailable) Name() string
- func (NodeMemoryAvailable) Unit() string
- type NodeMemoryPagingFaults
- func NewNodeMemoryPagingFaults( m metric.Meter, opt ...metric.Int64CounterOption, ) (NodeMemoryPagingFaults, error)
- func (m NodeMemoryPagingFaults) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (m NodeMemoryPagingFaults) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NodeMemoryPagingFaults) AttrSystemPagingFaultType(val SystemPagingFaultTypeAttr) attribute.KeyValue
- func (NodeMemoryPagingFaults) Description() string
- func (m NodeMemoryPagingFaults) Inst() metric.Int64Counter
- func (NodeMemoryPagingFaults) Name() string
- func (NodeMemoryPagingFaults) Unit() string
- type NodeMemoryRss
- func NewNodeMemoryRss( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeMemoryRss, error)
- func (m NodeMemoryRss) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m NodeMemoryRss) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NodeMemoryRss) Description() string
- func (m NodeMemoryRss) Inst() metric.Int64UpDownCounter
- func (NodeMemoryRss) Name() string
- func (NodeMemoryRss) Unit() string
- type NodeMemoryUsage
- func NewNodeMemoryUsage( m metric.Meter, opt ...metric.Int64GaugeOption, ) (NodeMemoryUsage, error)
- func (NodeMemoryUsage) Description() string
- func (m NodeMemoryUsage) Inst() metric.Int64Gauge
- func (NodeMemoryUsage) Name() string
- func (m NodeMemoryUsage) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)
- func (m NodeMemoryUsage) RecordSet(ctx context.Context, val int64, set attribute.Set)
- func (NodeMemoryUsage) Unit() string
- type NodeMemoryWorkingSet
- func NewNodeMemoryWorkingSet( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeMemoryWorkingSet, error)
- func (m NodeMemoryWorkingSet) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m NodeMemoryWorkingSet) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NodeMemoryWorkingSet) Description() string
- func (m NodeMemoryWorkingSet) Inst() metric.Int64UpDownCounter
- func (NodeMemoryWorkingSet) Name() string
- func (NodeMemoryWorkingSet) Unit() string
- type NodeNetworkErrors
- func NewNodeNetworkErrors( m metric.Meter, opt ...metric.Int64CounterOption, ) (NodeNetworkErrors, error)
- func (m NodeNetworkErrors) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (m NodeNetworkErrors) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NodeNetworkErrors) AttrNetworkIODirection(val NetworkIODirectionAttr) attribute.KeyValue
- func (NodeNetworkErrors) AttrNetworkInterfaceName(val string) attribute.KeyValue
- func (NodeNetworkErrors) Description() string
- func (m NodeNetworkErrors) Inst() metric.Int64Counter
- func (NodeNetworkErrors) Name() string
- func (NodeNetworkErrors) Unit() string
- type NodeNetworkIO
- func NewNodeNetworkIO( m metric.Meter, opt ...metric.Int64CounterOption, ) (NodeNetworkIO, error)
- func (m NodeNetworkIO) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (m NodeNetworkIO) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NodeNetworkIO) AttrNetworkIODirection(val NetworkIODirectionAttr) attribute.KeyValue
- func (NodeNetworkIO) AttrNetworkInterfaceName(val string) attribute.KeyValue
- func (NodeNetworkIO) Description() string
- func (m NodeNetworkIO) Inst() metric.Int64Counter
- func (NodeNetworkIO) Name() string
- func (NodeNetworkIO) Unit() string
- type NodePodAllocatable
- func NewNodePodAllocatable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodePodAllocatable, error)
- func (m NodePodAllocatable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m NodePodAllocatable) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (NodePodAllocatable) Description() string
- func (m NodePodAllocatable) Inst() metric.Int64UpDownCounter
- func (NodePodAllocatable) Name() string
- func (NodePodAllocatable) Unit() string
- type NodeUptime
- func NewNodeUptime( m metric.Meter, opt ...metric.Float64GaugeOption, ) (NodeUptime, error)
- func (NodeUptime) Description() string
- func (m NodeUptime) Inst() metric.Float64Gauge
- func (NodeUptime) Name() string
- func (m NodeUptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyValue)
- func (m NodeUptime) RecordSet(ctx context.Context, val float64, set attribute.Set)
- func (NodeUptime) Unit() string
- type PodCPUTime
- func NewPodCPUTime( m metric.Meter, opt ...metric.Float64CounterOption, ) (PodCPUTime, error)
- func (m PodCPUTime) Add(ctx context.Context, incr float64, attrs ...attribute.KeyValue)
- func (m PodCPUTime) AddSet(ctx context.Context, incr float64, set attribute.Set)
- func (PodCPUTime) Description() string
- func (m PodCPUTime) Inst() metric.Float64Counter
- func (PodCPUTime) Name() string
- func (PodCPUTime) Unit() string
- type PodCPUUsage
- func NewPodCPUUsage( m metric.Meter, opt ...metric.Int64GaugeOption, ) (PodCPUUsage, error)
- func (PodCPUUsage) Description() string
- func (m PodCPUUsage) Inst() metric.Int64Gauge
- func (PodCPUUsage) Name() string
- func (m PodCPUUsage) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)
- func (m PodCPUUsage) RecordSet(ctx context.Context, val int64, set attribute.Set)
- func (PodCPUUsage) Unit() string
- type PodFilesystemAvailable
- func NewPodFilesystemAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodFilesystemAvailable, error)
- func (m PodFilesystemAvailable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m PodFilesystemAvailable) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodFilesystemAvailable) Description() string
- func (m PodFilesystemAvailable) Inst() metric.Int64UpDownCounter
- func (PodFilesystemAvailable) Name() string
- func (PodFilesystemAvailable) Unit() string
- type PodFilesystemCapacity
- func NewPodFilesystemCapacity( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodFilesystemCapacity, error)
- func (m PodFilesystemCapacity) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m PodFilesystemCapacity) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodFilesystemCapacity) Description() string
- func (m PodFilesystemCapacity) Inst() metric.Int64UpDownCounter
- func (PodFilesystemCapacity) Name() string
- func (PodFilesystemCapacity) Unit() string
- type PodFilesystemUsage
- func NewPodFilesystemUsage( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodFilesystemUsage, error)
- func (m PodFilesystemUsage) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m PodFilesystemUsage) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodFilesystemUsage) Description() string
- func (m PodFilesystemUsage) Inst() metric.Int64UpDownCounter
- func (PodFilesystemUsage) Name() string
- func (PodFilesystemUsage) Unit() string
- type PodMemoryAvailable
- func NewPodMemoryAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodMemoryAvailable, error)
- func (m PodMemoryAvailable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m PodMemoryAvailable) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodMemoryAvailable) Description() string
- func (m PodMemoryAvailable) Inst() metric.Int64UpDownCounter
- func (PodMemoryAvailable) Name() string
- func (PodMemoryAvailable) Unit() string
- type PodMemoryPagingFaults
- func NewPodMemoryPagingFaults( m metric.Meter, opt ...metric.Int64CounterOption, ) (PodMemoryPagingFaults, error)
- func (m PodMemoryPagingFaults) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (m PodMemoryPagingFaults) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodMemoryPagingFaults) AttrSystemPagingFaultType(val SystemPagingFaultTypeAttr) attribute.KeyValue
- func (PodMemoryPagingFaults) Description() string
- func (m PodMemoryPagingFaults) Inst() metric.Int64Counter
- func (PodMemoryPagingFaults) Name() string
- func (PodMemoryPagingFaults) Unit() string
- type PodMemoryRss
- func NewPodMemoryRss( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodMemoryRss, error)
- func (m PodMemoryRss) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m PodMemoryRss) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodMemoryRss) Description() string
- func (m PodMemoryRss) Inst() metric.Int64UpDownCounter
- func (PodMemoryRss) Name() string
- func (PodMemoryRss) Unit() string
- type PodMemoryUsage
- func NewPodMemoryUsage( m metric.Meter, opt ...metric.Int64GaugeOption, ) (PodMemoryUsage, error)
- func (PodMemoryUsage) Description() string
- func (m PodMemoryUsage) Inst() metric.Int64Gauge
- func (PodMemoryUsage) Name() string
- func (m PodMemoryUsage) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)
- func (m PodMemoryUsage) RecordSet(ctx context.Context, val int64, set attribute.Set)
- func (PodMemoryUsage) Unit() string
- type PodMemoryWorkingSet
- func NewPodMemoryWorkingSet( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodMemoryWorkingSet, error)
- func (m PodMemoryWorkingSet) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m PodMemoryWorkingSet) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodMemoryWorkingSet) Description() string
- func (m PodMemoryWorkingSet) Inst() metric.Int64UpDownCounter
- func (PodMemoryWorkingSet) Name() string
- func (PodMemoryWorkingSet) Unit() string
- type PodNetworkErrors
- func NewPodNetworkErrors( m metric.Meter, opt ...metric.Int64CounterOption, ) (PodNetworkErrors, error)
- func (m PodNetworkErrors) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (m PodNetworkErrors) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodNetworkErrors) AttrNetworkIODirection(val NetworkIODirectionAttr) attribute.KeyValue
- func (PodNetworkErrors) AttrNetworkInterfaceName(val string) attribute.KeyValue
- func (PodNetworkErrors) Description() string
- func (m PodNetworkErrors) Inst() metric.Int64Counter
- func (PodNetworkErrors) Name() string
- func (PodNetworkErrors) Unit() string
- type PodNetworkIO
- func NewPodNetworkIO( m metric.Meter, opt ...metric.Int64CounterOption, ) (PodNetworkIO, error)
- func (m PodNetworkIO) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (m PodNetworkIO) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodNetworkIO) AttrNetworkIODirection(val NetworkIODirectionAttr) attribute.KeyValue
- func (PodNetworkIO) AttrNetworkInterfaceName(val string) attribute.KeyValue
- func (PodNetworkIO) Description() string
- func (m PodNetworkIO) Inst() metric.Int64Counter
- func (PodNetworkIO) Name() string
- func (PodNetworkIO) Unit() string
- type PodStatusPhase
- func NewPodStatusPhase( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodStatusPhase, error)
- func (m PodStatusPhase) Add( ctx context.Context, incr int64, podStatusPhase PodStatusPhaseAttr, attrs ...attribute.KeyValue, )
- func (m PodStatusPhase) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodStatusPhase) Description() string
- func (m PodStatusPhase) Inst() metric.Int64UpDownCounter
- func (PodStatusPhase) Name() string
- func (PodStatusPhase) Unit() string
- type PodStatusPhaseAttr
- type PodStatusReason
- func NewPodStatusReason( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodStatusReason, error)
- func (m PodStatusReason) Add( ctx context.Context, incr int64, podStatusReason PodStatusReasonAttr, attrs ...attribute.KeyValue, )
- func (m PodStatusReason) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodStatusReason) Description() string
- func (m PodStatusReason) Inst() metric.Int64UpDownCounter
- func (PodStatusReason) Name() string
- func (PodStatusReason) Unit() string
- type PodStatusReasonAttr
- type PodUptime
- func NewPodUptime( m metric.Meter, opt ...metric.Float64GaugeOption, ) (PodUptime, error)
- func (PodUptime) Description() string
- func (m PodUptime) Inst() metric.Float64Gauge
- func (PodUptime) Name() string
- func (m PodUptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyValue)
- func (m PodUptime) RecordSet(ctx context.Context, val float64, set attribute.Set)
- func (PodUptime) Unit() string
- type PodVolumeAvailable
- func NewPodVolumeAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodVolumeAvailable, error)
- func (m PodVolumeAvailable) Add( ctx context.Context, incr int64, volumeName string, attrs ...attribute.KeyValue, )
- func (m PodVolumeAvailable) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodVolumeAvailable) AttrVolumeType(val VolumeTypeAttr) attribute.KeyValue
- func (PodVolumeAvailable) Description() string
- func (m PodVolumeAvailable) Inst() metric.Int64UpDownCounter
- func (PodVolumeAvailable) Name() string
- func (PodVolumeAvailable) Unit() string
- type PodVolumeCapacity
- func NewPodVolumeCapacity( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodVolumeCapacity, error)
- func (m PodVolumeCapacity) Add( ctx context.Context, incr int64, volumeName string, attrs ...attribute.KeyValue, )
- func (m PodVolumeCapacity) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodVolumeCapacity) AttrVolumeType(val VolumeTypeAttr) attribute.KeyValue
- func (PodVolumeCapacity) Description() string
- func (m PodVolumeCapacity) Inst() metric.Int64UpDownCounter
- func (PodVolumeCapacity) Name() string
- func (PodVolumeCapacity) Unit() string
- type PodVolumeInodeCount
- func NewPodVolumeInodeCount( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodVolumeInodeCount, error)
- func (m PodVolumeInodeCount) Add( ctx context.Context, incr int64, volumeName string, attrs ...attribute.KeyValue, )
- func (m PodVolumeInodeCount) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodVolumeInodeCount) AttrVolumeType(val VolumeTypeAttr) attribute.KeyValue
- func (PodVolumeInodeCount) Description() string
- func (m PodVolumeInodeCount) Inst() metric.Int64UpDownCounter
- func (PodVolumeInodeCount) Name() string
- func (PodVolumeInodeCount) Unit() string
- type PodVolumeInodeFree
- func NewPodVolumeInodeFree( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodVolumeInodeFree, error)
- func (m PodVolumeInodeFree) Add( ctx context.Context, incr int64, volumeName string, attrs ...attribute.KeyValue, )
- func (m PodVolumeInodeFree) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodVolumeInodeFree) AttrVolumeType(val VolumeTypeAttr) attribute.KeyValue
- func (PodVolumeInodeFree) Description() string
- func (m PodVolumeInodeFree) Inst() metric.Int64UpDownCounter
- func (PodVolumeInodeFree) Name() string
- func (PodVolumeInodeFree) Unit() string
- type PodVolumeInodeUsed
- func NewPodVolumeInodeUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodVolumeInodeUsed, error)
- func (m PodVolumeInodeUsed) Add( ctx context.Context, incr int64, volumeName string, attrs ...attribute.KeyValue, )
- func (m PodVolumeInodeUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodVolumeInodeUsed) AttrVolumeType(val VolumeTypeAttr) attribute.KeyValue
- func (PodVolumeInodeUsed) Description() string
- func (m PodVolumeInodeUsed) Inst() metric.Int64UpDownCounter
- func (PodVolumeInodeUsed) Name() string
- func (PodVolumeInodeUsed) Unit() string
- type PodVolumeUsage
- func NewPodVolumeUsage( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodVolumeUsage, error)
- func (m PodVolumeUsage) Add( ctx context.Context, incr int64, volumeName string, attrs ...attribute.KeyValue, )
- func (m PodVolumeUsage) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (PodVolumeUsage) AttrVolumeType(val VolumeTypeAttr) attribute.KeyValue
- func (PodVolumeUsage) Description() string
- func (m PodVolumeUsage) Inst() metric.Int64UpDownCounter
- func (PodVolumeUsage) Name() string
- func (PodVolumeUsage) Unit() string
- type ReplicaSetPodAvailable
- func NewReplicaSetPodAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ReplicaSetPodAvailable, error)
- func (m ReplicaSetPodAvailable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ReplicaSetPodAvailable) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ReplicaSetPodAvailable) Description() string
- func (m ReplicaSetPodAvailable) Inst() metric.Int64UpDownCounter
- func (ReplicaSetPodAvailable) Name() string
- func (ReplicaSetPodAvailable) Unit() string
- type ReplicaSetPodDesired
- func NewReplicaSetPodDesired( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ReplicaSetPodDesired, error)
- func (m ReplicaSetPodDesired) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ReplicaSetPodDesired) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ReplicaSetPodDesired) Description() string
- func (m ReplicaSetPodDesired) Inst() metric.Int64UpDownCounter
- func (ReplicaSetPodDesired) Name() string
- func (ReplicaSetPodDesired) Unit() string
- type ReplicationControllerPodAvailable
- func NewReplicationControllerPodAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ReplicationControllerPodAvailable, error)
- func (m ReplicationControllerPodAvailable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ReplicationControllerPodAvailable) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ReplicationControllerPodAvailable) Description() string
- func (m ReplicationControllerPodAvailable) Inst() metric.Int64UpDownCounter
- func (ReplicationControllerPodAvailable) Name() string
- func (ReplicationControllerPodAvailable) Unit() string
- type ReplicationControllerPodDesired
- func NewReplicationControllerPodDesired( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ReplicationControllerPodDesired, error)
- func (m ReplicationControllerPodDesired) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ReplicationControllerPodDesired) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ReplicationControllerPodDesired) Description() string
- func (m ReplicationControllerPodDesired) Inst() metric.Int64UpDownCounter
- func (ReplicationControllerPodDesired) Name() string
- func (ReplicationControllerPodDesired) Unit() string
- type ResourceQuotaCPULimitHard
- func NewResourceQuotaCPULimitHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaCPULimitHard, error)
- func (m ResourceQuotaCPULimitHard) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ResourceQuotaCPULimitHard) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaCPULimitHard) Description() string
- func (m ResourceQuotaCPULimitHard) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaCPULimitHard) Name() string
- func (ResourceQuotaCPULimitHard) Unit() string
- type ResourceQuotaCPULimitUsed
- func NewResourceQuotaCPULimitUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaCPULimitUsed, error)
- func (m ResourceQuotaCPULimitUsed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ResourceQuotaCPULimitUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaCPULimitUsed) Description() string
- func (m ResourceQuotaCPULimitUsed) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaCPULimitUsed) Name() string
- func (ResourceQuotaCPULimitUsed) Unit() string
- type ResourceQuotaCPURequestHard
- func NewResourceQuotaCPURequestHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaCPURequestHard, error)
- func (m ResourceQuotaCPURequestHard) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ResourceQuotaCPURequestHard) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaCPURequestHard) Description() string
- func (m ResourceQuotaCPURequestHard) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaCPURequestHard) Name() string
- func (ResourceQuotaCPURequestHard) Unit() string
- type ResourceQuotaCPURequestUsed
- func NewResourceQuotaCPURequestUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaCPURequestUsed, error)
- func (m ResourceQuotaCPURequestUsed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ResourceQuotaCPURequestUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaCPURequestUsed) Description() string
- func (m ResourceQuotaCPURequestUsed) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaCPURequestUsed) Name() string
- func (ResourceQuotaCPURequestUsed) Unit() string
- type ResourceQuotaEphemeralStorageLimitHard
- func NewResourceQuotaEphemeralStorageLimitHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaEphemeralStorageLimitHard, error)
- func (m ResourceQuotaEphemeralStorageLimitHard) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ResourceQuotaEphemeralStorageLimitHard) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaEphemeralStorageLimitHard) Description() string
- func (m ResourceQuotaEphemeralStorageLimitHard) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaEphemeralStorageLimitHard) Name() string
- func (ResourceQuotaEphemeralStorageLimitHard) Unit() string
- type ResourceQuotaEphemeralStorageLimitUsed
- func NewResourceQuotaEphemeralStorageLimitUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaEphemeralStorageLimitUsed, error)
- func (m ResourceQuotaEphemeralStorageLimitUsed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ResourceQuotaEphemeralStorageLimitUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaEphemeralStorageLimitUsed) Description() string
- func (m ResourceQuotaEphemeralStorageLimitUsed) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaEphemeralStorageLimitUsed) Name() string
- func (ResourceQuotaEphemeralStorageLimitUsed) Unit() string
- type ResourceQuotaEphemeralStorageRequestHard
- func NewResourceQuotaEphemeralStorageRequestHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaEphemeralStorageRequestHard, error)
- func (m ResourceQuotaEphemeralStorageRequestHard) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ResourceQuotaEphemeralStorageRequestHard) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaEphemeralStorageRequestHard) Description() string
- func (m ResourceQuotaEphemeralStorageRequestHard) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaEphemeralStorageRequestHard) Name() string
- func (ResourceQuotaEphemeralStorageRequestHard) Unit() string
- type ResourceQuotaEphemeralStorageRequestUsed
- func NewResourceQuotaEphemeralStorageRequestUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaEphemeralStorageRequestUsed, error)
- func (m ResourceQuotaEphemeralStorageRequestUsed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ResourceQuotaEphemeralStorageRequestUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaEphemeralStorageRequestUsed) Description() string
- func (m ResourceQuotaEphemeralStorageRequestUsed) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaEphemeralStorageRequestUsed) Name() string
- func (ResourceQuotaEphemeralStorageRequestUsed) Unit() string
- type ResourceQuotaHugepageCountRequestHard
- func NewResourceQuotaHugepageCountRequestHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaHugepageCountRequestHard, error)
- func (m ResourceQuotaHugepageCountRequestHard) Add( ctx context.Context, incr int64, hugepageSize string, attrs ...attribute.KeyValue, )
- func (m ResourceQuotaHugepageCountRequestHard) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaHugepageCountRequestHard) Description() string
- func (m ResourceQuotaHugepageCountRequestHard) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaHugepageCountRequestHard) Name() string
- func (ResourceQuotaHugepageCountRequestHard) Unit() string
- type ResourceQuotaHugepageCountRequestUsed
- func NewResourceQuotaHugepageCountRequestUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaHugepageCountRequestUsed, error)
- func (m ResourceQuotaHugepageCountRequestUsed) Add( ctx context.Context, incr int64, hugepageSize string, attrs ...attribute.KeyValue, )
- func (m ResourceQuotaHugepageCountRequestUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaHugepageCountRequestUsed) Description() string
- func (m ResourceQuotaHugepageCountRequestUsed) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaHugepageCountRequestUsed) Name() string
- func (ResourceQuotaHugepageCountRequestUsed) Unit() string
- type ResourceQuotaMemoryLimitHard
- func NewResourceQuotaMemoryLimitHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaMemoryLimitHard, error)
- func (m ResourceQuotaMemoryLimitHard) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ResourceQuotaMemoryLimitHard) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaMemoryLimitHard) Description() string
- func (m ResourceQuotaMemoryLimitHard) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaMemoryLimitHard) Name() string
- func (ResourceQuotaMemoryLimitHard) Unit() string
- type ResourceQuotaMemoryLimitUsed
- func NewResourceQuotaMemoryLimitUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaMemoryLimitUsed, error)
- func (m ResourceQuotaMemoryLimitUsed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ResourceQuotaMemoryLimitUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaMemoryLimitUsed) Description() string
- func (m ResourceQuotaMemoryLimitUsed) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaMemoryLimitUsed) Name() string
- func (ResourceQuotaMemoryLimitUsed) Unit() string
- type ResourceQuotaMemoryRequestHard
- func NewResourceQuotaMemoryRequestHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaMemoryRequestHard, error)
- func (m ResourceQuotaMemoryRequestHard) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ResourceQuotaMemoryRequestHard) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaMemoryRequestHard) Description() string
- func (m ResourceQuotaMemoryRequestHard) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaMemoryRequestHard) Name() string
- func (ResourceQuotaMemoryRequestHard) Unit() string
- type ResourceQuotaMemoryRequestUsed
- func NewResourceQuotaMemoryRequestUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaMemoryRequestUsed, error)
- func (m ResourceQuotaMemoryRequestUsed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m ResourceQuotaMemoryRequestUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaMemoryRequestUsed) Description() string
- func (m ResourceQuotaMemoryRequestUsed) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaMemoryRequestUsed) Name() string
- func (ResourceQuotaMemoryRequestUsed) Unit() string
- type ResourceQuotaObjectCountHard
- func NewResourceQuotaObjectCountHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaObjectCountHard, error)
- func (m ResourceQuotaObjectCountHard) Add( ctx context.Context, incr int64, resourcequotaResourceName string, attrs ...attribute.KeyValue, )
- func (m ResourceQuotaObjectCountHard) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaObjectCountHard) Description() string
- func (m ResourceQuotaObjectCountHard) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaObjectCountHard) Name() string
- func (ResourceQuotaObjectCountHard) Unit() string
- type ResourceQuotaObjectCountUsed
- func NewResourceQuotaObjectCountUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaObjectCountUsed, error)
- func (m ResourceQuotaObjectCountUsed) Add( ctx context.Context, incr int64, resourcequotaResourceName string, attrs ...attribute.KeyValue, )
- func (m ResourceQuotaObjectCountUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaObjectCountUsed) Description() string
- func (m ResourceQuotaObjectCountUsed) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaObjectCountUsed) Name() string
- func (ResourceQuotaObjectCountUsed) Unit() string
- type ResourceQuotaPersistentvolumeclaimCountHard
- func NewResourceQuotaPersistentvolumeclaimCountHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaPersistentvolumeclaimCountHard, error)
- func (m ResourceQuotaPersistentvolumeclaimCountHard) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (m ResourceQuotaPersistentvolumeclaimCountHard) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaPersistentvolumeclaimCountHard) AttrStorageclassName(val string) attribute.KeyValue
- func (ResourceQuotaPersistentvolumeclaimCountHard) Description() string
- func (m ResourceQuotaPersistentvolumeclaimCountHard) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaPersistentvolumeclaimCountHard) Name() string
- func (ResourceQuotaPersistentvolumeclaimCountHard) Unit() string
- type ResourceQuotaPersistentvolumeclaimCountUsed
- func NewResourceQuotaPersistentvolumeclaimCountUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaPersistentvolumeclaimCountUsed, error)
- func (m ResourceQuotaPersistentvolumeclaimCountUsed) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (m ResourceQuotaPersistentvolumeclaimCountUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaPersistentvolumeclaimCountUsed) AttrStorageclassName(val string) attribute.KeyValue
- func (ResourceQuotaPersistentvolumeclaimCountUsed) Description() string
- func (m ResourceQuotaPersistentvolumeclaimCountUsed) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaPersistentvolumeclaimCountUsed) Name() string
- func (ResourceQuotaPersistentvolumeclaimCountUsed) Unit() string
- type ResourceQuotaStorageRequestHard
- func NewResourceQuotaStorageRequestHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaStorageRequestHard, error)
- func (m ResourceQuotaStorageRequestHard) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (m ResourceQuotaStorageRequestHard) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaStorageRequestHard) AttrStorageclassName(val string) attribute.KeyValue
- func (ResourceQuotaStorageRequestHard) Description() string
- func (m ResourceQuotaStorageRequestHard) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaStorageRequestHard) Name() string
- func (ResourceQuotaStorageRequestHard) Unit() string
- type ResourceQuotaStorageRequestUsed
- func NewResourceQuotaStorageRequestUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaStorageRequestUsed, error)
- func (m ResourceQuotaStorageRequestUsed) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (m ResourceQuotaStorageRequestUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (ResourceQuotaStorageRequestUsed) AttrStorageclassName(val string) attribute.KeyValue
- func (ResourceQuotaStorageRequestUsed) Description() string
- func (m ResourceQuotaStorageRequestUsed) Inst() metric.Int64UpDownCounter
- func (ResourceQuotaStorageRequestUsed) Name() string
- func (ResourceQuotaStorageRequestUsed) Unit() string
- type ServiceEndpointAddressTypeAttr
- type ServiceEndpointConditionAttr
- type ServiceEndpointCount
- func NewServiceEndpointCount( m metric.Meter, opt ...metric.Int64GaugeOption, ) (ServiceEndpointCount, error)
- func (ServiceEndpointCount) AttrServiceEndpointZone(val string) attribute.KeyValue
- func (ServiceEndpointCount) Description() string
- func (m ServiceEndpointCount) Inst() metric.Int64Gauge
- func (ServiceEndpointCount) Name() string
- func (m ServiceEndpointCount) Record( ctx context.Context, val int64, serviceEndpointAddressType ServiceEndpointAddressTypeAttr, serviceEndpointCondition ServiceEndpointConditionAttr, attrs ...attribute.KeyValue, )
- func (m ServiceEndpointCount) RecordSet(ctx context.Context, val int64, set attribute.Set)
- func (ServiceEndpointCount) Unit() string
- type ServiceLoadBalancerIngressCount
- func NewServiceLoadBalancerIngressCount( m metric.Meter, opt ...metric.Int64GaugeOption, ) (ServiceLoadBalancerIngressCount, error)
- func (ServiceLoadBalancerIngressCount) Description() string
- func (m ServiceLoadBalancerIngressCount) Inst() metric.Int64Gauge
- func (ServiceLoadBalancerIngressCount) Name() string
- func (m ServiceLoadBalancerIngressCount) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)
- func (m ServiceLoadBalancerIngressCount) RecordSet(ctx context.Context, val int64, set attribute.Set)
- func (ServiceLoadBalancerIngressCount) Unit() string
- type StatefulSetPodCurrent
- func NewStatefulSetPodCurrent( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (StatefulSetPodCurrent, error)
- func (m StatefulSetPodCurrent) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m StatefulSetPodCurrent) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (StatefulSetPodCurrent) Description() string
- func (m StatefulSetPodCurrent) Inst() metric.Int64UpDownCounter
- func (StatefulSetPodCurrent) Name() string
- func (StatefulSetPodCurrent) Unit() string
- type StatefulSetPodDesired
- func NewStatefulSetPodDesired( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (StatefulSetPodDesired, error)
- func (m StatefulSetPodDesired) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m StatefulSetPodDesired) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (StatefulSetPodDesired) Description() string
- func (m StatefulSetPodDesired) Inst() metric.Int64UpDownCounter
- func (StatefulSetPodDesired) Name() string
- func (StatefulSetPodDesired) Unit() string
- type StatefulSetPodReady
- func NewStatefulSetPodReady( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (StatefulSetPodReady, error)
- func (m StatefulSetPodReady) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m StatefulSetPodReady) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (StatefulSetPodReady) Description() string
- func (m StatefulSetPodReady) Inst() metric.Int64UpDownCounter
- func (StatefulSetPodReady) Name() string
- func (StatefulSetPodReady) Unit() string
- type StatefulSetPodUpdated
- func NewStatefulSetPodUpdated( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (StatefulSetPodUpdated, error)
- func (m StatefulSetPodUpdated) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (m StatefulSetPodUpdated) AddSet(ctx context.Context, incr int64, set attribute.Set)
- func (StatefulSetPodUpdated) Description() string
- func (m StatefulSetPodUpdated) Inst() metric.Int64UpDownCounter
- func (StatefulSetPodUpdated) Name() string
- func (StatefulSetPodUpdated) Unit() string
- type SystemPagingFaultTypeAttr
- type VolumeTypeAttr
Types ¶
type ContainerCPULimit ¶
type ContainerCPULimit struct {
metric.Int64UpDownCounter
}
ContainerCPULimit is an instrument used to record metric values conforming to the "k8s.container.cpu.limit" semantic conventions. It represents the maximum CPU resource limit set for the container.
func NewContainerCPULimit ¶
func NewContainerCPULimit( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerCPULimit, error)
NewContainerCPULimit returns a new ContainerCPULimit instrument.
func (ContainerCPULimit) Add ¶
Add adds incr to the existing count for attrs.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerCPULimit) AddSet ¶
AddSet adds incr to the existing count for set.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerCPULimit) Description ¶
func (ContainerCPULimit) Description() string
Description returns the semantic convention description of the instrument
func (ContainerCPULimit) Inst ¶
func (m ContainerCPULimit) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ContainerCPULimit) Name ¶
func (ContainerCPULimit) Name() string
Name returns the semantic convention name of the instrument.
func (ContainerCPULimit) Unit ¶
func (ContainerCPULimit) Unit() string
Unit returns the semantic convention unit of the instrument
type ContainerCPULimitUtilization ¶
type ContainerCPULimitUtilization struct {
metric.Int64Gauge
}
ContainerCPULimitUtilization is an instrument used to record metric values conforming to the "k8s.container.cpu.limit_utilization" semantic conventions. It represents the ratio of container CPU usage to its CPU limit.
func NewContainerCPULimitUtilization ¶
func NewContainerCPULimitUtilization( m metric.Meter, opt ...metric.Int64GaugeOption, ) (ContainerCPULimitUtilization, error)
NewContainerCPULimitUtilization returns a new ContainerCPULimitUtilization instrument.
func (ContainerCPULimitUtilization) Description ¶
func (ContainerCPULimitUtilization) Description() string
Description returns the semantic convention description of the instrument
func (ContainerCPULimitUtilization) Inst ¶
func (m ContainerCPULimitUtilization) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
func (ContainerCPULimitUtilization) Name ¶
func (ContainerCPULimitUtilization) Name() string
Name returns the semantic convention name of the instrument.
func (ContainerCPULimitUtilization) Record ¶
func (m ContainerCPULimitUtilization) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)
Record records val to the current distribution for attrs.
The value range is [0.0,1.0]. A value of 1.0 means the container is using 100% of its CPU limit. If the CPU limit is not set, this metric SHOULD NOT be emitted for that container.
func (ContainerCPULimitUtilization) RecordSet ¶
RecordSet records val to the current distribution for set.
The value range is [0.0,1.0]. A value of 1.0 means the container is using 100% of its CPU limit. If the CPU limit is not set, this metric SHOULD NOT be emitted for that container.
func (ContainerCPULimitUtilization) Unit ¶
func (ContainerCPULimitUtilization) Unit() string
Unit returns the semantic convention unit of the instrument
type ContainerCPURequest ¶
type ContainerCPURequest struct {
metric.Int64UpDownCounter
}
ContainerCPURequest is an instrument used to record metric values conforming to the "k8s.container.cpu.request" semantic conventions. It represents the CPU resource requested for the container.
func NewContainerCPURequest ¶
func NewContainerCPURequest( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerCPURequest, error)
NewContainerCPURequest returns a new ContainerCPURequest instrument.
func (ContainerCPURequest) Add ¶
Add adds incr to the existing count for attrs.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerCPURequest) AddSet ¶
AddSet adds incr to the existing count for set.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerCPURequest) Description ¶
func (ContainerCPURequest) Description() string
Description returns the semantic convention description of the instrument
func (ContainerCPURequest) Inst ¶
func (m ContainerCPURequest) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ContainerCPURequest) Name ¶
func (ContainerCPURequest) Name() string
Name returns the semantic convention name of the instrument.
func (ContainerCPURequest) Unit ¶
func (ContainerCPURequest) Unit() string
Unit returns the semantic convention unit of the instrument
type ContainerCPURequestUtilization ¶
type ContainerCPURequestUtilization struct {
metric.Int64Gauge
}
ContainerCPURequestUtilization is an instrument used to record metric values conforming to the "k8s.container.cpu.request_utilization" semantic conventions. It represents the ratio of container CPU usage to its CPU request.
func NewContainerCPURequestUtilization ¶
func NewContainerCPURequestUtilization( m metric.Meter, opt ...metric.Int64GaugeOption, ) (ContainerCPURequestUtilization, error)
NewContainerCPURequestUtilization returns a new ContainerCPURequestUtilization instrument.
func (ContainerCPURequestUtilization) Description ¶
func (ContainerCPURequestUtilization) Description() string
Description returns the semantic convention description of the instrument
func (ContainerCPURequestUtilization) Inst ¶
func (m ContainerCPURequestUtilization) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
func (ContainerCPURequestUtilization) Name ¶
func (ContainerCPURequestUtilization) Name() string
Name returns the semantic convention name of the instrument.
func (ContainerCPURequestUtilization) Record ¶
func (m ContainerCPURequestUtilization) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)
Record records val to the current distribution for attrs.
func (ContainerCPURequestUtilization) RecordSet ¶
func (m ContainerCPURequestUtilization) RecordSet(ctx context.Context, val int64, set attribute.Set)
RecordSet records val to the current distribution for set.
func (ContainerCPURequestUtilization) Unit ¶
func (ContainerCPURequestUtilization) Unit() string
Unit returns the semantic convention unit of the instrument
type ContainerEphemeralStorageLimit ¶
type ContainerEphemeralStorageLimit struct {
metric.Int64UpDownCounter
}
ContainerEphemeralStorageLimit is an instrument used to record metric values conforming to the "k8s.container.ephemeral_storage.limit" semantic conventions. It represents the maximum ephemeral storage resource limit set for the container.
func NewContainerEphemeralStorageLimit ¶
func NewContainerEphemeralStorageLimit( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerEphemeralStorageLimit, error)
NewContainerEphemeralStorageLimit returns a new ContainerEphemeralStorageLimit instrument.
func (ContainerEphemeralStorageLimit) Add ¶
func (m ContainerEphemeralStorageLimit) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerEphemeralStorageLimit) AddSet ¶
AddSet adds incr to the existing count for set.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerEphemeralStorageLimit) Description ¶
func (ContainerEphemeralStorageLimit) Description() string
Description returns the semantic convention description of the instrument
func (ContainerEphemeralStorageLimit) Inst ¶
func (m ContainerEphemeralStorageLimit) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ContainerEphemeralStorageLimit) Name ¶
func (ContainerEphemeralStorageLimit) Name() string
Name returns the semantic convention name of the instrument.
func (ContainerEphemeralStorageLimit) Unit ¶
func (ContainerEphemeralStorageLimit) Unit() string
Unit returns the semantic convention unit of the instrument
type ContainerEphemeralStorageRequest ¶
type ContainerEphemeralStorageRequest struct {
metric.Int64UpDownCounter
}
ContainerEphemeralStorageRequest is an instrument used to record metric values conforming to the "k8s.container.ephemeral_storage.request" semantic conventions. It represents the ephemeral storage resource requested for the container.
func NewContainerEphemeralStorageRequest ¶
func NewContainerEphemeralStorageRequest( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerEphemeralStorageRequest, error)
NewContainerEphemeralStorageRequest returns a new ContainerEphemeralStorageRequest instrument.
func (ContainerEphemeralStorageRequest) Add ¶
func (m ContainerEphemeralStorageRequest) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerEphemeralStorageRequest) AddSet ¶
func (m ContainerEphemeralStorageRequest) AddSet(ctx context.Context, incr int64, set attribute.Set)
AddSet adds incr to the existing count for set.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerEphemeralStorageRequest) Description ¶
func (ContainerEphemeralStorageRequest) Description() string
Description returns the semantic convention description of the instrument
func (ContainerEphemeralStorageRequest) Inst ¶
func (m ContainerEphemeralStorageRequest) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ContainerEphemeralStorageRequest) Name ¶
func (ContainerEphemeralStorageRequest) Name() string
Name returns the semantic convention name of the instrument.
func (ContainerEphemeralStorageRequest) Unit ¶
func (ContainerEphemeralStorageRequest) Unit() string
Unit returns the semantic convention unit of the instrument
type ContainerMemoryLimit ¶
type ContainerMemoryLimit struct {
metric.Int64UpDownCounter
}
ContainerMemoryLimit is an instrument used to record metric values conforming to the "k8s.container.memory.limit" semantic conventions. It represents the maximum memory resource limit set for the container.
func NewContainerMemoryLimit ¶
func NewContainerMemoryLimit( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerMemoryLimit, error)
NewContainerMemoryLimit returns a new ContainerMemoryLimit instrument.
func (ContainerMemoryLimit) Add ¶
Add adds incr to the existing count for attrs.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerMemoryLimit) AddSet ¶
AddSet adds incr to the existing count for set.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerMemoryLimit) Description ¶
func (ContainerMemoryLimit) Description() string
Description returns the semantic convention description of the instrument
func (ContainerMemoryLimit) Inst ¶
func (m ContainerMemoryLimit) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ContainerMemoryLimit) Name ¶
func (ContainerMemoryLimit) Name() string
Name returns the semantic convention name of the instrument.
func (ContainerMemoryLimit) Unit ¶
func (ContainerMemoryLimit) Unit() string
Unit returns the semantic convention unit of the instrument
type ContainerMemoryRequest ¶
type ContainerMemoryRequest struct {
metric.Int64UpDownCounter
}
ContainerMemoryRequest is an instrument used to record metric values conforming to the "k8s.container.memory.request" semantic conventions. It represents the memory resource requested for the container.
func NewContainerMemoryRequest ¶
func NewContainerMemoryRequest( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerMemoryRequest, error)
NewContainerMemoryRequest returns a new ContainerMemoryRequest instrument.
func (ContainerMemoryRequest) Add ¶
Add adds incr to the existing count for attrs.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerMemoryRequest) AddSet ¶
AddSet adds incr to the existing count for set.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerMemoryRequest) Description ¶
func (ContainerMemoryRequest) Description() string
Description returns the semantic convention description of the instrument
func (ContainerMemoryRequest) Inst ¶
func (m ContainerMemoryRequest) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ContainerMemoryRequest) Name ¶
func (ContainerMemoryRequest) Name() string
Name returns the semantic convention name of the instrument.
func (ContainerMemoryRequest) Unit ¶
func (ContainerMemoryRequest) Unit() string
Unit returns the semantic convention unit of the instrument
type ContainerReady ¶
type ContainerReady struct {
metric.Int64UpDownCounter
}
ContainerReady is an instrument used to record metric values conforming to the "k8s.container.ready" semantic conventions. It represents the indicates whether the container is currently marked as ready to accept traffic, based on its readiness probe (1 = ready, 0 = not ready).
func NewContainerReady ¶
func NewContainerReady( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerReady, error)
NewContainerReady returns a new ContainerReady instrument.
func (ContainerReady) Add ¶
Add adds incr to the existing count for attrs.
This metric SHOULD reflect the value of the `ready` field in the K8s ContainerStatus.
func (ContainerReady) AddSet ¶
AddSet adds incr to the existing count for set.
This metric SHOULD reflect the value of the `ready` field in the K8s ContainerStatus.
func (ContainerReady) Description ¶
func (ContainerReady) Description() string
Description returns the semantic convention description of the instrument
func (ContainerReady) Inst ¶
func (m ContainerReady) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ContainerReady) Name ¶
func (ContainerReady) Name() string
Name returns the semantic convention name of the instrument.
func (ContainerReady) Unit ¶
func (ContainerReady) Unit() string
Unit returns the semantic convention unit of the instrument
type ContainerRestartCount ¶
type ContainerRestartCount struct {
metric.Int64UpDownCounter
}
ContainerRestartCount is an instrument used to record metric values conforming to the "k8s.container.restart.count" semantic conventions. It represents the describes how many times the container has restarted (since the last counter reset).
func NewContainerRestartCount ¶
func NewContainerRestartCount( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerRestartCount, error)
NewContainerRestartCount returns a new ContainerRestartCount instrument.
func (ContainerRestartCount) Add ¶
Add adds incr to the existing count for attrs.
This value is pulled directly from the K8s API and the value can go indefinitely high and be reset to 0 at any time depending on how your kubelet is configured to prune dead containers. It is best to not depend too much on the exact value but rather look at it as either == 0, in which case you can conclude there were no restarts in the recent past, or > 0, in which case you can conclude there were restarts in the recent past, and not try and analyze the value beyond that.
func (ContainerRestartCount) AddSet ¶
AddSet adds incr to the existing count for set.
This value is pulled directly from the K8s API and the value can go indefinitely high and be reset to 0 at any time depending on how your kubelet is configured to prune dead containers. It is best to not depend too much on the exact value but rather look at it as either == 0, in which case you can conclude there were no restarts in the recent past, or > 0, in which case you can conclude there were restarts in the recent past, and not try and analyze the value beyond that.
func (ContainerRestartCount) Description ¶
func (ContainerRestartCount) Description() string
Description returns the semantic convention description of the instrument
func (ContainerRestartCount) Inst ¶
func (m ContainerRestartCount) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ContainerRestartCount) Name ¶
func (ContainerRestartCount) Name() string
Name returns the semantic convention name of the instrument.
func (ContainerRestartCount) Unit ¶
func (ContainerRestartCount) Unit() string
Unit returns the semantic convention unit of the instrument
type ContainerStatusReason ¶
type ContainerStatusReason struct {
metric.Int64UpDownCounter
}
ContainerStatusReason is an instrument used to record metric values conforming to the "k8s.container.status.reason" semantic conventions. It represents the describes the number of K8s containers that are currently in a state for a given reason.
func NewContainerStatusReason ¶
func NewContainerStatusReason( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerStatusReason, error)
NewContainerStatusReason returns a new ContainerStatusReason instrument.
func (ContainerStatusReason) Add ¶
func (m ContainerStatusReason) Add( ctx context.Context, incr int64, containerStatusReason ContainerStatusReasonAttr, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The containerStatusReason is the the reason for the container state. Corresponds to the `reason` field of the: K8s ContainerStateWaiting or K8s ContainerStateTerminated
All possible container state reasons will be reported at each time interval to avoid missing metrics. Only the value corresponding to the current state reason will be non-zero.
func (ContainerStatusReason) AddSet ¶
AddSet adds incr to the existing count for set.
All possible container state reasons will be reported at each time interval to avoid missing metrics. Only the value corresponding to the current state reason will be non-zero.
func (ContainerStatusReason) Description ¶
func (ContainerStatusReason) Description() string
Description returns the semantic convention description of the instrument
func (ContainerStatusReason) Inst ¶
func (m ContainerStatusReason) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ContainerStatusReason) Name ¶
func (ContainerStatusReason) Name() string
Name returns the semantic convention name of the instrument.
func (ContainerStatusReason) Unit ¶
func (ContainerStatusReason) Unit() string
Unit returns the semantic convention unit of the instrument
type ContainerStatusReasonAttr ¶
type ContainerStatusReasonAttr string
ContainerStatusReasonAttr is an attribute conforming to the k8s.container.status.reason semantic conventions. It represents the reason for the container state. Corresponds to the `reason` field of the: K8s ContainerStateWaiting or K8s ContainerStateTerminated.
var ( // ContainerStatusReasonContainerCreating is the container is being created. ContainerStatusReasonContainerCreating ContainerStatusReasonAttr = "ContainerCreating" // ContainerStatusReasonCrashLoopBackOff is the container is in a crash loop // back off state. ContainerStatusReasonCrashLoopBackOff ContainerStatusReasonAttr = "CrashLoopBackOff" // ContainerStatusReasonCreateContainerConfigError is the there was an error // creating the container configuration. ContainerStatusReasonCreateContainerConfigError ContainerStatusReasonAttr = "CreateContainerConfigError" // ContainerStatusReasonErrImagePull is the there was an error pulling the // container image. ContainerStatusReasonErrImagePull ContainerStatusReasonAttr = "ErrImagePull" // ContainerStatusReasonImagePullBackOff is the container image pull is in back // off state. ContainerStatusReasonImagePullBackOff ContainerStatusReasonAttr = "ImagePullBackOff" // ContainerStatusReasonOomKilled is the container was killed due to out of // memory. ContainerStatusReasonOomKilled ContainerStatusReasonAttr = "OOMKilled" // ContainerStatusReasonCompleted is the container has completed execution. ContainerStatusReasonCompleted ContainerStatusReasonAttr = "Completed" // ContainerStatusReasonError is the there was an error with the container. ContainerStatusReasonError ContainerStatusReasonAttr = "Error" // ContainerStatusReasonContainerCannotRun is the container cannot run. ContainerStatusReasonContainerCannotRun ContainerStatusReasonAttr = "ContainerCannotRun" )
type ContainerStatusState ¶
type ContainerStatusState struct {
metric.Int64UpDownCounter
}
ContainerStatusState is an instrument used to record metric values conforming to the "k8s.container.status.state" semantic conventions. It represents the describes the number of K8s containers that are currently in a given state.
func NewContainerStatusState ¶
func NewContainerStatusState( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerStatusState, error)
NewContainerStatusState returns a new ContainerStatusState instrument.
func (ContainerStatusState) Add ¶
func (m ContainerStatusState) Add( ctx context.Context, incr int64, containerStatusState ContainerStatusStateAttr, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The containerStatusState is the the state of the container. K8s ContainerState
All possible container states will be reported at each time interval to avoid missing metrics. Only the value corresponding to the current state will be non-zero.
func (ContainerStatusState) AddSet ¶
AddSet adds incr to the existing count for set.
All possible container states will be reported at each time interval to avoid missing metrics. Only the value corresponding to the current state will be non-zero.
func (ContainerStatusState) Description ¶
func (ContainerStatusState) Description() string
Description returns the semantic convention description of the instrument
func (ContainerStatusState) Inst ¶
func (m ContainerStatusState) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ContainerStatusState) Name ¶
func (ContainerStatusState) Name() string
Name returns the semantic convention name of the instrument.
func (ContainerStatusState) Unit ¶
func (ContainerStatusState) Unit() string
Unit returns the semantic convention unit of the instrument
type ContainerStatusStateAttr ¶
type ContainerStatusStateAttr string
ContainerStatusStateAttr is an attribute conforming to the k8s.container.status.state semantic conventions. It represents the state of the container. K8s ContainerState.
var ( // ContainerStatusStateTerminated is the container has terminated. ContainerStatusStateTerminated ContainerStatusStateAttr = "terminated" // ContainerStatusStateRunning is the container is running. ContainerStatusStateRunning ContainerStatusStateAttr = "running" // ContainerStatusStateWaiting is the container is waiting. ContainerStatusStateWaiting ContainerStatusStateAttr = "waiting" )
type ContainerStorageLimit ¶
type ContainerStorageLimit struct {
metric.Int64UpDownCounter
}
ContainerStorageLimit is an instrument used to record metric values conforming to the "k8s.container.storage.limit" semantic conventions. It represents the maximum storage resource limit set for the container.
func NewContainerStorageLimit ¶
func NewContainerStorageLimit( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerStorageLimit, error)
NewContainerStorageLimit returns a new ContainerStorageLimit instrument.
func (ContainerStorageLimit) Add ¶
Add adds incr to the existing count for attrs.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerStorageLimit) AddSet ¶
AddSet adds incr to the existing count for set.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerStorageLimit) Description ¶
func (ContainerStorageLimit) Description() string
Description returns the semantic convention description of the instrument
func (ContainerStorageLimit) Inst ¶
func (m ContainerStorageLimit) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ContainerStorageLimit) Name ¶
func (ContainerStorageLimit) Name() string
Name returns the semantic convention name of the instrument.
func (ContainerStorageLimit) Unit ¶
func (ContainerStorageLimit) Unit() string
Unit returns the semantic convention unit of the instrument
type ContainerStorageRequest ¶
type ContainerStorageRequest struct {
metric.Int64UpDownCounter
}
ContainerStorageRequest is an instrument used to record metric values conforming to the "k8s.container.storage.request" semantic conventions. It represents the storage resource requested for the container.
func NewContainerStorageRequest ¶
func NewContainerStorageRequest( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ContainerStorageRequest, error)
NewContainerStorageRequest returns a new ContainerStorageRequest instrument.
func (ContainerStorageRequest) Add ¶
Add adds incr to the existing count for attrs.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerStorageRequest) AddSet ¶
AddSet adds incr to the existing count for set.
See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details.
func (ContainerStorageRequest) Description ¶
func (ContainerStorageRequest) Description() string
Description returns the semantic convention description of the instrument
func (ContainerStorageRequest) Inst ¶
func (m ContainerStorageRequest) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ContainerStorageRequest) Name ¶
func (ContainerStorageRequest) Name() string
Name returns the semantic convention name of the instrument.
func (ContainerStorageRequest) Unit ¶
func (ContainerStorageRequest) Unit() string
Unit returns the semantic convention unit of the instrument
type CronJobJobActive ¶
type CronJobJobActive struct {
metric.Int64UpDownCounter
}
CronJobJobActive is an instrument used to record metric values conforming to the "k8s.cronjob.job.active" semantic conventions. It represents the number of actively running jobs for a cronjob.
func NewCronJobJobActive ¶
func NewCronJobJobActive( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (CronJobJobActive, error)
NewCronJobJobActive returns a new CronJobJobActive instrument.
func (CronJobJobActive) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `active` field of the K8s CronJobStatus.
func (CronJobJobActive) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `active` field of the K8s CronJobStatus.
func (CronJobJobActive) Description ¶
func (CronJobJobActive) Description() string
Description returns the semantic convention description of the instrument
func (CronJobJobActive) Inst ¶
func (m CronJobJobActive) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (CronJobJobActive) Name ¶
func (CronJobJobActive) Name() string
Name returns the semantic convention name of the instrument.
func (CronJobJobActive) Unit ¶
func (CronJobJobActive) Unit() string
Unit returns the semantic convention unit of the instrument
type DaemonSetNodeCurrentScheduled ¶
type DaemonSetNodeCurrentScheduled struct {
metric.Int64UpDownCounter
}
DaemonSetNodeCurrentScheduled is an instrument used to record metric values conforming to the "k8s.daemonset.node.current_scheduled" semantic conventions. It represents the number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod.
func NewDaemonSetNodeCurrentScheduled ¶
func NewDaemonSetNodeCurrentScheduled( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DaemonSetNodeCurrentScheduled, error)
NewDaemonSetNodeCurrentScheduled returns a new DaemonSetNodeCurrentScheduled instrument.
func (DaemonSetNodeCurrentScheduled) Add ¶
func (m DaemonSetNodeCurrentScheduled) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric aligns with the `currentNumberScheduled` field of the K8s DaemonSetStatus.
func (DaemonSetNodeCurrentScheduled) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `currentNumberScheduled` field of the K8s DaemonSetStatus.
func (DaemonSetNodeCurrentScheduled) Description ¶
func (DaemonSetNodeCurrentScheduled) Description() string
Description returns the semantic convention description of the instrument
func (DaemonSetNodeCurrentScheduled) Inst ¶
func (m DaemonSetNodeCurrentScheduled) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (DaemonSetNodeCurrentScheduled) Name ¶
func (DaemonSetNodeCurrentScheduled) Name() string
Name returns the semantic convention name of the instrument.
func (DaemonSetNodeCurrentScheduled) Unit ¶
func (DaemonSetNodeCurrentScheduled) Unit() string
Unit returns the semantic convention unit of the instrument
type DaemonSetNodeDesiredScheduled ¶
type DaemonSetNodeDesiredScheduled struct {
metric.Int64UpDownCounter
}
DaemonSetNodeDesiredScheduled is an instrument used to record metric values conforming to the "k8s.daemonset.node.desired_scheduled" semantic conventions. It represents the number of nodes that should be running the daemon pod (including nodes currently running the daemon pod).
func NewDaemonSetNodeDesiredScheduled ¶
func NewDaemonSetNodeDesiredScheduled( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DaemonSetNodeDesiredScheduled, error)
NewDaemonSetNodeDesiredScheduled returns a new DaemonSetNodeDesiredScheduled instrument.
func (DaemonSetNodeDesiredScheduled) Add ¶
func (m DaemonSetNodeDesiredScheduled) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric aligns with the `desiredNumberScheduled` field of the K8s DaemonSetStatus.
func (DaemonSetNodeDesiredScheduled) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `desiredNumberScheduled` field of the K8s DaemonSetStatus.
func (DaemonSetNodeDesiredScheduled) Description ¶
func (DaemonSetNodeDesiredScheduled) Description() string
Description returns the semantic convention description of the instrument
func (DaemonSetNodeDesiredScheduled) Inst ¶
func (m DaemonSetNodeDesiredScheduled) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (DaemonSetNodeDesiredScheduled) Name ¶
func (DaemonSetNodeDesiredScheduled) Name() string
Name returns the semantic convention name of the instrument.
func (DaemonSetNodeDesiredScheduled) Unit ¶
func (DaemonSetNodeDesiredScheduled) Unit() string
Unit returns the semantic convention unit of the instrument
type DaemonSetNodeMisscheduled ¶
type DaemonSetNodeMisscheduled struct {
metric.Int64UpDownCounter
}
DaemonSetNodeMisscheduled is an instrument used to record metric values conforming to the "k8s.daemonset.node.misscheduled" semantic conventions. It represents the number of nodes that are running the daemon pod, but are not supposed to run the daemon pod.
func NewDaemonSetNodeMisscheduled ¶
func NewDaemonSetNodeMisscheduled( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DaemonSetNodeMisscheduled, error)
NewDaemonSetNodeMisscheduled returns a new DaemonSetNodeMisscheduled instrument.
func (DaemonSetNodeMisscheduled) Add ¶
func (m DaemonSetNodeMisscheduled) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric aligns with the `numberMisscheduled` field of the K8s DaemonSetStatus.
func (DaemonSetNodeMisscheduled) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `numberMisscheduled` field of the K8s DaemonSetStatus.
func (DaemonSetNodeMisscheduled) Description ¶
func (DaemonSetNodeMisscheduled) Description() string
Description returns the semantic convention description of the instrument
func (DaemonSetNodeMisscheduled) Inst ¶
func (m DaemonSetNodeMisscheduled) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (DaemonSetNodeMisscheduled) Name ¶
func (DaemonSetNodeMisscheduled) Name() string
Name returns the semantic convention name of the instrument.
func (DaemonSetNodeMisscheduled) Unit ¶
func (DaemonSetNodeMisscheduled) Unit() string
Unit returns the semantic convention unit of the instrument
type DaemonSetNodeReady ¶
type DaemonSetNodeReady struct {
metric.Int64UpDownCounter
}
DaemonSetNodeReady is an instrument used to record metric values conforming to the "k8s.daemonset.node.ready" semantic conventions. It represents the number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.
func NewDaemonSetNodeReady ¶
func NewDaemonSetNodeReady( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DaemonSetNodeReady, error)
NewDaemonSetNodeReady returns a new DaemonSetNodeReady instrument.
func (DaemonSetNodeReady) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `numberReady` field of the K8s DaemonSetStatus.
func (DaemonSetNodeReady) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `numberReady` field of the K8s DaemonSetStatus.
func (DaemonSetNodeReady) Description ¶
func (DaemonSetNodeReady) Description() string
Description returns the semantic convention description of the instrument
func (DaemonSetNodeReady) Inst ¶
func (m DaemonSetNodeReady) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (DaemonSetNodeReady) Name ¶
func (DaemonSetNodeReady) Name() string
Name returns the semantic convention name of the instrument.
func (DaemonSetNodeReady) Unit ¶
func (DaemonSetNodeReady) Unit() string
Unit returns the semantic convention unit of the instrument
type DeploymentPodAvailable ¶
type DeploymentPodAvailable struct {
metric.Int64UpDownCounter
}
DeploymentPodAvailable is an instrument used to record metric values conforming to the "k8s.deployment.pod.available" semantic conventions. It represents the total number of available replica pods (ready for at least minReadySeconds) targeted by this deployment.
func NewDeploymentPodAvailable ¶
func NewDeploymentPodAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DeploymentPodAvailable, error)
NewDeploymentPodAvailable returns a new DeploymentPodAvailable instrument.
func (DeploymentPodAvailable) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `availableReplicas` field of the K8s DeploymentStatus.
func (DeploymentPodAvailable) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `availableReplicas` field of the K8s DeploymentStatus.
func (DeploymentPodAvailable) Description ¶
func (DeploymentPodAvailable) Description() string
Description returns the semantic convention description of the instrument
func (DeploymentPodAvailable) Inst ¶
func (m DeploymentPodAvailable) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (DeploymentPodAvailable) Name ¶
func (DeploymentPodAvailable) Name() string
Name returns the semantic convention name of the instrument.
func (DeploymentPodAvailable) Unit ¶
func (DeploymentPodAvailable) Unit() string
Unit returns the semantic convention unit of the instrument
type DeploymentPodDesired ¶
type DeploymentPodDesired struct {
metric.Int64UpDownCounter
}
DeploymentPodDesired is an instrument used to record metric values conforming to the "k8s.deployment.pod.desired" semantic conventions. It represents the number of desired replica pods in this deployment.
func NewDeploymentPodDesired ¶
func NewDeploymentPodDesired( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DeploymentPodDesired, error)
NewDeploymentPodDesired returns a new DeploymentPodDesired instrument.
func (DeploymentPodDesired) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `replicas` field of the K8s DeploymentSpec.
func (DeploymentPodDesired) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `replicas` field of the K8s DeploymentSpec.
func (DeploymentPodDesired) Description ¶
func (DeploymentPodDesired) Description() string
Description returns the semantic convention description of the instrument
func (DeploymentPodDesired) Inst ¶
func (m DeploymentPodDesired) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (DeploymentPodDesired) Name ¶
func (DeploymentPodDesired) Name() string
Name returns the semantic convention name of the instrument.
func (DeploymentPodDesired) Unit ¶
func (DeploymentPodDesired) Unit() string
Unit returns the semantic convention unit of the instrument
type HPAMetricTargetCPUAverageUtilization ¶
type HPAMetricTargetCPUAverageUtilization struct {
metric.Int64Gauge
}
HPAMetricTargetCPUAverageUtilization is an instrument used to record metric values conforming to the "k8s.hpa.metric.target.cpu.average_utilization" semantic conventions. It represents the target average utilization, in percentage, for CPU resource in HPA config.
func NewHPAMetricTargetCPUAverageUtilization ¶
func NewHPAMetricTargetCPUAverageUtilization( m metric.Meter, opt ...metric.Int64GaugeOption, ) (HPAMetricTargetCPUAverageUtilization, error)
NewHPAMetricTargetCPUAverageUtilization returns a new HPAMetricTargetCPUAverageUtilization instrument.
func (HPAMetricTargetCPUAverageUtilization) AttrContainerName ¶
func (HPAMetricTargetCPUAverageUtilization) AttrContainerName(val string) attribute.KeyValue
AttrContainerName returns an optional attribute for the "k8s.container.name" semantic convention. It represents the name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`).
func (HPAMetricTargetCPUAverageUtilization) AttrHPAMetricType ¶
func (HPAMetricTargetCPUAverageUtilization) AttrHPAMetricType(val string) attribute.KeyValue
AttrHPAMetricType returns an optional attribute for the "k8s.hpa.metric.type" semantic convention. It represents the type of metric source for the horizontal pod autoscaler.
func (HPAMetricTargetCPUAverageUtilization) Description ¶
func (HPAMetricTargetCPUAverageUtilization) Description() string
Description returns the semantic convention description of the instrument
func (HPAMetricTargetCPUAverageUtilization) Inst ¶
func (m HPAMetricTargetCPUAverageUtilization) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
func (HPAMetricTargetCPUAverageUtilization) Name ¶
func (HPAMetricTargetCPUAverageUtilization) Name() string
Name returns the semantic convention name of the instrument.
func (HPAMetricTargetCPUAverageUtilization) Record ¶
func (m HPAMetricTargetCPUAverageUtilization) Record( ctx context.Context, val int64, attrs ...attribute.KeyValue, )
Record records val to the current distribution for attrs.
All additional attrs passed are included in the recorded value.
This metric aligns with the `averageUtilization` field of the K8s HPA MetricTarget. If the type of the metric is `ContainerResource`, the `k8s.container.name` attribute MUST be set to identify the specific container within the pod to which the metric applies.
func (HPAMetricTargetCPUAverageUtilization) RecordSet ¶
func (m HPAMetricTargetCPUAverageUtilization) RecordSet(ctx context.Context, val int64, set attribute.Set)
RecordSet records val to the current distribution for set.
This metric aligns with the `averageUtilization` field of the K8s HPA MetricTarget. If the type of the metric is `ContainerResource`, the `k8s.container.name` attribute MUST be set to identify the specific container within the pod to which the metric applies.
func (HPAMetricTargetCPUAverageUtilization) Unit ¶
func (HPAMetricTargetCPUAverageUtilization) Unit() string
Unit returns the semantic convention unit of the instrument
type HPAMetricTargetCPUAverageValue ¶
type HPAMetricTargetCPUAverageValue struct {
metric.Int64Gauge
}
HPAMetricTargetCPUAverageValue is an instrument used to record metric values conforming to the "k8s.hpa.metric.target.cpu.average_value" semantic conventions. It represents the target average value for CPU resource in HPA config.
func NewHPAMetricTargetCPUAverageValue ¶
func NewHPAMetricTargetCPUAverageValue( m metric.Meter, opt ...metric.Int64GaugeOption, ) (HPAMetricTargetCPUAverageValue, error)
NewHPAMetricTargetCPUAverageValue returns a new HPAMetricTargetCPUAverageValue instrument.
func (HPAMetricTargetCPUAverageValue) AttrContainerName ¶
func (HPAMetricTargetCPUAverageValue) AttrContainerName(val string) attribute.KeyValue
AttrContainerName returns an optional attribute for the "k8s.container.name" semantic convention. It represents the name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`).
func (HPAMetricTargetCPUAverageValue) AttrHPAMetricType ¶
func (HPAMetricTargetCPUAverageValue) AttrHPAMetricType(val string) attribute.KeyValue
AttrHPAMetricType returns an optional attribute for the "k8s.hpa.metric.type" semantic convention. It represents the type of metric source for the horizontal pod autoscaler.
func (HPAMetricTargetCPUAverageValue) Description ¶
func (HPAMetricTargetCPUAverageValue) Description() string
Description returns the semantic convention description of the instrument
func (HPAMetricTargetCPUAverageValue) Inst ¶
func (m HPAMetricTargetCPUAverageValue) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
func (HPAMetricTargetCPUAverageValue) Name ¶
func (HPAMetricTargetCPUAverageValue) Name() string
Name returns the semantic convention name of the instrument.
func (HPAMetricTargetCPUAverageValue) Record ¶
func (m HPAMetricTargetCPUAverageValue) Record( ctx context.Context, val int64, attrs ...attribute.KeyValue, )
Record records val to the current distribution for attrs.
All additional attrs passed are included in the recorded value.
This metric aligns with the `averageValue` field of the K8s HPA MetricTarget. If the type of the metric is `ContainerResource`, the `k8s.container.name` attribute MUST be set to identify the specific container within the pod to which the metric applies.
func (HPAMetricTargetCPUAverageValue) RecordSet ¶
func (m HPAMetricTargetCPUAverageValue) RecordSet(ctx context.Context, val int64, set attribute.Set)
RecordSet records val to the current distribution for set.
This metric aligns with the `averageValue` field of the K8s HPA MetricTarget. If the type of the metric is `ContainerResource`, the `k8s.container.name` attribute MUST be set to identify the specific container within the pod to which the metric applies.
func (HPAMetricTargetCPUAverageValue) Unit ¶
func (HPAMetricTargetCPUAverageValue) Unit() string
Unit returns the semantic convention unit of the instrument
type HPAMetricTargetCPUValue ¶
type HPAMetricTargetCPUValue struct {
metric.Int64Gauge
}
HPAMetricTargetCPUValue is an instrument used to record metric values conforming to the "k8s.hpa.metric.target.cpu.value" semantic conventions. It represents the target value for CPU resource in HPA config.
func NewHPAMetricTargetCPUValue ¶
func NewHPAMetricTargetCPUValue( m metric.Meter, opt ...metric.Int64GaugeOption, ) (HPAMetricTargetCPUValue, error)
NewHPAMetricTargetCPUValue returns a new HPAMetricTargetCPUValue instrument.
func (HPAMetricTargetCPUValue) AttrContainerName ¶
func (HPAMetricTargetCPUValue) AttrContainerName(val string) attribute.KeyValue
AttrContainerName returns an optional attribute for the "k8s.container.name" semantic convention. It represents the name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`).
func (HPAMetricTargetCPUValue) AttrHPAMetricType ¶
func (HPAMetricTargetCPUValue) AttrHPAMetricType(val string) attribute.KeyValue
AttrHPAMetricType returns an optional attribute for the "k8s.hpa.metric.type" semantic convention. It represents the type of metric source for the horizontal pod autoscaler.
func (HPAMetricTargetCPUValue) Description ¶
func (HPAMetricTargetCPUValue) Description() string
Description returns the semantic convention description of the instrument
func (HPAMetricTargetCPUValue) Inst ¶
func (m HPAMetricTargetCPUValue) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
func (HPAMetricTargetCPUValue) Name ¶
func (HPAMetricTargetCPUValue) Name() string
Name returns the semantic convention name of the instrument.
func (HPAMetricTargetCPUValue) Record ¶
func (m HPAMetricTargetCPUValue) Record( ctx context.Context, val int64, attrs ...attribute.KeyValue, )
Record records val to the current distribution for attrs.
All additional attrs passed are included in the recorded value.
This metric aligns with the `value` field of the K8s HPA MetricTarget. If the type of the metric is `ContainerResource`, the `k8s.container.name` attribute MUST be set to identify the specific container within the pod to which the metric applies.
func (HPAMetricTargetCPUValue) RecordSet ¶
RecordSet records val to the current distribution for set.
This metric aligns with the `value` field of the K8s HPA MetricTarget. If the type of the metric is `ContainerResource`, the `k8s.container.name` attribute MUST be set to identify the specific container within the pod to which the metric applies.
func (HPAMetricTargetCPUValue) Unit ¶
func (HPAMetricTargetCPUValue) Unit() string
Unit returns the semantic convention unit of the instrument
type HPAPodCurrent ¶
type HPAPodCurrent struct {
metric.Int64UpDownCounter
}
HPAPodCurrent is an instrument used to record metric values conforming to the "k8s.hpa.pod.current" semantic conventions. It represents the current number of replica pods managed by this horizontal pod autoscaler, as last seen by the autoscaler.
func NewHPAPodCurrent ¶
func NewHPAPodCurrent( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (HPAPodCurrent, error)
NewHPAPodCurrent returns a new HPAPodCurrent instrument.
func (HPAPodCurrent) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `currentReplicas` field of the K8s HorizontalPodAutoscalerStatus
func (HPAPodCurrent) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `currentReplicas` field of the K8s HorizontalPodAutoscalerStatus
func (HPAPodCurrent) Description ¶
func (HPAPodCurrent) Description() string
Description returns the semantic convention description of the instrument
func (HPAPodCurrent) Inst ¶
func (m HPAPodCurrent) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (HPAPodCurrent) Name ¶
func (HPAPodCurrent) Name() string
Name returns the semantic convention name of the instrument.
func (HPAPodCurrent) Unit ¶
func (HPAPodCurrent) Unit() string
Unit returns the semantic convention unit of the instrument
type HPAPodDesired ¶
type HPAPodDesired struct {
metric.Int64UpDownCounter
}
HPAPodDesired is an instrument used to record metric values conforming to the "k8s.hpa.pod.desired" semantic conventions. It represents the desired number of replica pods managed by this horizontal pod autoscaler, as last calculated by the autoscaler.
func NewHPAPodDesired ¶
func NewHPAPodDesired( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (HPAPodDesired, error)
NewHPAPodDesired returns a new HPAPodDesired instrument.
func (HPAPodDesired) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `desiredReplicas` field of the K8s HorizontalPodAutoscalerStatus
func (HPAPodDesired) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `desiredReplicas` field of the K8s HorizontalPodAutoscalerStatus
func (HPAPodDesired) Description ¶
func (HPAPodDesired) Description() string
Description returns the semantic convention description of the instrument
func (HPAPodDesired) Inst ¶
func (m HPAPodDesired) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (HPAPodDesired) Name ¶
func (HPAPodDesired) Name() string
Name returns the semantic convention name of the instrument.
func (HPAPodDesired) Unit ¶
func (HPAPodDesired) Unit() string
Unit returns the semantic convention unit of the instrument
type HPAPodMax ¶
type HPAPodMax struct {
metric.Int64UpDownCounter
}
HPAPodMax is an instrument used to record metric values conforming to the "k8s.hpa.pod.max" semantic conventions. It represents the upper limit for the number of replica pods to which the autoscaler can scale up.
func NewHPAPodMax ¶
NewHPAPodMax returns a new HPAPodMax instrument.
func (HPAPodMax) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `maxReplicas` field of the K8s HorizontalPodAutoscalerSpec
func (HPAPodMax) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `maxReplicas` field of the K8s HorizontalPodAutoscalerSpec
func (HPAPodMax) Description ¶
Description returns the semantic convention description of the instrument
func (HPAPodMax) Inst ¶
func (m HPAPodMax) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (HPAPodMax) Name ¶
Name returns the semantic convention name of the instrument.
func (HPAPodMax) Unit ¶
Unit returns the semantic convention unit of the instrument
type HPAPodMin ¶
type HPAPodMin struct {
metric.Int64UpDownCounter
}
HPAPodMin is an instrument used to record metric values conforming to the "k8s.hpa.pod.min" semantic conventions. It represents the lower limit for the number of replica pods to which the autoscaler can scale down.
func NewHPAPodMin ¶
NewHPAPodMin returns a new HPAPodMin instrument.
func (HPAPodMin) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `minReplicas` field of the K8s HorizontalPodAutoscalerSpec
func (HPAPodMin) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `minReplicas` field of the K8s HorizontalPodAutoscalerSpec
func (HPAPodMin) Description ¶
Description returns the semantic convention description of the instrument
func (HPAPodMin) Inst ¶
func (m HPAPodMin) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (HPAPodMin) Name ¶
Name returns the semantic convention name of the instrument.
func (HPAPodMin) Unit ¶
Unit returns the semantic convention unit of the instrument
type JobPodActive ¶
type JobPodActive struct {
metric.Int64UpDownCounter
}
JobPodActive is an instrument used to record metric values conforming to the "k8s.job.pod.active" semantic conventions. It represents the number of pending and actively running pods for a job.
func NewJobPodActive ¶
func NewJobPodActive( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobPodActive, error)
NewJobPodActive returns a new JobPodActive instrument.
func (JobPodActive) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `active` field of the K8s JobStatus.
func (JobPodActive) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `active` field of the K8s JobStatus.
func (JobPodActive) Description ¶
func (JobPodActive) Description() string
Description returns the semantic convention description of the instrument
func (JobPodActive) Inst ¶
func (m JobPodActive) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (JobPodActive) Name ¶
func (JobPodActive) Name() string
Name returns the semantic convention name of the instrument.
func (JobPodActive) Unit ¶
func (JobPodActive) Unit() string
Unit returns the semantic convention unit of the instrument
type JobPodDesiredSuccessful ¶
type JobPodDesiredSuccessful struct {
metric.Int64UpDownCounter
}
JobPodDesiredSuccessful is an instrument used to record metric values conforming to the "k8s.job.pod.desired_successful" semantic conventions. It represents the desired number of successfully finished pods the job should be run with.
func NewJobPodDesiredSuccessful ¶
func NewJobPodDesiredSuccessful( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobPodDesiredSuccessful, error)
NewJobPodDesiredSuccessful returns a new JobPodDesiredSuccessful instrument.
func (JobPodDesiredSuccessful) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `completions` field of the K8s JobSpec..
func (JobPodDesiredSuccessful) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `completions` field of the K8s JobSpec..
func (JobPodDesiredSuccessful) Description ¶
func (JobPodDesiredSuccessful) Description() string
Description returns the semantic convention description of the instrument
func (JobPodDesiredSuccessful) Inst ¶
func (m JobPodDesiredSuccessful) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (JobPodDesiredSuccessful) Name ¶
func (JobPodDesiredSuccessful) Name() string
Name returns the semantic convention name of the instrument.
func (JobPodDesiredSuccessful) Unit ¶
func (JobPodDesiredSuccessful) Unit() string
Unit returns the semantic convention unit of the instrument
type JobPodFailed ¶
type JobPodFailed struct {
metric.Int64UpDownCounter
}
JobPodFailed is an instrument used to record metric values conforming to the "k8s.job.pod.failed" semantic conventions. It represents the number of pods which reached phase Failed for a job.
func NewJobPodFailed ¶
func NewJobPodFailed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobPodFailed, error)
NewJobPodFailed returns a new JobPodFailed instrument.
func (JobPodFailed) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `failed` field of the K8s JobStatus.
func (JobPodFailed) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `failed` field of the K8s JobStatus.
func (JobPodFailed) Description ¶
func (JobPodFailed) Description() string
Description returns the semantic convention description of the instrument
func (JobPodFailed) Inst ¶
func (m JobPodFailed) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (JobPodFailed) Name ¶
func (JobPodFailed) Name() string
Name returns the semantic convention name of the instrument.
func (JobPodFailed) Unit ¶
func (JobPodFailed) Unit() string
Unit returns the semantic convention unit of the instrument
type JobPodMaxParallel ¶
type JobPodMaxParallel struct {
metric.Int64UpDownCounter
}
JobPodMaxParallel is an instrument used to record metric values conforming to the "k8s.job.pod.max_parallel" semantic conventions. It represents the max desired number of pods the job should run at any given time.
func NewJobPodMaxParallel ¶
func NewJobPodMaxParallel( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobPodMaxParallel, error)
NewJobPodMaxParallel returns a new JobPodMaxParallel instrument.
func (JobPodMaxParallel) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `parallelism` field of the K8s JobSpec.
func (JobPodMaxParallel) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `parallelism` field of the K8s JobSpec.
func (JobPodMaxParallel) Description ¶
func (JobPodMaxParallel) Description() string
Description returns the semantic convention description of the instrument
func (JobPodMaxParallel) Inst ¶
func (m JobPodMaxParallel) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (JobPodMaxParallel) Name ¶
func (JobPodMaxParallel) Name() string
Name returns the semantic convention name of the instrument.
func (JobPodMaxParallel) Unit ¶
func (JobPodMaxParallel) Unit() string
Unit returns the semantic convention unit of the instrument
type JobPodSuccessful ¶
type JobPodSuccessful struct {
metric.Int64UpDownCounter
}
JobPodSuccessful is an instrument used to record metric values conforming to the "k8s.job.pod.successful" semantic conventions. It represents the number of pods which reached phase Succeeded for a job.
func NewJobPodSuccessful ¶
func NewJobPodSuccessful( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobPodSuccessful, error)
NewJobPodSuccessful returns a new JobPodSuccessful instrument.
func (JobPodSuccessful) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `succeeded` field of the K8s JobStatus.
func (JobPodSuccessful) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `succeeded` field of the K8s JobStatus.
func (JobPodSuccessful) Description ¶
func (JobPodSuccessful) Description() string
Description returns the semantic convention description of the instrument
func (JobPodSuccessful) Inst ¶
func (m JobPodSuccessful) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (JobPodSuccessful) Name ¶
func (JobPodSuccessful) Name() string
Name returns the semantic convention name of the instrument.
func (JobPodSuccessful) Unit ¶
func (JobPodSuccessful) Unit() string
Unit returns the semantic convention unit of the instrument
type NamespacePhase ¶
type NamespacePhase struct {
metric.Int64UpDownCounter
}
NamespacePhase is an instrument used to record metric values conforming to the "k8s.namespace.phase" semantic conventions. It represents the describes number of K8s namespaces that are currently in a given phase.
func NewNamespacePhase ¶
func NewNamespacePhase( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NamespacePhase, error)
NewNamespacePhase returns a new NamespacePhase instrument.
func (NamespacePhase) Add ¶
func (m NamespacePhase) Add( ctx context.Context, incr int64, namespacePhase NamespacePhaseAttr, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The namespacePhase is the the phase of the K8s namespace.
func (NamespacePhase) AddSet ¶
AddSet adds incr to the existing count for set.
func (NamespacePhase) Description ¶
func (NamespacePhase) Description() string
Description returns the semantic convention description of the instrument
func (NamespacePhase) Inst ¶
func (m NamespacePhase) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (NamespacePhase) Name ¶
func (NamespacePhase) Name() string
Name returns the semantic convention name of the instrument.
func (NamespacePhase) Unit ¶
func (NamespacePhase) Unit() string
Unit returns the semantic convention unit of the instrument
type NamespacePhaseAttr ¶
type NamespacePhaseAttr string
NamespacePhaseAttr is an attribute conforming to the k8s.namespace.phase semantic conventions. It represents the phase of the K8s namespace.
var ( // NamespacePhaseActive is the active namespace phase as described by [K8s API] // . // // [K8s API]: https://pkg.go.dev/k8s.io/api@v0.31.3/core/v1#NamespacePhase NamespacePhaseActive NamespacePhaseAttr = "active" // NamespacePhaseTerminating is the terminating namespace phase as described by // [K8s API]. // // [K8s API]: https://pkg.go.dev/k8s.io/api@v0.31.3/core/v1#NamespacePhase NamespacePhaseTerminating NamespacePhaseAttr = "terminating" )
type NetworkIODirectionAttr ¶
type NetworkIODirectionAttr string
NetworkIODirectionAttr is an attribute conforming to the network.io.direction semantic conventions. It represents the network IO operation direction.
var ( // NetworkIODirectionTransmit is the standardized value "transmit" of // NetworkIODirectionAttr. NetworkIODirectionTransmit NetworkIODirectionAttr = "transmit" // NetworkIODirectionReceive is the standardized value "receive" of // NetworkIODirectionAttr. NetworkIODirectionReceive NetworkIODirectionAttr = "receive" )
type NodeCPUAllocatable ¶
type NodeCPUAllocatable struct {
metric.Int64UpDownCounter
}
NodeCPUAllocatable is an instrument used to record metric values conforming to the "k8s.node.cpu.allocatable" semantic conventions. It represents the amount of cpu allocatable on the node.
func NewNodeCPUAllocatable ¶
func NewNodeCPUAllocatable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeCPUAllocatable, error)
NewNodeCPUAllocatable returns a new NodeCPUAllocatable instrument.
func (NodeCPUAllocatable) Add ¶
Add adds incr to the existing count for attrs.
func (NodeCPUAllocatable) AddSet ¶
AddSet adds incr to the existing count for set.
func (NodeCPUAllocatable) Description ¶
func (NodeCPUAllocatable) Description() string
Description returns the semantic convention description of the instrument
func (NodeCPUAllocatable) Inst ¶
func (m NodeCPUAllocatable) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (NodeCPUAllocatable) Name ¶
func (NodeCPUAllocatable) Name() string
Name returns the semantic convention name of the instrument.
func (NodeCPUAllocatable) Unit ¶
func (NodeCPUAllocatable) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeCPUTime ¶
type NodeCPUTime struct {
metric.Float64Counter
}
NodeCPUTime is an instrument used to record metric values conforming to the "k8s.node.cpu.time" semantic conventions. It represents the total CPU time consumed.
func NewNodeCPUTime ¶
func NewNodeCPUTime( m metric.Meter, opt ...metric.Float64CounterOption, ) (NodeCPUTime, error)
NewNodeCPUTime returns a new NodeCPUTime instrument.
func (NodeCPUTime) Add ¶
Add adds incr to the existing count for attrs.
Total CPU time consumed by the specific Node on all available CPU cores
func (NodeCPUTime) AddSet ¶
AddSet adds incr to the existing count for set.
Total CPU time consumed by the specific Node on all available CPU cores
func (NodeCPUTime) Description ¶
func (NodeCPUTime) Description() string
Description returns the semantic convention description of the instrument
func (NodeCPUTime) Inst ¶
func (m NodeCPUTime) Inst() metric.Float64Counter
Inst returns the underlying metric instrument.
func (NodeCPUTime) Name ¶
func (NodeCPUTime) Name() string
Name returns the semantic convention name of the instrument.
func (NodeCPUTime) Unit ¶
func (NodeCPUTime) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeCPUUsage ¶
type NodeCPUUsage struct {
metric.Int64Gauge
}
NodeCPUUsage is an instrument used to record metric values conforming to the "k8s.node.cpu.usage" semantic conventions. It represents the node's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs.
func NewNodeCPUUsage ¶
func NewNodeCPUUsage( m metric.Meter, opt ...metric.Int64GaugeOption, ) (NodeCPUUsage, error)
NewNodeCPUUsage returns a new NodeCPUUsage instrument.
func (NodeCPUUsage) Description ¶
func (NodeCPUUsage) Description() string
Description returns the semantic convention description of the instrument
func (NodeCPUUsage) Inst ¶
func (m NodeCPUUsage) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
func (NodeCPUUsage) Name ¶
func (NodeCPUUsage) Name() string
Name returns the semantic convention name of the instrument.
func (NodeCPUUsage) Record ¶
Record records val to the current distribution for attrs.
CPU usage of the specific Node on all available CPU cores, averaged over the sample window
func (NodeCPUUsage) RecordSet ¶
RecordSet records val to the current distribution for set.
CPU usage of the specific Node on all available CPU cores, averaged over the sample window
func (NodeCPUUsage) Unit ¶
func (NodeCPUUsage) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeConditionStatus ¶
type NodeConditionStatus struct {
metric.Int64UpDownCounter
}
NodeConditionStatus is an instrument used to record metric values conforming to the "k8s.node.condition.status" semantic conventions. It represents the describes the condition of a particular Node.
func NewNodeConditionStatus ¶
func NewNodeConditionStatus( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeConditionStatus, error)
NewNodeConditionStatus returns a new NodeConditionStatus instrument.
func (NodeConditionStatus) Add ¶
func (m NodeConditionStatus) Add( ctx context.Context, incr int64, nodeConditionStatus NodeConditionStatusAttr, nodeConditionType NodeConditionTypeAttr, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The nodeConditionStatus is the the status of the condition, one of True, False, Unknown.
The nodeConditionType is the the condition type of a K8s Node.
All possible node condition pairs (type and status) will be reported at each time interval to avoid missing metrics. Condition pairs corresponding to the current conditions' statuses will be non-zero.
func (NodeConditionStatus) AddSet ¶
AddSet adds incr to the existing count for set.
All possible node condition pairs (type and status) will be reported at each time interval to avoid missing metrics. Condition pairs corresponding to the current conditions' statuses will be non-zero.
func (NodeConditionStatus) Description ¶
func (NodeConditionStatus) Description() string
Description returns the semantic convention description of the instrument
func (NodeConditionStatus) Inst ¶
func (m NodeConditionStatus) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (NodeConditionStatus) Name ¶
func (NodeConditionStatus) Name() string
Name returns the semantic convention name of the instrument.
func (NodeConditionStatus) Unit ¶
func (NodeConditionStatus) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeConditionStatusAttr ¶
type NodeConditionStatusAttr string
NodeConditionStatusAttr is an attribute conforming to the k8s.node.condition.status semantic conventions. It represents the status of the condition, one of True, False, Unknown.
var ( // NodeConditionStatusConditionTrue is the standardized value "true" of // NodeConditionStatusAttr. NodeConditionStatusConditionTrue NodeConditionStatusAttr = "true" // NodeConditionStatusConditionFalse is the standardized value "false" of // NodeConditionStatusAttr. NodeConditionStatusConditionFalse NodeConditionStatusAttr = "false" // NodeConditionStatusConditionUnknown is the standardized value "unknown" of // NodeConditionStatusAttr. NodeConditionStatusConditionUnknown NodeConditionStatusAttr = "unknown" )
type NodeConditionTypeAttr ¶
type NodeConditionTypeAttr string
NodeConditionTypeAttr is an attribute conforming to the k8s.node.condition.type semantic conventions. It represents the condition type of a K8s Node.
var ( // NodeConditionTypeReady is the node is healthy and ready to accept pods. NodeConditionTypeReady NodeConditionTypeAttr = "Ready" // NodeConditionTypeDiskPressure is the pressure exists on the disk size—that // is, if the disk capacity is low. NodeConditionTypeDiskPressure NodeConditionTypeAttr = "DiskPressure" // NodeConditionTypeMemoryPressure is the pressure exists on the node // memory—that is, if the node memory is low. NodeConditionTypeMemoryPressure NodeConditionTypeAttr = "MemoryPressure" // NodeConditionTypePIDPressure is the pressure exists on the processes—that // is, if there are too many processes on the node. NodeConditionTypePIDPressure NodeConditionTypeAttr = "PIDPressure" // NodeConditionTypeNetworkUnavailable is the network for the node is not // correctly configured. NodeConditionTypeAttr = "NetworkUnavailable" )
type NodeEphemeralStorageAllocatable ¶
type NodeEphemeralStorageAllocatable struct {
metric.Int64UpDownCounter
}
NodeEphemeralStorageAllocatable is an instrument used to record metric values conforming to the "k8s.node.ephemeral_storage.allocatable" semantic conventions. It represents the amount of ephemeral-storage allocatable on the node.
func NewNodeEphemeralStorageAllocatable ¶
func NewNodeEphemeralStorageAllocatable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeEphemeralStorageAllocatable, error)
NewNodeEphemeralStorageAllocatable returns a new NodeEphemeralStorageAllocatable instrument.
func (NodeEphemeralStorageAllocatable) Add ¶
func (m NodeEphemeralStorageAllocatable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
func (NodeEphemeralStorageAllocatable) AddSet ¶
AddSet adds incr to the existing count for set.
func (NodeEphemeralStorageAllocatable) Description ¶
func (NodeEphemeralStorageAllocatable) Description() string
Description returns the semantic convention description of the instrument
func (NodeEphemeralStorageAllocatable) Inst ¶
func (m NodeEphemeralStorageAllocatable) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (NodeEphemeralStorageAllocatable) Name ¶
func (NodeEphemeralStorageAllocatable) Name() string
Name returns the semantic convention name of the instrument.
func (NodeEphemeralStorageAllocatable) Unit ¶
func (NodeEphemeralStorageAllocatable) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeFilesystemAvailable ¶
type NodeFilesystemAvailable struct {
metric.Int64UpDownCounter
}
NodeFilesystemAvailable is an instrument used to record metric values conforming to the "k8s.node.filesystem.available" semantic conventions. It represents the node filesystem available bytes.
func NewNodeFilesystemAvailable ¶
func NewNodeFilesystemAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeFilesystemAvailable, error)
NewNodeFilesystemAvailable returns a new NodeFilesystemAvailable instrument.
func (NodeFilesystemAvailable) Add ¶
Add adds incr to the existing count for attrs.
This metric is derived from the FsStats.AvailableBytes field of the NodeStats.Fs of the Kubelet's stats API.
func (NodeFilesystemAvailable) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is derived from the FsStats.AvailableBytes field of the NodeStats.Fs of the Kubelet's stats API.
func (NodeFilesystemAvailable) Description ¶
func (NodeFilesystemAvailable) Description() string
Description returns the semantic convention description of the instrument
func (NodeFilesystemAvailable) Inst ¶
func (m NodeFilesystemAvailable) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (NodeFilesystemAvailable) Name ¶
func (NodeFilesystemAvailable) Name() string
Name returns the semantic convention name of the instrument.
func (NodeFilesystemAvailable) Unit ¶
func (NodeFilesystemAvailable) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeFilesystemCapacity ¶
type NodeFilesystemCapacity struct {
metric.Int64UpDownCounter
}
NodeFilesystemCapacity is an instrument used to record metric values conforming to the "k8s.node.filesystem.capacity" semantic conventions. It represents the node filesystem capacity.
func NewNodeFilesystemCapacity ¶
func NewNodeFilesystemCapacity( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeFilesystemCapacity, error)
NewNodeFilesystemCapacity returns a new NodeFilesystemCapacity instrument.
func (NodeFilesystemCapacity) Add ¶
Add adds incr to the existing count for attrs.
This metric is derived from the FsStats.CapacityBytes field of the NodeStats.Fs of the Kubelet's stats API.
func (NodeFilesystemCapacity) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is derived from the FsStats.CapacityBytes field of the NodeStats.Fs of the Kubelet's stats API.
func (NodeFilesystemCapacity) Description ¶
func (NodeFilesystemCapacity) Description() string
Description returns the semantic convention description of the instrument
func (NodeFilesystemCapacity) Inst ¶
func (m NodeFilesystemCapacity) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (NodeFilesystemCapacity) Name ¶
func (NodeFilesystemCapacity) Name() string
Name returns the semantic convention name of the instrument.
func (NodeFilesystemCapacity) Unit ¶
func (NodeFilesystemCapacity) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeFilesystemUsage ¶
type NodeFilesystemUsage struct {
metric.Int64UpDownCounter
}
NodeFilesystemUsage is an instrument used to record metric values conforming to the "k8s.node.filesystem.usage" semantic conventions. It represents the node filesystem usage.
func NewNodeFilesystemUsage ¶
func NewNodeFilesystemUsage( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeFilesystemUsage, error)
NewNodeFilesystemUsage returns a new NodeFilesystemUsage instrument.
func (NodeFilesystemUsage) Add ¶
Add adds incr to the existing count for attrs.
This may not equal capacity - available.
This metric is derived from the FsStats.UsedBytes field of the NodeStats.Fs of the Kubelet's stats API.
func (NodeFilesystemUsage) AddSet ¶
AddSet adds incr to the existing count for set.
This may not equal capacity - available.
This metric is derived from the FsStats.UsedBytes field of the NodeStats.Fs of the Kubelet's stats API.
func (NodeFilesystemUsage) Description ¶
func (NodeFilesystemUsage) Description() string
Description returns the semantic convention description of the instrument
func (NodeFilesystemUsage) Inst ¶
func (m NodeFilesystemUsage) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (NodeFilesystemUsage) Name ¶
func (NodeFilesystemUsage) Name() string
Name returns the semantic convention name of the instrument.
func (NodeFilesystemUsage) Unit ¶
func (NodeFilesystemUsage) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeMemoryAllocatable ¶
type NodeMemoryAllocatable struct {
metric.Int64UpDownCounter
}
NodeMemoryAllocatable is an instrument used to record metric values conforming to the "k8s.node.memory.allocatable" semantic conventions. It represents the amount of memory allocatable on the node.
func NewNodeMemoryAllocatable ¶
func NewNodeMemoryAllocatable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeMemoryAllocatable, error)
NewNodeMemoryAllocatable returns a new NodeMemoryAllocatable instrument.
func (NodeMemoryAllocatable) Add ¶
Add adds incr to the existing count for attrs.
func (NodeMemoryAllocatable) AddSet ¶
AddSet adds incr to the existing count for set.
func (NodeMemoryAllocatable) Description ¶
func (NodeMemoryAllocatable) Description() string
Description returns the semantic convention description of the instrument
func (NodeMemoryAllocatable) Inst ¶
func (m NodeMemoryAllocatable) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (NodeMemoryAllocatable) Name ¶
func (NodeMemoryAllocatable) Name() string
Name returns the semantic convention name of the instrument.
func (NodeMemoryAllocatable) Unit ¶
func (NodeMemoryAllocatable) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeMemoryAvailable ¶
type NodeMemoryAvailable struct {
metric.Int64UpDownCounter
}
NodeMemoryAvailable is an instrument used to record metric values conforming to the "k8s.node.memory.available" semantic conventions. It represents the node memory available.
func NewNodeMemoryAvailable ¶
func NewNodeMemoryAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeMemoryAvailable, error)
NewNodeMemoryAvailable returns a new NodeMemoryAvailable instrument.
func (NodeMemoryAvailable) Add ¶
Add adds incr to the existing count for attrs.
Available memory for use. This is defined as the memory limit - workingSetBytes. If memory limit is undefined, the available bytes is omitted. This metric is derived from the MemoryStats.AvailableBytes field of the NodeStats.Memory of the Kubelet's stats API.
func (NodeMemoryAvailable) AddSet ¶
AddSet adds incr to the existing count for set.
Available memory for use. This is defined as the memory limit - workingSetBytes. If memory limit is undefined, the available bytes is omitted. This metric is derived from the MemoryStats.AvailableBytes field of the NodeStats.Memory of the Kubelet's stats API.
func (NodeMemoryAvailable) Description ¶
func (NodeMemoryAvailable) Description() string
Description returns the semantic convention description of the instrument
func (NodeMemoryAvailable) Inst ¶
func (m NodeMemoryAvailable) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (NodeMemoryAvailable) Name ¶
func (NodeMemoryAvailable) Name() string
Name returns the semantic convention name of the instrument.
func (NodeMemoryAvailable) Unit ¶
func (NodeMemoryAvailable) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeMemoryPagingFaults ¶
type NodeMemoryPagingFaults struct {
metric.Int64Counter
}
NodeMemoryPagingFaults is an instrument used to record metric values conforming to the "k8s.node.memory.paging.faults" semantic conventions. It represents the node memory paging faults.
func NewNodeMemoryPagingFaults ¶
func NewNodeMemoryPagingFaults( m metric.Meter, opt ...metric.Int64CounterOption, ) (NodeMemoryPagingFaults, error)
NewNodeMemoryPagingFaults returns a new NodeMemoryPagingFaults instrument.
func (NodeMemoryPagingFaults) Add ¶
func (m NodeMemoryPagingFaults) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
Cumulative number of major/minor page faults. This metric is derived from the MemoryStats.PageFaults and MemoryStats.MajorPageFaults fields of the NodeStats.Memory of the Kubelet's stats API.
func (NodeMemoryPagingFaults) AddSet ¶
AddSet adds incr to the existing count for set.
Cumulative number of major/minor page faults. This metric is derived from the MemoryStats.PageFaults and MemoryStats.MajorPageFaults fields of the NodeStats.Memory of the Kubelet's stats API.
func (NodeMemoryPagingFaults) AttrSystemPagingFaultType ¶
func (NodeMemoryPagingFaults) AttrSystemPagingFaultType(val SystemPagingFaultTypeAttr) attribute.KeyValue
AttrSystemPagingFaultType returns an optional attribute for the "system.paging.fault.type" semantic convention. It represents the paging fault type.
func (NodeMemoryPagingFaults) Description ¶
func (NodeMemoryPagingFaults) Description() string
Description returns the semantic convention description of the instrument
func (NodeMemoryPagingFaults) Inst ¶
func (m NodeMemoryPagingFaults) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (NodeMemoryPagingFaults) Name ¶
func (NodeMemoryPagingFaults) Name() string
Name returns the semantic convention name of the instrument.
func (NodeMemoryPagingFaults) Unit ¶
func (NodeMemoryPagingFaults) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeMemoryRss ¶
type NodeMemoryRss struct {
metric.Int64UpDownCounter
}
NodeMemoryRss is an instrument used to record metric values conforming to the "k8s.node.memory.rss" semantic conventions. It represents the node memory RSS.
func NewNodeMemoryRss ¶
func NewNodeMemoryRss( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeMemoryRss, error)
NewNodeMemoryRss returns a new NodeMemoryRss instrument.
func (NodeMemoryRss) Add ¶
Add adds incr to the existing count for attrs.
The amount of anonymous and swap cache memory (includes transparent hugepages). This metric is derived from the MemoryStats.RSSBytes field of the NodeStats.Memory of the Kubelet's stats API.
func (NodeMemoryRss) AddSet ¶
AddSet adds incr to the existing count for set.
The amount of anonymous and swap cache memory (includes transparent hugepages). This metric is derived from the MemoryStats.RSSBytes field of the NodeStats.Memory of the Kubelet's stats API.
func (NodeMemoryRss) Description ¶
func (NodeMemoryRss) Description() string
Description returns the semantic convention description of the instrument
func (NodeMemoryRss) Inst ¶
func (m NodeMemoryRss) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (NodeMemoryRss) Name ¶
func (NodeMemoryRss) Name() string
Name returns the semantic convention name of the instrument.
func (NodeMemoryRss) Unit ¶
func (NodeMemoryRss) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeMemoryUsage ¶
type NodeMemoryUsage struct {
metric.Int64Gauge
}
NodeMemoryUsage is an instrument used to record metric values conforming to the "k8s.node.memory.usage" semantic conventions. It represents the memory usage of the Node.
func NewNodeMemoryUsage ¶
func NewNodeMemoryUsage( m metric.Meter, opt ...metric.Int64GaugeOption, ) (NodeMemoryUsage, error)
NewNodeMemoryUsage returns a new NodeMemoryUsage instrument.
func (NodeMemoryUsage) Description ¶
func (NodeMemoryUsage) Description() string
Description returns the semantic convention description of the instrument
func (NodeMemoryUsage) Inst ¶
func (m NodeMemoryUsage) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
func (NodeMemoryUsage) Name ¶
func (NodeMemoryUsage) Name() string
Name returns the semantic convention name of the instrument.
func (NodeMemoryUsage) Record ¶
Record records val to the current distribution for attrs.
Total memory usage of the Node
func (NodeMemoryUsage) RecordSet ¶
RecordSet records val to the current distribution for set.
Total memory usage of the Node
func (NodeMemoryUsage) Unit ¶
func (NodeMemoryUsage) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeMemoryWorkingSet ¶
type NodeMemoryWorkingSet struct {
metric.Int64UpDownCounter
}
NodeMemoryWorkingSet is an instrument used to record metric values conforming to the "k8s.node.memory.working_set" semantic conventions. It represents the node memory working set.
func NewNodeMemoryWorkingSet ¶
func NewNodeMemoryWorkingSet( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodeMemoryWorkingSet, error)
NewNodeMemoryWorkingSet returns a new NodeMemoryWorkingSet instrument.
func (NodeMemoryWorkingSet) Add ¶
Add adds incr to the existing count for attrs.
The amount of working set memory. This includes recently accessed memory, dirty memory, and kernel memory. WorkingSetBytes is <= UsageBytes. This metric is derived from the MemoryStats.WorkingSetBytes field of the NodeStats.Memory of the Kubelet's stats API.
func (NodeMemoryWorkingSet) AddSet ¶
AddSet adds incr to the existing count for set.
The amount of working set memory. This includes recently accessed memory, dirty memory, and kernel memory. WorkingSetBytes is <= UsageBytes. This metric is derived from the MemoryStats.WorkingSetBytes field of the NodeStats.Memory of the Kubelet's stats API.
func (NodeMemoryWorkingSet) Description ¶
func (NodeMemoryWorkingSet) Description() string
Description returns the semantic convention description of the instrument
func (NodeMemoryWorkingSet) Inst ¶
func (m NodeMemoryWorkingSet) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (NodeMemoryWorkingSet) Name ¶
func (NodeMemoryWorkingSet) Name() string
Name returns the semantic convention name of the instrument.
func (NodeMemoryWorkingSet) Unit ¶
func (NodeMemoryWorkingSet) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeNetworkErrors ¶
type NodeNetworkErrors struct {
metric.Int64Counter
}
NodeNetworkErrors is an instrument used to record metric values conforming to the "k8s.node.network.errors" semantic conventions. It represents the node network errors.
func NewNodeNetworkErrors ¶
func NewNodeNetworkErrors( m metric.Meter, opt ...metric.Int64CounterOption, ) (NodeNetworkErrors, error)
NewNodeNetworkErrors returns a new NodeNetworkErrors instrument.
func (NodeNetworkErrors) Add ¶
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
func (NodeNetworkErrors) AddSet ¶
AddSet adds incr to the existing count for set.
func (NodeNetworkErrors) AttrNetworkIODirection ¶
func (NodeNetworkErrors) AttrNetworkIODirection(val NetworkIODirectionAttr) attribute.KeyValue
AttrNetworkIODirection returns an optional attribute for the "network.io.direction" semantic convention. It represents the network IO operation direction.
func (NodeNetworkErrors) AttrNetworkInterfaceName ¶
func (NodeNetworkErrors) AttrNetworkInterfaceName(val string) attribute.KeyValue
AttrNetworkInterfaceName returns an optional attribute for the "network.interface.name" semantic convention. It represents the network interface name.
func (NodeNetworkErrors) Description ¶
func (NodeNetworkErrors) Description() string
Description returns the semantic convention description of the instrument
func (NodeNetworkErrors) Inst ¶
func (m NodeNetworkErrors) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (NodeNetworkErrors) Name ¶
func (NodeNetworkErrors) Name() string
Name returns the semantic convention name of the instrument.
func (NodeNetworkErrors) Unit ¶
func (NodeNetworkErrors) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeNetworkIO ¶
type NodeNetworkIO struct {
metric.Int64Counter
}
NodeNetworkIO is an instrument used to record metric values conforming to the "k8s.node.network.io" semantic conventions. It represents the network bytes for the Node.
func NewNodeNetworkIO ¶
func NewNodeNetworkIO( m metric.Meter, opt ...metric.Int64CounterOption, ) (NodeNetworkIO, error)
NewNodeNetworkIO returns a new NodeNetworkIO instrument.
func (NodeNetworkIO) Add ¶
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
func (NodeNetworkIO) AddSet ¶
AddSet adds incr to the existing count for set.
func (NodeNetworkIO) AttrNetworkIODirection ¶
func (NodeNetworkIO) AttrNetworkIODirection(val NetworkIODirectionAttr) attribute.KeyValue
AttrNetworkIODirection returns an optional attribute for the "network.io.direction" semantic convention. It represents the network IO operation direction.
func (NodeNetworkIO) AttrNetworkInterfaceName ¶
func (NodeNetworkIO) AttrNetworkInterfaceName(val string) attribute.KeyValue
AttrNetworkInterfaceName returns an optional attribute for the "network.interface.name" semantic convention. It represents the network interface name.
func (NodeNetworkIO) Description ¶
func (NodeNetworkIO) Description() string
Description returns the semantic convention description of the instrument
func (NodeNetworkIO) Inst ¶
func (m NodeNetworkIO) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (NodeNetworkIO) Name ¶
func (NodeNetworkIO) Name() string
Name returns the semantic convention name of the instrument.
func (NodeNetworkIO) Unit ¶
func (NodeNetworkIO) Unit() string
Unit returns the semantic convention unit of the instrument
type NodePodAllocatable ¶
type NodePodAllocatable struct {
metric.Int64UpDownCounter
}
NodePodAllocatable is an instrument used to record metric values conforming to the "k8s.node.pod.allocatable" semantic conventions. It represents the amount of pods allocatable on the node.
func NewNodePodAllocatable ¶
func NewNodePodAllocatable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NodePodAllocatable, error)
NewNodePodAllocatable returns a new NodePodAllocatable instrument.
func (NodePodAllocatable) Add ¶
Add adds incr to the existing count for attrs.
func (NodePodAllocatable) AddSet ¶
AddSet adds incr to the existing count for set.
func (NodePodAllocatable) Description ¶
func (NodePodAllocatable) Description() string
Description returns the semantic convention description of the instrument
func (NodePodAllocatable) Inst ¶
func (m NodePodAllocatable) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (NodePodAllocatable) Name ¶
func (NodePodAllocatable) Name() string
Name returns the semantic convention name of the instrument.
func (NodePodAllocatable) Unit ¶
func (NodePodAllocatable) Unit() string
Unit returns the semantic convention unit of the instrument
type NodeUptime ¶
type NodeUptime struct {
metric.Float64Gauge
}
NodeUptime is an instrument used to record metric values conforming to the "k8s.node.uptime" semantic conventions. It represents the time the Node has been running.
func NewNodeUptime ¶
func NewNodeUptime( m metric.Meter, opt ...metric.Float64GaugeOption, ) (NodeUptime, error)
NewNodeUptime returns a new NodeUptime instrument.
func (NodeUptime) Description ¶
func (NodeUptime) Description() string
Description returns the semantic convention description of the instrument
func (NodeUptime) Inst ¶
func (m NodeUptime) Inst() metric.Float64Gauge
Inst returns the underlying metric instrument.
func (NodeUptime) Name ¶
func (NodeUptime) Name() string
Name returns the semantic convention name of the instrument.
func (NodeUptime) Record ¶
Record records val to the current distribution for attrs.
Instrumentations SHOULD use a gauge with type `double` and measure uptime in seconds as a floating point number with the highest precision available. The actual accuracy would depend on the instrumentation and operating system.
func (NodeUptime) RecordSet ¶
RecordSet records val to the current distribution for set.
Instrumentations SHOULD use a gauge with type `double` and measure uptime in seconds as a floating point number with the highest precision available. The actual accuracy would depend on the instrumentation and operating system.
func (NodeUptime) Unit ¶
func (NodeUptime) Unit() string
Unit returns the semantic convention unit of the instrument
type PodCPUTime ¶
type PodCPUTime struct {
metric.Float64Counter
}
PodCPUTime is an instrument used to record metric values conforming to the "k8s.pod.cpu.time" semantic conventions. It represents the total CPU time consumed.
func NewPodCPUTime ¶
func NewPodCPUTime( m metric.Meter, opt ...metric.Float64CounterOption, ) (PodCPUTime, error)
NewPodCPUTime returns a new PodCPUTime instrument.
func (PodCPUTime) Add ¶
Add adds incr to the existing count for attrs.
Total CPU time consumed by the specific Pod on all available CPU cores
func (PodCPUTime) AddSet ¶
AddSet adds incr to the existing count for set.
Total CPU time consumed by the specific Pod on all available CPU cores
func (PodCPUTime) Description ¶
func (PodCPUTime) Description() string
Description returns the semantic convention description of the instrument
func (PodCPUTime) Inst ¶
func (m PodCPUTime) Inst() metric.Float64Counter
Inst returns the underlying metric instrument.
func (PodCPUTime) Name ¶
func (PodCPUTime) Name() string
Name returns the semantic convention name of the instrument.
func (PodCPUTime) Unit ¶
func (PodCPUTime) Unit() string
Unit returns the semantic convention unit of the instrument
type PodCPUUsage ¶
type PodCPUUsage struct {
metric.Int64Gauge
}
PodCPUUsage is an instrument used to record metric values conforming to the "k8s.pod.cpu.usage" semantic conventions. It represents the pod's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs.
func NewPodCPUUsage ¶
func NewPodCPUUsage( m metric.Meter, opt ...metric.Int64GaugeOption, ) (PodCPUUsage, error)
NewPodCPUUsage returns a new PodCPUUsage instrument.
func (PodCPUUsage) Description ¶
func (PodCPUUsage) Description() string
Description returns the semantic convention description of the instrument
func (PodCPUUsage) Inst ¶
func (m PodCPUUsage) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
func (PodCPUUsage) Name ¶
func (PodCPUUsage) Name() string
Name returns the semantic convention name of the instrument.
func (PodCPUUsage) Record ¶
Record records val to the current distribution for attrs.
CPU usage of the specific Pod on all available CPU cores, averaged over the sample window
func (PodCPUUsage) RecordSet ¶
RecordSet records val to the current distribution for set.
CPU usage of the specific Pod on all available CPU cores, averaged over the sample window
func (PodCPUUsage) Unit ¶
func (PodCPUUsage) Unit() string
Unit returns the semantic convention unit of the instrument
type PodFilesystemAvailable ¶
type PodFilesystemAvailable struct {
metric.Int64UpDownCounter
}
PodFilesystemAvailable is an instrument used to record metric values conforming to the "k8s.pod.filesystem.available" semantic conventions. It represents the pod filesystem available bytes.
func NewPodFilesystemAvailable ¶
func NewPodFilesystemAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodFilesystemAvailable, error)
NewPodFilesystemAvailable returns a new PodFilesystemAvailable instrument.
func (PodFilesystemAvailable) Add ¶
Add adds incr to the existing count for attrs.
This metric is derived from the FsStats.AvailableBytes field of the PodStats.EphemeralStorage of the Kubelet's stats API.
func (PodFilesystemAvailable) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is derived from the FsStats.AvailableBytes field of the PodStats.EphemeralStorage of the Kubelet's stats API.
func (PodFilesystemAvailable) Description ¶
func (PodFilesystemAvailable) Description() string
Description returns the semantic convention description of the instrument
func (PodFilesystemAvailable) Inst ¶
func (m PodFilesystemAvailable) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PodFilesystemAvailable) Name ¶
func (PodFilesystemAvailable) Name() string
Name returns the semantic convention name of the instrument.
func (PodFilesystemAvailable) Unit ¶
func (PodFilesystemAvailable) Unit() string
Unit returns the semantic convention unit of the instrument
type PodFilesystemCapacity ¶
type PodFilesystemCapacity struct {
metric.Int64UpDownCounter
}
PodFilesystemCapacity is an instrument used to record metric values conforming to the "k8s.pod.filesystem.capacity" semantic conventions. It represents the pod filesystem capacity.
func NewPodFilesystemCapacity ¶
func NewPodFilesystemCapacity( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodFilesystemCapacity, error)
NewPodFilesystemCapacity returns a new PodFilesystemCapacity instrument.
func (PodFilesystemCapacity) Add ¶
Add adds incr to the existing count for attrs.
This metric is derived from the FsStats.CapacityBytes field of the PodStats.EphemeralStorage of the Kubelet's stats API.
func (PodFilesystemCapacity) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is derived from the FsStats.CapacityBytes field of the PodStats.EphemeralStorage of the Kubelet's stats API.
func (PodFilesystemCapacity) Description ¶
func (PodFilesystemCapacity) Description() string
Description returns the semantic convention description of the instrument
func (PodFilesystemCapacity) Inst ¶
func (m PodFilesystemCapacity) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PodFilesystemCapacity) Name ¶
func (PodFilesystemCapacity) Name() string
Name returns the semantic convention name of the instrument.
func (PodFilesystemCapacity) Unit ¶
func (PodFilesystemCapacity) Unit() string
Unit returns the semantic convention unit of the instrument
type PodFilesystemUsage ¶
type PodFilesystemUsage struct {
metric.Int64UpDownCounter
}
PodFilesystemUsage is an instrument used to record metric values conforming to the "k8s.pod.filesystem.usage" semantic conventions. It represents the pod filesystem usage.
func NewPodFilesystemUsage ¶
func NewPodFilesystemUsage( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodFilesystemUsage, error)
NewPodFilesystemUsage returns a new PodFilesystemUsage instrument.
func (PodFilesystemUsage) Add ¶
Add adds incr to the existing count for attrs.
This may not equal capacity - available.
This metric is derived from the FsStats.UsedBytes field of the PodStats.EphemeralStorage of the Kubelet's stats API.
func (PodFilesystemUsage) AddSet ¶
AddSet adds incr to the existing count for set.
This may not equal capacity - available.
This metric is derived from the FsStats.UsedBytes field of the PodStats.EphemeralStorage of the Kubelet's stats API.
func (PodFilesystemUsage) Description ¶
func (PodFilesystemUsage) Description() string
Description returns the semantic convention description of the instrument
func (PodFilesystemUsage) Inst ¶
func (m PodFilesystemUsage) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PodFilesystemUsage) Name ¶
func (PodFilesystemUsage) Name() string
Name returns the semantic convention name of the instrument.
func (PodFilesystemUsage) Unit ¶
func (PodFilesystemUsage) Unit() string
Unit returns the semantic convention unit of the instrument
type PodMemoryAvailable ¶
type PodMemoryAvailable struct {
metric.Int64UpDownCounter
}
PodMemoryAvailable is an instrument used to record metric values conforming to the "k8s.pod.memory.available" semantic conventions. It represents the pod memory available.
func NewPodMemoryAvailable ¶
func NewPodMemoryAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodMemoryAvailable, error)
NewPodMemoryAvailable returns a new PodMemoryAvailable instrument.
func (PodMemoryAvailable) Add ¶
Add adds incr to the existing count for attrs.
Available memory for use. This is defined as the memory limit - workingSetBytes. If memory limit is undefined, the available bytes is omitted. This metric is derived from the MemoryStats.AvailableBytes field of the PodStats.Memory of the Kubelet's stats API.
func (PodMemoryAvailable) AddSet ¶
AddSet adds incr to the existing count for set.
Available memory for use. This is defined as the memory limit - workingSetBytes. If memory limit is undefined, the available bytes is omitted. This metric is derived from the MemoryStats.AvailableBytes field of the PodStats.Memory of the Kubelet's stats API.
func (PodMemoryAvailable) Description ¶
func (PodMemoryAvailable) Description() string
Description returns the semantic convention description of the instrument
func (PodMemoryAvailable) Inst ¶
func (m PodMemoryAvailable) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PodMemoryAvailable) Name ¶
func (PodMemoryAvailable) Name() string
Name returns the semantic convention name of the instrument.
func (PodMemoryAvailable) Unit ¶
func (PodMemoryAvailable) Unit() string
Unit returns the semantic convention unit of the instrument
type PodMemoryPagingFaults ¶
type PodMemoryPagingFaults struct {
metric.Int64Counter
}
PodMemoryPagingFaults is an instrument used to record metric values conforming to the "k8s.pod.memory.paging.faults" semantic conventions. It represents the pod memory paging faults.
func NewPodMemoryPagingFaults ¶
func NewPodMemoryPagingFaults( m metric.Meter, opt ...metric.Int64CounterOption, ) (PodMemoryPagingFaults, error)
NewPodMemoryPagingFaults returns a new PodMemoryPagingFaults instrument.
func (PodMemoryPagingFaults) Add ¶
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
Cumulative number of major/minor page faults. This metric is derived from the MemoryStats.PageFaults and MemoryStats.MajorPageFaults field of the PodStats.Memory of the Kubelet's stats API.
func (PodMemoryPagingFaults) AddSet ¶
AddSet adds incr to the existing count for set.
Cumulative number of major/minor page faults. This metric is derived from the MemoryStats.PageFaults and MemoryStats.MajorPageFaults field of the PodStats.Memory of the Kubelet's stats API.
func (PodMemoryPagingFaults) AttrSystemPagingFaultType ¶
func (PodMemoryPagingFaults) AttrSystemPagingFaultType(val SystemPagingFaultTypeAttr) attribute.KeyValue
AttrSystemPagingFaultType returns an optional attribute for the "system.paging.fault.type" semantic convention. It represents the paging fault type.
func (PodMemoryPagingFaults) Description ¶
func (PodMemoryPagingFaults) Description() string
Description returns the semantic convention description of the instrument
func (PodMemoryPagingFaults) Inst ¶
func (m PodMemoryPagingFaults) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (PodMemoryPagingFaults) Name ¶
func (PodMemoryPagingFaults) Name() string
Name returns the semantic convention name of the instrument.
func (PodMemoryPagingFaults) Unit ¶
func (PodMemoryPagingFaults) Unit() string
Unit returns the semantic convention unit of the instrument
type PodMemoryRss ¶
type PodMemoryRss struct {
metric.Int64UpDownCounter
}
PodMemoryRss is an instrument used to record metric values conforming to the "k8s.pod.memory.rss" semantic conventions. It represents the pod memory RSS.
func NewPodMemoryRss ¶
func NewPodMemoryRss( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodMemoryRss, error)
NewPodMemoryRss returns a new PodMemoryRss instrument.
func (PodMemoryRss) Add ¶
Add adds incr to the existing count for attrs.
The amount of anonymous and swap cache memory (includes transparent hugepages). This metric is derived from the MemoryStats.RSSBytes field of the PodStats.Memory of the Kubelet's stats API.
func (PodMemoryRss) AddSet ¶
AddSet adds incr to the existing count for set.
The amount of anonymous and swap cache memory (includes transparent hugepages). This metric is derived from the MemoryStats.RSSBytes field of the PodStats.Memory of the Kubelet's stats API.
func (PodMemoryRss) Description ¶
func (PodMemoryRss) Description() string
Description returns the semantic convention description of the instrument
func (PodMemoryRss) Inst ¶
func (m PodMemoryRss) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PodMemoryRss) Name ¶
func (PodMemoryRss) Name() string
Name returns the semantic convention name of the instrument.
func (PodMemoryRss) Unit ¶
func (PodMemoryRss) Unit() string
Unit returns the semantic convention unit of the instrument
type PodMemoryUsage ¶
type PodMemoryUsage struct {
metric.Int64Gauge
}
PodMemoryUsage is an instrument used to record metric values conforming to the "k8s.pod.memory.usage" semantic conventions. It represents the memory usage of the Pod.
func NewPodMemoryUsage ¶
func NewPodMemoryUsage( m metric.Meter, opt ...metric.Int64GaugeOption, ) (PodMemoryUsage, error)
NewPodMemoryUsage returns a new PodMemoryUsage instrument.
func (PodMemoryUsage) Description ¶
func (PodMemoryUsage) Description() string
Description returns the semantic convention description of the instrument
func (PodMemoryUsage) Inst ¶
func (m PodMemoryUsage) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
func (PodMemoryUsage) Name ¶
func (PodMemoryUsage) Name() string
Name returns the semantic convention name of the instrument.
func (PodMemoryUsage) Record ¶
Record records val to the current distribution for attrs.
Total memory usage of the Pod
func (PodMemoryUsage) RecordSet ¶
RecordSet records val to the current distribution for set.
Total memory usage of the Pod
func (PodMemoryUsage) Unit ¶
func (PodMemoryUsage) Unit() string
Unit returns the semantic convention unit of the instrument
type PodMemoryWorkingSet ¶
type PodMemoryWorkingSet struct {
metric.Int64UpDownCounter
}
PodMemoryWorkingSet is an instrument used to record metric values conforming to the "k8s.pod.memory.working_set" semantic conventions. It represents the pod memory working set.
func NewPodMemoryWorkingSet ¶
func NewPodMemoryWorkingSet( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodMemoryWorkingSet, error)
NewPodMemoryWorkingSet returns a new PodMemoryWorkingSet instrument.
func (PodMemoryWorkingSet) Add ¶
Add adds incr to the existing count for attrs.
The amount of working set memory. This includes recently accessed memory, dirty memory, and kernel memory. WorkingSetBytes is <= UsageBytes. This metric is derived from the MemoryStats.WorkingSetBytes field of the PodStats.Memory of the Kubelet's stats API.
func (PodMemoryWorkingSet) AddSet ¶
AddSet adds incr to the existing count for set.
The amount of working set memory. This includes recently accessed memory, dirty memory, and kernel memory. WorkingSetBytes is <= UsageBytes. This metric is derived from the MemoryStats.WorkingSetBytes field of the PodStats.Memory of the Kubelet's stats API.
func (PodMemoryWorkingSet) Description ¶
func (PodMemoryWorkingSet) Description() string
Description returns the semantic convention description of the instrument
func (PodMemoryWorkingSet) Inst ¶
func (m PodMemoryWorkingSet) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PodMemoryWorkingSet) Name ¶
func (PodMemoryWorkingSet) Name() string
Name returns the semantic convention name of the instrument.
func (PodMemoryWorkingSet) Unit ¶
func (PodMemoryWorkingSet) Unit() string
Unit returns the semantic convention unit of the instrument
type PodNetworkErrors ¶
type PodNetworkErrors struct {
metric.Int64Counter
}
PodNetworkErrors is an instrument used to record metric values conforming to the "k8s.pod.network.errors" semantic conventions. It represents the pod network errors.
func NewPodNetworkErrors ¶
func NewPodNetworkErrors( m metric.Meter, opt ...metric.Int64CounterOption, ) (PodNetworkErrors, error)
NewPodNetworkErrors returns a new PodNetworkErrors instrument.
func (PodNetworkErrors) Add ¶
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
func (PodNetworkErrors) AddSet ¶
AddSet adds incr to the existing count for set.
func (PodNetworkErrors) AttrNetworkIODirection ¶
func (PodNetworkErrors) AttrNetworkIODirection(val NetworkIODirectionAttr) attribute.KeyValue
AttrNetworkIODirection returns an optional attribute for the "network.io.direction" semantic convention. It represents the network IO operation direction.
func (PodNetworkErrors) AttrNetworkInterfaceName ¶
func (PodNetworkErrors) AttrNetworkInterfaceName(val string) attribute.KeyValue
AttrNetworkInterfaceName returns an optional attribute for the "network.interface.name" semantic convention. It represents the network interface name.
func (PodNetworkErrors) Description ¶
func (PodNetworkErrors) Description() string
Description returns the semantic convention description of the instrument
func (PodNetworkErrors) Inst ¶
func (m PodNetworkErrors) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (PodNetworkErrors) Name ¶
func (PodNetworkErrors) Name() string
Name returns the semantic convention name of the instrument.
func (PodNetworkErrors) Unit ¶
func (PodNetworkErrors) Unit() string
Unit returns the semantic convention unit of the instrument
type PodNetworkIO ¶
type PodNetworkIO struct {
metric.Int64Counter
}
PodNetworkIO is an instrument used to record metric values conforming to the "k8s.pod.network.io" semantic conventions. It represents the network bytes for the Pod.
func NewPodNetworkIO ¶
func NewPodNetworkIO( m metric.Meter, opt ...metric.Int64CounterOption, ) (PodNetworkIO, error)
NewPodNetworkIO returns a new PodNetworkIO instrument.
func (PodNetworkIO) Add ¶
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
func (PodNetworkIO) AddSet ¶
AddSet adds incr to the existing count for set.
func (PodNetworkIO) AttrNetworkIODirection ¶
func (PodNetworkIO) AttrNetworkIODirection(val NetworkIODirectionAttr) attribute.KeyValue
AttrNetworkIODirection returns an optional attribute for the "network.io.direction" semantic convention. It represents the network IO operation direction.
func (PodNetworkIO) AttrNetworkInterfaceName ¶
func (PodNetworkIO) AttrNetworkInterfaceName(val string) attribute.KeyValue
AttrNetworkInterfaceName returns an optional attribute for the "network.interface.name" semantic convention. It represents the network interface name.
func (PodNetworkIO) Description ¶
func (PodNetworkIO) Description() string
Description returns the semantic convention description of the instrument
func (PodNetworkIO) Inst ¶
func (m PodNetworkIO) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (PodNetworkIO) Name ¶
func (PodNetworkIO) Name() string
Name returns the semantic convention name of the instrument.
func (PodNetworkIO) Unit ¶
func (PodNetworkIO) Unit() string
Unit returns the semantic convention unit of the instrument
type PodStatusPhase ¶
type PodStatusPhase struct {
metric.Int64UpDownCounter
}
PodStatusPhase is an instrument used to record metric values conforming to the "k8s.pod.status.phase" semantic conventions. It represents the describes number of K8s Pods that are currently in a given phase.
func NewPodStatusPhase ¶
func NewPodStatusPhase( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodStatusPhase, error)
NewPodStatusPhase returns a new PodStatusPhase instrument.
func (PodStatusPhase) Add ¶
func (m PodStatusPhase) Add( ctx context.Context, incr int64, podStatusPhase PodStatusPhaseAttr, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The podStatusPhase is the the phase for the pod. Corresponds to the `phase` field of the: K8s PodStatus
All possible pod phases will be reported at each time interval to avoid missing metrics. Only the value corresponding to the current phase will be non-zero.
func (PodStatusPhase) AddSet ¶
AddSet adds incr to the existing count for set.
All possible pod phases will be reported at each time interval to avoid missing metrics. Only the value corresponding to the current phase will be non-zero.
func (PodStatusPhase) Description ¶
func (PodStatusPhase) Description() string
Description returns the semantic convention description of the instrument
func (PodStatusPhase) Inst ¶
func (m PodStatusPhase) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PodStatusPhase) Name ¶
func (PodStatusPhase) Name() string
Name returns the semantic convention name of the instrument.
func (PodStatusPhase) Unit ¶
func (PodStatusPhase) Unit() string
Unit returns the semantic convention unit of the instrument
type PodStatusPhaseAttr ¶
type PodStatusPhaseAttr string
PodStatusPhaseAttr is an attribute conforming to the k8s.pod.status.phase semantic conventions. It represents the phase for the pod. Corresponds to the `phase` field of the: K8s PodStatus.
var ( // PodStatusPhasePending is the pod has been accepted by the system, but one or // more of the containers has not been started. This includes time before being // bound to a node, as well as time spent pulling images onto the host. PodStatusPhasePending PodStatusPhaseAttr = "Pending" // PodStatusPhaseRunning is the pod has been bound to a node and all of the // containers have been started. At least one container is still running or is // in the process of being restarted. PodStatusPhaseRunning PodStatusPhaseAttr = "Running" // PodStatusPhaseSucceeded is the all containers in the pod have voluntarily // terminated with a container exit code of 0, and the system is not going to // restart any of these containers. PodStatusPhaseSucceeded PodStatusPhaseAttr = "Succeeded" // PodStatusPhaseFailed is the all containers in the pod have terminated, and at // least one container has terminated in a failure (exited with a non-zero exit // code or was stopped by the system). PodStatusPhaseFailed PodStatusPhaseAttr = "Failed" // PodStatusPhaseUnknown is the for some reason the state of the pod could not // be obtained, typically due to an error in communicating with the host of the // pod. PodStatusPhaseUnknown PodStatusPhaseAttr = "Unknown" )
type PodStatusReason ¶
type PodStatusReason struct {
metric.Int64UpDownCounter
}
PodStatusReason is an instrument used to record metric values conforming to the "k8s.pod.status.reason" semantic conventions. It represents the describes the number of K8s Pods that are currently in a state for a given reason.
func NewPodStatusReason ¶
func NewPodStatusReason( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodStatusReason, error)
NewPodStatusReason returns a new PodStatusReason instrument.
func (PodStatusReason) Add ¶
func (m PodStatusReason) Add( ctx context.Context, incr int64, podStatusReason PodStatusReasonAttr, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The podStatusReason is the the reason for the pod state. Corresponds to the `reason` field of the: K8s PodStatus
All possible pod status reasons will be reported at each time interval to avoid missing metrics. Only the value corresponding to the current reason will be non-zero.
func (PodStatusReason) AddSet ¶
AddSet adds incr to the existing count for set.
All possible pod status reasons will be reported at each time interval to avoid missing metrics. Only the value corresponding to the current reason will be non-zero.
func (PodStatusReason) Description ¶
func (PodStatusReason) Description() string
Description returns the semantic convention description of the instrument
func (PodStatusReason) Inst ¶
func (m PodStatusReason) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PodStatusReason) Name ¶
func (PodStatusReason) Name() string
Name returns the semantic convention name of the instrument.
func (PodStatusReason) Unit ¶
func (PodStatusReason) Unit() string
Unit returns the semantic convention unit of the instrument
type PodStatusReasonAttr ¶
type PodStatusReasonAttr string
PodStatusReasonAttr is an attribute conforming to the k8s.pod.status.reason semantic conventions. It represents the reason for the pod state. Corresponds to the `reason` field of the: K8s PodStatus.
var ( // PodStatusReasonEvicted is the pod is evicted. PodStatusReasonEvicted PodStatusReasonAttr = "Evicted" // PodStatusReasonNodeAffinity is the pod is in a status because of its node // affinity. PodStatusReasonNodeAffinity PodStatusReasonAttr = "NodeAffinity" // PodStatusReasonNodeLost is the reason on a pod when its state cannot be // confirmed as kubelet is unresponsive on the node it is (was) running. PodStatusReasonNodeLost PodStatusReasonAttr = "NodeLost" // PodStatusReasonShutdown is the node is shutdown. PodStatusReasonShutdown PodStatusReasonAttr = "Shutdown" // PodStatusReasonUnexpectedAdmissionError is the pod was rejected admission to // the node because of an error during admission that could not be categorized. PodStatusReasonUnexpectedAdmissionError PodStatusReasonAttr = "UnexpectedAdmissionError" )
type PodUptime ¶
type PodUptime struct {
metric.Float64Gauge
}
PodUptime is an instrument used to record metric values conforming to the "k8s.pod.uptime" semantic conventions. It represents the time the Pod has been running.
func NewPodUptime ¶
NewPodUptime returns a new PodUptime instrument.
func (PodUptime) Description ¶
Description returns the semantic convention description of the instrument
func (PodUptime) Inst ¶
func (m PodUptime) Inst() metric.Float64Gauge
Inst returns the underlying metric instrument.
func (PodUptime) Name ¶
Name returns the semantic convention name of the instrument.
func (PodUptime) Record ¶
Record records val to the current distribution for attrs.
Instrumentations SHOULD use a gauge with type `double` and measure uptime in seconds as a floating point number with the highest precision available. The actual accuracy would depend on the instrumentation and operating system.
func (PodUptime) RecordSet ¶
RecordSet records val to the current distribution for set.
Instrumentations SHOULD use a gauge with type `double` and measure uptime in seconds as a floating point number with the highest precision available. The actual accuracy would depend on the instrumentation and operating system.
func (PodUptime) Unit ¶
Unit returns the semantic convention unit of the instrument
type PodVolumeAvailable ¶
type PodVolumeAvailable struct {
metric.Int64UpDownCounter
}
PodVolumeAvailable is an instrument used to record metric values conforming to the "k8s.pod.volume.available" semantic conventions. It represents the pod volume storage space available.
func NewPodVolumeAvailable ¶
func NewPodVolumeAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodVolumeAvailable, error)
NewPodVolumeAvailable returns a new PodVolumeAvailable instrument.
func (PodVolumeAvailable) Add ¶
func (m PodVolumeAvailable) Add( ctx context.Context, incr int64, volumeName string, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The volumeName is the the name of the K8s volume.
All additional attrs passed are included in the recorded value.
This metric is derived from the VolumeStats.AvailableBytes field of the PodStats of the Kubelet's stats API.
func (PodVolumeAvailable) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is derived from the VolumeStats.AvailableBytes field of the PodStats of the Kubelet's stats API.
func (PodVolumeAvailable) AttrVolumeType ¶
func (PodVolumeAvailable) AttrVolumeType(val VolumeTypeAttr) attribute.KeyValue
AttrVolumeType returns an optional attribute for the "k8s.volume.type" semantic convention. It represents the type of the K8s volume.
func (PodVolumeAvailable) Description ¶
func (PodVolumeAvailable) Description() string
Description returns the semantic convention description of the instrument
func (PodVolumeAvailable) Inst ¶
func (m PodVolumeAvailable) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PodVolumeAvailable) Name ¶
func (PodVolumeAvailable) Name() string
Name returns the semantic convention name of the instrument.
func (PodVolumeAvailable) Unit ¶
func (PodVolumeAvailable) Unit() string
Unit returns the semantic convention unit of the instrument
type PodVolumeCapacity ¶
type PodVolumeCapacity struct {
metric.Int64UpDownCounter
}
PodVolumeCapacity is an instrument used to record metric values conforming to the "k8s.pod.volume.capacity" semantic conventions. It represents the pod volume total capacity.
func NewPodVolumeCapacity ¶
func NewPodVolumeCapacity( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodVolumeCapacity, error)
NewPodVolumeCapacity returns a new PodVolumeCapacity instrument.
func (PodVolumeCapacity) Add ¶
func (m PodVolumeCapacity) Add( ctx context.Context, incr int64, volumeName string, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The volumeName is the the name of the K8s volume.
All additional attrs passed are included in the recorded value.
This metric is derived from the VolumeStats.CapacityBytes field of the PodStats of the Kubelet's stats API.
func (PodVolumeCapacity) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is derived from the VolumeStats.CapacityBytes field of the PodStats of the Kubelet's stats API.
func (PodVolumeCapacity) AttrVolumeType ¶
func (PodVolumeCapacity) AttrVolumeType(val VolumeTypeAttr) attribute.KeyValue
AttrVolumeType returns an optional attribute for the "k8s.volume.type" semantic convention. It represents the type of the K8s volume.
func (PodVolumeCapacity) Description ¶
func (PodVolumeCapacity) Description() string
Description returns the semantic convention description of the instrument
func (PodVolumeCapacity) Inst ¶
func (m PodVolumeCapacity) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PodVolumeCapacity) Name ¶
func (PodVolumeCapacity) Name() string
Name returns the semantic convention name of the instrument.
func (PodVolumeCapacity) Unit ¶
func (PodVolumeCapacity) Unit() string
Unit returns the semantic convention unit of the instrument
type PodVolumeInodeCount ¶
type PodVolumeInodeCount struct {
metric.Int64UpDownCounter
}
PodVolumeInodeCount is an instrument used to record metric values conforming to the "k8s.pod.volume.inode.count" semantic conventions. It represents the total inodes in the filesystem of the Pod's volume.
func NewPodVolumeInodeCount ¶
func NewPodVolumeInodeCount( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodVolumeInodeCount, error)
NewPodVolumeInodeCount returns a new PodVolumeInodeCount instrument.
func (PodVolumeInodeCount) Add ¶
func (m PodVolumeInodeCount) Add( ctx context.Context, incr int64, volumeName string, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The volumeName is the the name of the K8s volume.
All additional attrs passed are included in the recorded value.
This metric is derived from the VolumeStats.Inodes field of the PodStats of the Kubelet's stats API.
func (PodVolumeInodeCount) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is derived from the VolumeStats.Inodes field of the PodStats of the Kubelet's stats API.
func (PodVolumeInodeCount) AttrVolumeType ¶
func (PodVolumeInodeCount) AttrVolumeType(val VolumeTypeAttr) attribute.KeyValue
AttrVolumeType returns an optional attribute for the "k8s.volume.type" semantic convention. It represents the type of the K8s volume.
func (PodVolumeInodeCount) Description ¶
func (PodVolumeInodeCount) Description() string
Description returns the semantic convention description of the instrument
func (PodVolumeInodeCount) Inst ¶
func (m PodVolumeInodeCount) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PodVolumeInodeCount) Name ¶
func (PodVolumeInodeCount) Name() string
Name returns the semantic convention name of the instrument.
func (PodVolumeInodeCount) Unit ¶
func (PodVolumeInodeCount) Unit() string
Unit returns the semantic convention unit of the instrument
type PodVolumeInodeFree ¶
type PodVolumeInodeFree struct {
metric.Int64UpDownCounter
}
PodVolumeInodeFree is an instrument used to record metric values conforming to the "k8s.pod.volume.inode.free" semantic conventions. It represents the free inodes in the filesystem of the Pod's volume.
func NewPodVolumeInodeFree ¶
func NewPodVolumeInodeFree( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodVolumeInodeFree, error)
NewPodVolumeInodeFree returns a new PodVolumeInodeFree instrument.
func (PodVolumeInodeFree) Add ¶
func (m PodVolumeInodeFree) Add( ctx context.Context, incr int64, volumeName string, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The volumeName is the the name of the K8s volume.
All additional attrs passed are included in the recorded value.
This metric is derived from the VolumeStats.InodesFree field of the PodStats of the Kubelet's stats API.
func (PodVolumeInodeFree) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is derived from the VolumeStats.InodesFree field of the PodStats of the Kubelet's stats API.
func (PodVolumeInodeFree) AttrVolumeType ¶
func (PodVolumeInodeFree) AttrVolumeType(val VolumeTypeAttr) attribute.KeyValue
AttrVolumeType returns an optional attribute for the "k8s.volume.type" semantic convention. It represents the type of the K8s volume.
func (PodVolumeInodeFree) Description ¶
func (PodVolumeInodeFree) Description() string
Description returns the semantic convention description of the instrument
func (PodVolumeInodeFree) Inst ¶
func (m PodVolumeInodeFree) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PodVolumeInodeFree) Name ¶
func (PodVolumeInodeFree) Name() string
Name returns the semantic convention name of the instrument.
func (PodVolumeInodeFree) Unit ¶
func (PodVolumeInodeFree) Unit() string
Unit returns the semantic convention unit of the instrument
type PodVolumeInodeUsed ¶
type PodVolumeInodeUsed struct {
metric.Int64UpDownCounter
}
PodVolumeInodeUsed is an instrument used to record metric values conforming to the "k8s.pod.volume.inode.used" semantic conventions. It represents the inodes used by the filesystem of the Pod's volume.
func NewPodVolumeInodeUsed ¶
func NewPodVolumeInodeUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodVolumeInodeUsed, error)
NewPodVolumeInodeUsed returns a new PodVolumeInodeUsed instrument.
func (PodVolumeInodeUsed) Add ¶
func (m PodVolumeInodeUsed) Add( ctx context.Context, incr int64, volumeName string, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The volumeName is the the name of the K8s volume.
All additional attrs passed are included in the recorded value.
This metric is derived from the VolumeStats.InodesUsed field of the PodStats of the Kubelet's stats API.
This may not be equal to `inodes - free` because filesystem may share inodes with other filesystems.
func (PodVolumeInodeUsed) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is derived from the VolumeStats.InodesUsed field of the PodStats of the Kubelet's stats API.
This may not be equal to `inodes - free` because filesystem may share inodes with other filesystems.
func (PodVolumeInodeUsed) AttrVolumeType ¶
func (PodVolumeInodeUsed) AttrVolumeType(val VolumeTypeAttr) attribute.KeyValue
AttrVolumeType returns an optional attribute for the "k8s.volume.type" semantic convention. It represents the type of the K8s volume.
func (PodVolumeInodeUsed) Description ¶
func (PodVolumeInodeUsed) Description() string
Description returns the semantic convention description of the instrument
func (PodVolumeInodeUsed) Inst ¶
func (m PodVolumeInodeUsed) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PodVolumeInodeUsed) Name ¶
func (PodVolumeInodeUsed) Name() string
Name returns the semantic convention name of the instrument.
func (PodVolumeInodeUsed) Unit ¶
func (PodVolumeInodeUsed) Unit() string
Unit returns the semantic convention unit of the instrument
type PodVolumeUsage ¶
type PodVolumeUsage struct {
metric.Int64UpDownCounter
}
PodVolumeUsage is an instrument used to record metric values conforming to the "k8s.pod.volume.usage" semantic conventions. It represents the pod volume usage.
func NewPodVolumeUsage ¶
func NewPodVolumeUsage( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PodVolumeUsage, error)
NewPodVolumeUsage returns a new PodVolumeUsage instrument.
func (PodVolumeUsage) Add ¶
func (m PodVolumeUsage) Add( ctx context.Context, incr int64, volumeName string, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The volumeName is the the name of the K8s volume.
All additional attrs passed are included in the recorded value.
This may not equal capacity - available.
This metric is derived from the VolumeStats.UsedBytes field of the PodStats of the Kubelet's stats API.
func (PodVolumeUsage) AddSet ¶
AddSet adds incr to the existing count for set.
This may not equal capacity - available.
This metric is derived from the VolumeStats.UsedBytes field of the PodStats of the Kubelet's stats API.
func (PodVolumeUsage) AttrVolumeType ¶
func (PodVolumeUsage) AttrVolumeType(val VolumeTypeAttr) attribute.KeyValue
AttrVolumeType returns an optional attribute for the "k8s.volume.type" semantic convention. It represents the type of the K8s volume.
func (PodVolumeUsage) Description ¶
func (PodVolumeUsage) Description() string
Description returns the semantic convention description of the instrument
func (PodVolumeUsage) Inst ¶
func (m PodVolumeUsage) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PodVolumeUsage) Name ¶
func (PodVolumeUsage) Name() string
Name returns the semantic convention name of the instrument.
func (PodVolumeUsage) Unit ¶
func (PodVolumeUsage) Unit() string
Unit returns the semantic convention unit of the instrument
type ReplicaSetPodAvailable ¶
type ReplicaSetPodAvailable struct {
metric.Int64UpDownCounter
}
ReplicaSetPodAvailable is an instrument used to record metric values conforming to the "k8s.replicaset.pod.available" semantic conventions. It represents the total number of available replica pods (ready for at least minReadySeconds) targeted by this replicaset.
func NewReplicaSetPodAvailable ¶
func NewReplicaSetPodAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ReplicaSetPodAvailable, error)
NewReplicaSetPodAvailable returns a new ReplicaSetPodAvailable instrument.
func (ReplicaSetPodAvailable) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `availableReplicas` field of the K8s ReplicaSetStatus.
func (ReplicaSetPodAvailable) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `availableReplicas` field of the K8s ReplicaSetStatus.
func (ReplicaSetPodAvailable) Description ¶
func (ReplicaSetPodAvailable) Description() string
Description returns the semantic convention description of the instrument
func (ReplicaSetPodAvailable) Inst ¶
func (m ReplicaSetPodAvailable) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ReplicaSetPodAvailable) Name ¶
func (ReplicaSetPodAvailable) Name() string
Name returns the semantic convention name of the instrument.
func (ReplicaSetPodAvailable) Unit ¶
func (ReplicaSetPodAvailable) Unit() string
Unit returns the semantic convention unit of the instrument
type ReplicaSetPodDesired ¶
type ReplicaSetPodDesired struct {
metric.Int64UpDownCounter
}
ReplicaSetPodDesired is an instrument used to record metric values conforming to the "k8s.replicaset.pod.desired" semantic conventions. It represents the number of desired replica pods in this replicaset.
func NewReplicaSetPodDesired ¶
func NewReplicaSetPodDesired( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ReplicaSetPodDesired, error)
NewReplicaSetPodDesired returns a new ReplicaSetPodDesired instrument.
func (ReplicaSetPodDesired) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `replicas` field of the K8s ReplicaSetSpec.
func (ReplicaSetPodDesired) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `replicas` field of the K8s ReplicaSetSpec.
func (ReplicaSetPodDesired) Description ¶
func (ReplicaSetPodDesired) Description() string
Description returns the semantic convention description of the instrument
func (ReplicaSetPodDesired) Inst ¶
func (m ReplicaSetPodDesired) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ReplicaSetPodDesired) Name ¶
func (ReplicaSetPodDesired) Name() string
Name returns the semantic convention name of the instrument.
func (ReplicaSetPodDesired) Unit ¶
func (ReplicaSetPodDesired) Unit() string
Unit returns the semantic convention unit of the instrument
type ReplicationControllerPodAvailable ¶
type ReplicationControllerPodAvailable struct {
metric.Int64UpDownCounter
}
ReplicationControllerPodAvailable is an instrument used to record metric values conforming to the "k8s.replicationcontroller.pod.available" semantic conventions. It represents the total number of available replica pods (ready for at least minReadySeconds) targeted by this replication controller.
func NewReplicationControllerPodAvailable ¶
func NewReplicationControllerPodAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ReplicationControllerPodAvailable, error)
NewReplicationControllerPodAvailable returns a new ReplicationControllerPodAvailable instrument.
func (ReplicationControllerPodAvailable) Add ¶
func (m ReplicationControllerPodAvailable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric aligns with the `availableReplicas` field of the K8s ReplicationControllerStatus
func (ReplicationControllerPodAvailable) AddSet ¶
func (m ReplicationControllerPodAvailable) AddSet(ctx context.Context, incr int64, set attribute.Set)
AddSet adds incr to the existing count for set.
This metric aligns with the `availableReplicas` field of the K8s ReplicationControllerStatus
func (ReplicationControllerPodAvailable) Description ¶
func (ReplicationControllerPodAvailable) Description() string
Description returns the semantic convention description of the instrument
func (ReplicationControllerPodAvailable) Inst ¶
func (m ReplicationControllerPodAvailable) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ReplicationControllerPodAvailable) Name ¶
func (ReplicationControllerPodAvailable) Name() string
Name returns the semantic convention name of the instrument.
func (ReplicationControllerPodAvailable) Unit ¶
func (ReplicationControllerPodAvailable) Unit() string
Unit returns the semantic convention unit of the instrument
type ReplicationControllerPodDesired ¶
type ReplicationControllerPodDesired struct {
metric.Int64UpDownCounter
}
ReplicationControllerPodDesired is an instrument used to record metric values conforming to the "k8s.replicationcontroller.pod.desired" semantic conventions. It represents the number of desired replica pods in this replication controller.
func NewReplicationControllerPodDesired ¶
func NewReplicationControllerPodDesired( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ReplicationControllerPodDesired, error)
NewReplicationControllerPodDesired returns a new ReplicationControllerPodDesired instrument.
func (ReplicationControllerPodDesired) Add ¶
func (m ReplicationControllerPodDesired) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric aligns with the `replicas` field of the K8s ReplicationControllerSpec
func (ReplicationControllerPodDesired) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `replicas` field of the K8s ReplicationControllerSpec
func (ReplicationControllerPodDesired) Description ¶
func (ReplicationControllerPodDesired) Description() string
Description returns the semantic convention description of the instrument
func (ReplicationControllerPodDesired) Inst ¶
func (m ReplicationControllerPodDesired) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ReplicationControllerPodDesired) Name ¶
func (ReplicationControllerPodDesired) Name() string
Name returns the semantic convention name of the instrument.
func (ReplicationControllerPodDesired) Unit ¶
func (ReplicationControllerPodDesired) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaCPULimitHard ¶
type ResourceQuotaCPULimitHard struct {
metric.Int64UpDownCounter
}
ResourceQuotaCPULimitHard is an instrument used to record metric values conforming to the "k8s.resourcequota.cpu.limit.hard" semantic conventions. It represents the CPU limits in a specific namespace. The value represents the configured quota limit of the resource in the namespace.
func NewResourceQuotaCPULimitHard ¶
func NewResourceQuotaCPULimitHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaCPULimitHard, error)
NewResourceQuotaCPULimitHard returns a new ResourceQuotaCPULimitHard instrument.
func (ResourceQuotaCPULimitHard) Add ¶
func (m ResourceQuotaCPULimitHard) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaCPULimitHard) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaCPULimitHard) Description ¶
func (ResourceQuotaCPULimitHard) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaCPULimitHard) Inst ¶
func (m ResourceQuotaCPULimitHard) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaCPULimitHard) Name ¶
func (ResourceQuotaCPULimitHard) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaCPULimitHard) Unit ¶
func (ResourceQuotaCPULimitHard) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaCPULimitUsed ¶
type ResourceQuotaCPULimitUsed struct {
metric.Int64UpDownCounter
}
ResourceQuotaCPULimitUsed is an instrument used to record metric values conforming to the "k8s.resourcequota.cpu.limit.used" semantic conventions. It represents the CPU limits in a specific namespace. The value represents the current observed total usage of the resource in the namespace.
func NewResourceQuotaCPULimitUsed ¶
func NewResourceQuotaCPULimitUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaCPULimitUsed, error)
NewResourceQuotaCPULimitUsed returns a new ResourceQuotaCPULimitUsed instrument.
func (ResourceQuotaCPULimitUsed) Add ¶
func (m ResourceQuotaCPULimitUsed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaCPULimitUsed) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaCPULimitUsed) Description ¶
func (ResourceQuotaCPULimitUsed) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaCPULimitUsed) Inst ¶
func (m ResourceQuotaCPULimitUsed) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaCPULimitUsed) Name ¶
func (ResourceQuotaCPULimitUsed) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaCPULimitUsed) Unit ¶
func (ResourceQuotaCPULimitUsed) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaCPURequestHard ¶
type ResourceQuotaCPURequestHard struct {
metric.Int64UpDownCounter
}
ResourceQuotaCPURequestHard is an instrument used to record metric values conforming to the "k8s.resourcequota.cpu.request.hard" semantic conventions. It represents the CPU requests in a specific namespace. The value represents the configured quota limit of the resource in the namespace.
func NewResourceQuotaCPURequestHard ¶
func NewResourceQuotaCPURequestHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaCPURequestHard, error)
NewResourceQuotaCPURequestHard returns a new ResourceQuotaCPURequestHard instrument.
func (ResourceQuotaCPURequestHard) Add ¶
func (m ResourceQuotaCPURequestHard) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaCPURequestHard) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaCPURequestHard) Description ¶
func (ResourceQuotaCPURequestHard) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaCPURequestHard) Inst ¶
func (m ResourceQuotaCPURequestHard) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaCPURequestHard) Name ¶
func (ResourceQuotaCPURequestHard) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaCPURequestHard) Unit ¶
func (ResourceQuotaCPURequestHard) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaCPURequestUsed ¶
type ResourceQuotaCPURequestUsed struct {
metric.Int64UpDownCounter
}
ResourceQuotaCPURequestUsed is an instrument used to record metric values conforming to the "k8s.resourcequota.cpu.request.used" semantic conventions. It represents the CPU requests in a specific namespace. The value represents the current observed total usage of the resource in the namespace.
func NewResourceQuotaCPURequestUsed ¶
func NewResourceQuotaCPURequestUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaCPURequestUsed, error)
NewResourceQuotaCPURequestUsed returns a new ResourceQuotaCPURequestUsed instrument.
func (ResourceQuotaCPURequestUsed) Add ¶
func (m ResourceQuotaCPURequestUsed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaCPURequestUsed) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaCPURequestUsed) Description ¶
func (ResourceQuotaCPURequestUsed) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaCPURequestUsed) Inst ¶
func (m ResourceQuotaCPURequestUsed) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaCPURequestUsed) Name ¶
func (ResourceQuotaCPURequestUsed) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaCPURequestUsed) Unit ¶
func (ResourceQuotaCPURequestUsed) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaEphemeralStorageLimitHard ¶
type ResourceQuotaEphemeralStorageLimitHard struct {
metric.Int64UpDownCounter
}
ResourceQuotaEphemeralStorageLimitHard is an instrument used to record metric values conforming to the "k8s.resourcequota.ephemeral_storage.limit.hard" semantic conventions. It represents the sum of local ephemeral storage limits in the namespace. The value represents the configured quota limit of the resource in the namespace.
func NewResourceQuotaEphemeralStorageLimitHard ¶
func NewResourceQuotaEphemeralStorageLimitHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaEphemeralStorageLimitHard, error)
NewResourceQuotaEphemeralStorageLimitHard returns a new ResourceQuotaEphemeralStorageLimitHard instrument.
func (ResourceQuotaEphemeralStorageLimitHard) Add ¶
func (m ResourceQuotaEphemeralStorageLimitHard) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaEphemeralStorageLimitHard) AddSet ¶
func (m ResourceQuotaEphemeralStorageLimitHard) AddSet(ctx context.Context, incr int64, set attribute.Set)
AddSet adds incr to the existing count for set.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaEphemeralStorageLimitHard) Description ¶
func (ResourceQuotaEphemeralStorageLimitHard) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaEphemeralStorageLimitHard) Inst ¶
func (m ResourceQuotaEphemeralStorageLimitHard) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaEphemeralStorageLimitHard) Name ¶
func (ResourceQuotaEphemeralStorageLimitHard) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaEphemeralStorageLimitHard) Unit ¶
func (ResourceQuotaEphemeralStorageLimitHard) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaEphemeralStorageLimitUsed ¶
type ResourceQuotaEphemeralStorageLimitUsed struct {
metric.Int64UpDownCounter
}
ResourceQuotaEphemeralStorageLimitUsed is an instrument used to record metric values conforming to the "k8s.resourcequota.ephemeral_storage.limit.used" semantic conventions. It represents the sum of local ephemeral storage limits in the namespace. The value represents the current observed total usage of the resource in the namespace.
func NewResourceQuotaEphemeralStorageLimitUsed ¶
func NewResourceQuotaEphemeralStorageLimitUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaEphemeralStorageLimitUsed, error)
NewResourceQuotaEphemeralStorageLimitUsed returns a new ResourceQuotaEphemeralStorageLimitUsed instrument.
func (ResourceQuotaEphemeralStorageLimitUsed) Add ¶
func (m ResourceQuotaEphemeralStorageLimitUsed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaEphemeralStorageLimitUsed) AddSet ¶
func (m ResourceQuotaEphemeralStorageLimitUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
AddSet adds incr to the existing count for set.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaEphemeralStorageLimitUsed) Description ¶
func (ResourceQuotaEphemeralStorageLimitUsed) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaEphemeralStorageLimitUsed) Inst ¶
func (m ResourceQuotaEphemeralStorageLimitUsed) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaEphemeralStorageLimitUsed) Name ¶
func (ResourceQuotaEphemeralStorageLimitUsed) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaEphemeralStorageLimitUsed) Unit ¶
func (ResourceQuotaEphemeralStorageLimitUsed) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaEphemeralStorageRequestHard ¶
type ResourceQuotaEphemeralStorageRequestHard struct {
metric.Int64UpDownCounter
}
ResourceQuotaEphemeralStorageRequestHard is an instrument used to record metric values conforming to the "k8s.resourcequota.ephemeral_storage.request.hard" semantic conventions. It represents the sum of local ephemeral storage requests in the namespace. The value represents the configured quota limit of the resource in the namespace.
func NewResourceQuotaEphemeralStorageRequestHard ¶
func NewResourceQuotaEphemeralStorageRequestHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaEphemeralStorageRequestHard, error)
NewResourceQuotaEphemeralStorageRequestHard returns a new ResourceQuotaEphemeralStorageRequestHard instrument.
func (ResourceQuotaEphemeralStorageRequestHard) Add ¶
func (m ResourceQuotaEphemeralStorageRequestHard) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaEphemeralStorageRequestHard) AddSet ¶
func (m ResourceQuotaEphemeralStorageRequestHard) AddSet(ctx context.Context, incr int64, set attribute.Set)
AddSet adds incr to the existing count for set.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaEphemeralStorageRequestHard) Description ¶
func (ResourceQuotaEphemeralStorageRequestHard) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaEphemeralStorageRequestHard) Inst ¶
func (m ResourceQuotaEphemeralStorageRequestHard) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaEphemeralStorageRequestHard) Name ¶
func (ResourceQuotaEphemeralStorageRequestHard) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaEphemeralStorageRequestHard) Unit ¶
func (ResourceQuotaEphemeralStorageRequestHard) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaEphemeralStorageRequestUsed ¶
type ResourceQuotaEphemeralStorageRequestUsed struct {
metric.Int64UpDownCounter
}
ResourceQuotaEphemeralStorageRequestUsed is an instrument used to record metric values conforming to the "k8s.resourcequota.ephemeral_storage.request.used" semantic conventions. It represents the sum of local ephemeral storage requests in the namespace. The value represents the current observed total usage of the resource in the namespace.
func NewResourceQuotaEphemeralStorageRequestUsed ¶
func NewResourceQuotaEphemeralStorageRequestUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaEphemeralStorageRequestUsed, error)
NewResourceQuotaEphemeralStorageRequestUsed returns a new ResourceQuotaEphemeralStorageRequestUsed instrument.
func (ResourceQuotaEphemeralStorageRequestUsed) Add ¶
func (m ResourceQuotaEphemeralStorageRequestUsed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaEphemeralStorageRequestUsed) AddSet ¶
func (m ResourceQuotaEphemeralStorageRequestUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
AddSet adds incr to the existing count for set.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaEphemeralStorageRequestUsed) Description ¶
func (ResourceQuotaEphemeralStorageRequestUsed) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaEphemeralStorageRequestUsed) Inst ¶
func (m ResourceQuotaEphemeralStorageRequestUsed) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaEphemeralStorageRequestUsed) Name ¶
func (ResourceQuotaEphemeralStorageRequestUsed) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaEphemeralStorageRequestUsed) Unit ¶
func (ResourceQuotaEphemeralStorageRequestUsed) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaHugepageCountRequestHard ¶
type ResourceQuotaHugepageCountRequestHard struct {
metric.Int64UpDownCounter
}
ResourceQuotaHugepageCountRequestHard is an instrument used to record metric values conforming to the "k8s.resourcequota.hugepage_count.request.hard" semantic conventions. It represents the huge page requests in a specific namespace. The value represents the configured quota limit of the resource in the namespace.
func NewResourceQuotaHugepageCountRequestHard ¶
func NewResourceQuotaHugepageCountRequestHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaHugepageCountRequestHard, error)
NewResourceQuotaHugepageCountRequestHard returns a new ResourceQuotaHugepageCountRequestHard instrument.
func (ResourceQuotaHugepageCountRequestHard) Add ¶
func (m ResourceQuotaHugepageCountRequestHard) Add( ctx context.Context, incr int64, hugepageSize string, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The hugepageSize is the the size (identifier) of the K8s huge page.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaHugepageCountRequestHard) AddSet ¶
func (m ResourceQuotaHugepageCountRequestHard) AddSet(ctx context.Context, incr int64, set attribute.Set)
AddSet adds incr to the existing count for set.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaHugepageCountRequestHard) Description ¶
func (ResourceQuotaHugepageCountRequestHard) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaHugepageCountRequestHard) Inst ¶
func (m ResourceQuotaHugepageCountRequestHard) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaHugepageCountRequestHard) Name ¶
func (ResourceQuotaHugepageCountRequestHard) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaHugepageCountRequestHard) Unit ¶
func (ResourceQuotaHugepageCountRequestHard) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaHugepageCountRequestUsed ¶
type ResourceQuotaHugepageCountRequestUsed struct {
metric.Int64UpDownCounter
}
ResourceQuotaHugepageCountRequestUsed is an instrument used to record metric values conforming to the "k8s.resourcequota.hugepage_count.request.used" semantic conventions. It represents the huge page requests in a specific namespace. The value represents the current observed total usage of the resource in the namespace.
func NewResourceQuotaHugepageCountRequestUsed ¶
func NewResourceQuotaHugepageCountRequestUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaHugepageCountRequestUsed, error)
NewResourceQuotaHugepageCountRequestUsed returns a new ResourceQuotaHugepageCountRequestUsed instrument.
func (ResourceQuotaHugepageCountRequestUsed) Add ¶
func (m ResourceQuotaHugepageCountRequestUsed) Add( ctx context.Context, incr int64, hugepageSize string, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The hugepageSize is the the size (identifier) of the K8s huge page.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaHugepageCountRequestUsed) AddSet ¶
func (m ResourceQuotaHugepageCountRequestUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
AddSet adds incr to the existing count for set.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaHugepageCountRequestUsed) Description ¶
func (ResourceQuotaHugepageCountRequestUsed) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaHugepageCountRequestUsed) Inst ¶
func (m ResourceQuotaHugepageCountRequestUsed) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaHugepageCountRequestUsed) Name ¶
func (ResourceQuotaHugepageCountRequestUsed) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaHugepageCountRequestUsed) Unit ¶
func (ResourceQuotaHugepageCountRequestUsed) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaMemoryLimitHard ¶
type ResourceQuotaMemoryLimitHard struct {
metric.Int64UpDownCounter
}
ResourceQuotaMemoryLimitHard is an instrument used to record metric values conforming to the "k8s.resourcequota.memory.limit.hard" semantic conventions. It represents the memory limits in a specific namespace. The value represents the configured quota limit of the resource in the namespace.
func NewResourceQuotaMemoryLimitHard ¶
func NewResourceQuotaMemoryLimitHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaMemoryLimitHard, error)
NewResourceQuotaMemoryLimitHard returns a new ResourceQuotaMemoryLimitHard instrument.
func (ResourceQuotaMemoryLimitHard) Add ¶
func (m ResourceQuotaMemoryLimitHard) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaMemoryLimitHard) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaMemoryLimitHard) Description ¶
func (ResourceQuotaMemoryLimitHard) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaMemoryLimitHard) Inst ¶
func (m ResourceQuotaMemoryLimitHard) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaMemoryLimitHard) Name ¶
func (ResourceQuotaMemoryLimitHard) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaMemoryLimitHard) Unit ¶
func (ResourceQuotaMemoryLimitHard) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaMemoryLimitUsed ¶
type ResourceQuotaMemoryLimitUsed struct {
metric.Int64UpDownCounter
}
ResourceQuotaMemoryLimitUsed is an instrument used to record metric values conforming to the "k8s.resourcequota.memory.limit.used" semantic conventions. It represents the memory limits in a specific namespace. The value represents the current observed total usage of the resource in the namespace.
func NewResourceQuotaMemoryLimitUsed ¶
func NewResourceQuotaMemoryLimitUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaMemoryLimitUsed, error)
NewResourceQuotaMemoryLimitUsed returns a new ResourceQuotaMemoryLimitUsed instrument.
func (ResourceQuotaMemoryLimitUsed) Add ¶
func (m ResourceQuotaMemoryLimitUsed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaMemoryLimitUsed) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaMemoryLimitUsed) Description ¶
func (ResourceQuotaMemoryLimitUsed) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaMemoryLimitUsed) Inst ¶
func (m ResourceQuotaMemoryLimitUsed) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaMemoryLimitUsed) Name ¶
func (ResourceQuotaMemoryLimitUsed) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaMemoryLimitUsed) Unit ¶
func (ResourceQuotaMemoryLimitUsed) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaMemoryRequestHard ¶
type ResourceQuotaMemoryRequestHard struct {
metric.Int64UpDownCounter
}
ResourceQuotaMemoryRequestHard is an instrument used to record metric values conforming to the "k8s.resourcequota.memory.request.hard" semantic conventions. It represents the memory requests in a specific namespace. The value represents the configured quota limit of the resource in the namespace.
func NewResourceQuotaMemoryRequestHard ¶
func NewResourceQuotaMemoryRequestHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaMemoryRequestHard, error)
NewResourceQuotaMemoryRequestHard returns a new ResourceQuotaMemoryRequestHard instrument.
func (ResourceQuotaMemoryRequestHard) Add ¶
func (m ResourceQuotaMemoryRequestHard) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaMemoryRequestHard) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaMemoryRequestHard) Description ¶
func (ResourceQuotaMemoryRequestHard) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaMemoryRequestHard) Inst ¶
func (m ResourceQuotaMemoryRequestHard) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaMemoryRequestHard) Name ¶
func (ResourceQuotaMemoryRequestHard) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaMemoryRequestHard) Unit ¶
func (ResourceQuotaMemoryRequestHard) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaMemoryRequestUsed ¶
type ResourceQuotaMemoryRequestUsed struct {
metric.Int64UpDownCounter
}
ResourceQuotaMemoryRequestUsed is an instrument used to record metric values conforming to the "k8s.resourcequota.memory.request.used" semantic conventions. It represents the memory requests in a specific namespace. The value represents the current observed total usage of the resource in the namespace.
func NewResourceQuotaMemoryRequestUsed ¶
func NewResourceQuotaMemoryRequestUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaMemoryRequestUsed, error)
NewResourceQuotaMemoryRequestUsed returns a new ResourceQuotaMemoryRequestUsed instrument.
func (ResourceQuotaMemoryRequestUsed) Add ¶
func (m ResourceQuotaMemoryRequestUsed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count for attrs.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaMemoryRequestUsed) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaMemoryRequestUsed) Description ¶
func (ResourceQuotaMemoryRequestUsed) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaMemoryRequestUsed) Inst ¶
func (m ResourceQuotaMemoryRequestUsed) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaMemoryRequestUsed) Name ¶
func (ResourceQuotaMemoryRequestUsed) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaMemoryRequestUsed) Unit ¶
func (ResourceQuotaMemoryRequestUsed) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaObjectCountHard ¶
type ResourceQuotaObjectCountHard struct {
metric.Int64UpDownCounter
}
ResourceQuotaObjectCountHard is an instrument used to record metric values conforming to the "k8s.resourcequota.object_count.hard" semantic conventions. It represents the object count limits in a specific namespace. The value represents the configured quota limit of the resource in the namespace.
func NewResourceQuotaObjectCountHard ¶
func NewResourceQuotaObjectCountHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaObjectCountHard, error)
NewResourceQuotaObjectCountHard returns a new ResourceQuotaObjectCountHard instrument.
func (ResourceQuotaObjectCountHard) Add ¶
func (m ResourceQuotaObjectCountHard) Add( ctx context.Context, incr int64, resourcequotaResourceName string, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The resourcequotaResourceName is the the name of the K8s resource a resource quota defines.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaObjectCountHard) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaObjectCountHard) Description ¶
func (ResourceQuotaObjectCountHard) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaObjectCountHard) Inst ¶
func (m ResourceQuotaObjectCountHard) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaObjectCountHard) Name ¶
func (ResourceQuotaObjectCountHard) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaObjectCountHard) Unit ¶
func (ResourceQuotaObjectCountHard) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaObjectCountUsed ¶
type ResourceQuotaObjectCountUsed struct {
metric.Int64UpDownCounter
}
ResourceQuotaObjectCountUsed is an instrument used to record metric values conforming to the "k8s.resourcequota.object_count.used" semantic conventions. It represents the object count limits in a specific namespace. The value represents the current observed total usage of the resource in the namespace.
func NewResourceQuotaObjectCountUsed ¶
func NewResourceQuotaObjectCountUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaObjectCountUsed, error)
NewResourceQuotaObjectCountUsed returns a new ResourceQuotaObjectCountUsed instrument.
func (ResourceQuotaObjectCountUsed) Add ¶
func (m ResourceQuotaObjectCountUsed) Add( ctx context.Context, incr int64, resourcequotaResourceName string, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
The resourcequotaResourceName is the the name of the K8s resource a resource quota defines.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaObjectCountUsed) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
func (ResourceQuotaObjectCountUsed) Description ¶
func (ResourceQuotaObjectCountUsed) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaObjectCountUsed) Inst ¶
func (m ResourceQuotaObjectCountUsed) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaObjectCountUsed) Name ¶
func (ResourceQuotaObjectCountUsed) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaObjectCountUsed) Unit ¶
func (ResourceQuotaObjectCountUsed) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaPersistentvolumeclaimCountHard ¶
type ResourceQuotaPersistentvolumeclaimCountHard struct {
metric.Int64UpDownCounter
}
ResourceQuotaPersistentvolumeclaimCountHard is an instrument used to record metric values conforming to the "k8s.resourcequota.persistentvolumeclaim_count.hard" semantic conventions. It represents the total number of PersistentVolumeClaims that can exist in the namespace. The value represents the configured quota limit of the resource in the namespace.
func NewResourceQuotaPersistentvolumeclaimCountHard ¶
func NewResourceQuotaPersistentvolumeclaimCountHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaPersistentvolumeclaimCountHard, error)
NewResourceQuotaPersistentvolumeclaimCountHard returns a new ResourceQuotaPersistentvolumeclaimCountHard instrument.
func (ResourceQuotaPersistentvolumeclaimCountHard) Add ¶
func (m ResourceQuotaPersistentvolumeclaimCountHard) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
The `k8s.storageclass.name` should be required when a resource quota is defined for a specific storage class.
func (ResourceQuotaPersistentvolumeclaimCountHard) AddSet ¶
func (m ResourceQuotaPersistentvolumeclaimCountHard) AddSet(ctx context.Context, incr int64, set attribute.Set)
AddSet adds incr to the existing count for set.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
The `k8s.storageclass.name` should be required when a resource quota is defined for a specific storage class.
func (ResourceQuotaPersistentvolumeclaimCountHard) AttrStorageclassName ¶
func (ResourceQuotaPersistentvolumeclaimCountHard) AttrStorageclassName(val string) attribute.KeyValue
AttrStorageclassName returns an optional attribute for the "k8s.storageclass.name" semantic convention. It represents the name of K8s StorageClass object.
func (ResourceQuotaPersistentvolumeclaimCountHard) Description ¶
func (ResourceQuotaPersistentvolumeclaimCountHard) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaPersistentvolumeclaimCountHard) Inst ¶
func (m ResourceQuotaPersistentvolumeclaimCountHard) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaPersistentvolumeclaimCountHard) Name ¶
func (ResourceQuotaPersistentvolumeclaimCountHard) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaPersistentvolumeclaimCountHard) Unit ¶
func (ResourceQuotaPersistentvolumeclaimCountHard) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaPersistentvolumeclaimCountUsed ¶
type ResourceQuotaPersistentvolumeclaimCountUsed struct {
metric.Int64UpDownCounter
}
ResourceQuotaPersistentvolumeclaimCountUsed is an instrument used to record metric values conforming to the "k8s.resourcequota.persistentvolumeclaim_count.used" semantic conventions. It represents the total number of PersistentVolumeClaims that can exist in the namespace. The value represents the current observed total usage of the resource in the namespace.
func NewResourceQuotaPersistentvolumeclaimCountUsed ¶
func NewResourceQuotaPersistentvolumeclaimCountUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaPersistentvolumeclaimCountUsed, error)
NewResourceQuotaPersistentvolumeclaimCountUsed returns a new ResourceQuotaPersistentvolumeclaimCountUsed instrument.
func (ResourceQuotaPersistentvolumeclaimCountUsed) Add ¶
func (m ResourceQuotaPersistentvolumeclaimCountUsed) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
The `k8s.storageclass.name` should be required when a resource quota is defined for a specific storage class.
func (ResourceQuotaPersistentvolumeclaimCountUsed) AddSet ¶
func (m ResourceQuotaPersistentvolumeclaimCountUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)
AddSet adds incr to the existing count for set.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
The `k8s.storageclass.name` should be required when a resource quota is defined for a specific storage class.
func (ResourceQuotaPersistentvolumeclaimCountUsed) AttrStorageclassName ¶
func (ResourceQuotaPersistentvolumeclaimCountUsed) AttrStorageclassName(val string) attribute.KeyValue
AttrStorageclassName returns an optional attribute for the "k8s.storageclass.name" semantic convention. It represents the name of K8s StorageClass object.
func (ResourceQuotaPersistentvolumeclaimCountUsed) Description ¶
func (ResourceQuotaPersistentvolumeclaimCountUsed) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaPersistentvolumeclaimCountUsed) Inst ¶
func (m ResourceQuotaPersistentvolumeclaimCountUsed) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaPersistentvolumeclaimCountUsed) Name ¶
func (ResourceQuotaPersistentvolumeclaimCountUsed) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaPersistentvolumeclaimCountUsed) Unit ¶
func (ResourceQuotaPersistentvolumeclaimCountUsed) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaStorageRequestHard ¶
type ResourceQuotaStorageRequestHard struct {
metric.Int64UpDownCounter
}
ResourceQuotaStorageRequestHard is an instrument used to record metric values conforming to the "k8s.resourcequota.storage.request.hard" semantic conventions. It represents the storage requests in a specific namespace. The value represents the configured quota limit of the resource in the namespace.
func NewResourceQuotaStorageRequestHard ¶
func NewResourceQuotaStorageRequestHard( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaStorageRequestHard, error)
NewResourceQuotaStorageRequestHard returns a new ResourceQuotaStorageRequestHard instrument.
func (ResourceQuotaStorageRequestHard) Add ¶
func (m ResourceQuotaStorageRequestHard) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
The `k8s.storageclass.name` should be required when a resource quota is defined for a specific storage class.
func (ResourceQuotaStorageRequestHard) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.
The `k8s.storageclass.name` should be required when a resource quota is defined for a specific storage class.
func (ResourceQuotaStorageRequestHard) AttrStorageclassName ¶
func (ResourceQuotaStorageRequestHard) AttrStorageclassName(val string) attribute.KeyValue
AttrStorageclassName returns an optional attribute for the "k8s.storageclass.name" semantic convention. It represents the name of K8s StorageClass object.
func (ResourceQuotaStorageRequestHard) Description ¶
func (ResourceQuotaStorageRequestHard) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaStorageRequestHard) Inst ¶
func (m ResourceQuotaStorageRequestHard) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaStorageRequestHard) Name ¶
func (ResourceQuotaStorageRequestHard) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaStorageRequestHard) Unit ¶
func (ResourceQuotaStorageRequestHard) Unit() string
Unit returns the semantic convention unit of the instrument
type ResourceQuotaStorageRequestUsed ¶
type ResourceQuotaStorageRequestUsed struct {
metric.Int64UpDownCounter
}
ResourceQuotaStorageRequestUsed is an instrument used to record metric values conforming to the "k8s.resourcequota.storage.request.used" semantic conventions. It represents the storage requests in a specific namespace. The value represents the current observed total usage of the resource in the namespace.
func NewResourceQuotaStorageRequestUsed ¶
func NewResourceQuotaStorageRequestUsed( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ResourceQuotaStorageRequestUsed, error)
NewResourceQuotaStorageRequestUsed returns a new ResourceQuotaStorageRequestUsed instrument.
func (ResourceQuotaStorageRequestUsed) Add ¶
func (m ResourceQuotaStorageRequestUsed) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
Add adds incr to the existing count for attrs.
All additional attrs passed are included in the recorded value.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
The `k8s.storageclass.name` should be required when a resource quota is defined for a specific storage class.
func (ResourceQuotaStorageRequestUsed) AddSet ¶
AddSet adds incr to the existing count for set.
This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.
The `k8s.storageclass.name` should be required when a resource quota is defined for a specific storage class.
func (ResourceQuotaStorageRequestUsed) AttrStorageclassName ¶
func (ResourceQuotaStorageRequestUsed) AttrStorageclassName(val string) attribute.KeyValue
AttrStorageclassName returns an optional attribute for the "k8s.storageclass.name" semantic convention. It represents the name of K8s StorageClass object.
func (ResourceQuotaStorageRequestUsed) Description ¶
func (ResourceQuotaStorageRequestUsed) Description() string
Description returns the semantic convention description of the instrument
func (ResourceQuotaStorageRequestUsed) Inst ¶
func (m ResourceQuotaStorageRequestUsed) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ResourceQuotaStorageRequestUsed) Name ¶
func (ResourceQuotaStorageRequestUsed) Name() string
Name returns the semantic convention name of the instrument.
func (ResourceQuotaStorageRequestUsed) Unit ¶
func (ResourceQuotaStorageRequestUsed) Unit() string
Unit returns the semantic convention unit of the instrument
type ServiceEndpointAddressTypeAttr ¶
type ServiceEndpointAddressTypeAttr string
ServiceEndpointAddressTypeAttr is an attribute conforming to the k8s.service.endpoint.address_type semantic conventions. It represents the address type of the service endpoint.
var ( // ServiceEndpointAddressTypeIPv4 is the IPv4 address type. ServiceEndpointAddressTypeIPv4 ServiceEndpointAddressTypeAttr = "IPv4" // ServiceEndpointAddressTypeIPv6 is the IPv6 address type. ServiceEndpointAddressTypeIPv6 ServiceEndpointAddressTypeAttr = "IPv6" // ServiceEndpointAddressTypeFqdn is the FQDN address type. ServiceEndpointAddressTypeFqdn ServiceEndpointAddressTypeAttr = "FQDN" )
type ServiceEndpointConditionAttr ¶
type ServiceEndpointConditionAttr string
ServiceEndpointConditionAttr is an attribute conforming to the k8s.service.endpoint.condition semantic conventions. It represents the condition of the service endpoint.
var ( // ServiceEndpointConditionReady is the endpoint is ready to receive new // connections. ServiceEndpointConditionReady ServiceEndpointConditionAttr = "ready" // ServiceEndpointConditionServing is the endpoint is currently handling // traffic. ServiceEndpointConditionServing ServiceEndpointConditionAttr = "serving" // ServiceEndpointConditionTerminating is the endpoint is in the process of // shutting down. ServiceEndpointConditionTerminating ServiceEndpointConditionAttr = "terminating" )
type ServiceEndpointCount ¶
type ServiceEndpointCount struct {
metric.Int64Gauge
}
ServiceEndpointCount is an instrument used to record metric values conforming to the "k8s.service.endpoint.count" semantic conventions. It represents the number of endpoints for a service by condition and address type.
func NewServiceEndpointCount ¶
func NewServiceEndpointCount( m metric.Meter, opt ...metric.Int64GaugeOption, ) (ServiceEndpointCount, error)
NewServiceEndpointCount returns a new ServiceEndpointCount instrument.
func (ServiceEndpointCount) AttrServiceEndpointZone ¶
func (ServiceEndpointCount) AttrServiceEndpointZone(val string) attribute.KeyValue
AttrServiceEndpointZone returns an optional attribute for the "k8s.service.endpoint.zone" semantic convention. It represents the zone of the service endpoint.
func (ServiceEndpointCount) Description ¶
func (ServiceEndpointCount) Description() string
Description returns the semantic convention description of the instrument
func (ServiceEndpointCount) Inst ¶
func (m ServiceEndpointCount) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
func (ServiceEndpointCount) Name ¶
func (ServiceEndpointCount) Name() string
Name returns the semantic convention name of the instrument.
func (ServiceEndpointCount) Record ¶
func (m ServiceEndpointCount) Record( ctx context.Context, val int64, serviceEndpointAddressType ServiceEndpointAddressTypeAttr, serviceEndpointCondition ServiceEndpointConditionAttr, attrs ...attribute.KeyValue, )
Record records val to the current distribution for attrs.
The serviceEndpointAddressType is the the address type of the service endpoint.
The serviceEndpointCondition is the the condition of the service endpoint.
All additional attrs passed are included in the recorded value.
This metric is derived from the Kubernetes EndpointSlice API. It reports the number of network endpoints backing a Service, broken down by their condition and address type.
In dual-stack or multi-protocol clusters, separate counts are reported for each address family (`IPv4`, `IPv6`, `FQDN`).
When the optional `zone` attribute is enabled, counts are further broken down by availability zone for zone-aware monitoring.
An endpoint may be reported under multiple conditions simultaneously (e.g., both `serving` and `terminating` during a graceful shutdown). See K8s EndpointConditions for more details.
The conditions represent:
- `ready`: Endpoints capable of receiving new connections.
- `serving`: Endpoints currently handling traffic.
- `terminating`: Endpoints that are being phased out but may still be handling existing connections.
For Services with `publishNotReadyAddresses` enabled (common for headless StatefulSets), this metric will include endpoints that are published despite not being ready. The `k8s.service.publish_not_ready_addresses` resource attribute indicates this setting.
func (ServiceEndpointCount) RecordSet ¶
RecordSet records val to the current distribution for set.
This metric is derived from the Kubernetes EndpointSlice API. It reports the number of network endpoints backing a Service, broken down by their condition and address type.
In dual-stack or multi-protocol clusters, separate counts are reported for each address family (`IPv4`, `IPv6`, `FQDN`).
When the optional `zone` attribute is enabled, counts are further broken down by availability zone for zone-aware monitoring.
An endpoint may be reported under multiple conditions simultaneously (e.g., both `serving` and `terminating` during a graceful shutdown). See K8s EndpointConditions for more details.
The conditions represent:
- `ready`: Endpoints capable of receiving new connections.
- `serving`: Endpoints currently handling traffic.
- `terminating`: Endpoints that are being phased out but may still be handling existing connections.
For Services with `publishNotReadyAddresses` enabled (common for headless StatefulSets), this metric will include endpoints that are published despite not being ready. The `k8s.service.publish_not_ready_addresses` resource attribute indicates this setting.
func (ServiceEndpointCount) Unit ¶
func (ServiceEndpointCount) Unit() string
Unit returns the semantic convention unit of the instrument
type ServiceLoadBalancerIngressCount ¶
type ServiceLoadBalancerIngressCount struct {
metric.Int64Gauge
}
ServiceLoadBalancerIngressCount is an instrument used to record metric values conforming to the "k8s.service.load_balancer.ingress.count" semantic conventions. It represents the number of load balancer ingress points (external IPs/hostnames) assigned to the service.
func NewServiceLoadBalancerIngressCount ¶
func NewServiceLoadBalancerIngressCount( m metric.Meter, opt ...metric.Int64GaugeOption, ) (ServiceLoadBalancerIngressCount, error)
NewServiceLoadBalancerIngressCount returns a new ServiceLoadBalancerIngressCount instrument.
func (ServiceLoadBalancerIngressCount) Description ¶
func (ServiceLoadBalancerIngressCount) Description() string
Description returns the semantic convention description of the instrument
func (ServiceLoadBalancerIngressCount) Inst ¶
func (m ServiceLoadBalancerIngressCount) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
func (ServiceLoadBalancerIngressCount) Name ¶
func (ServiceLoadBalancerIngressCount) Name() string
Name returns the semantic convention name of the instrument.
func (ServiceLoadBalancerIngressCount) Record ¶
func (m ServiceLoadBalancerIngressCount) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)
Record records val to the current distribution for attrs.
This metric reports the number of external ingress points (IP addresses or hostnames) assigned to a LoadBalancer Service.
It is only emitted for Services of type `LoadBalancer` and reflects the assignments made by the underlying infrastructure's load balancer controller in the .status.loadBalancer.ingress field.
A value of `0` indicates that no ingress points have been assigned yet (e.g., during provisioning). A value greater than `1` may occur when multiple IPs or hostnames are assigned (e.g., dual-stack configurations).
This metric signals that external endpoints have been assigned by the load balancer controller, but it does not guarantee that the load balancer is healthy.
func (ServiceLoadBalancerIngressCount) RecordSet ¶
func (m ServiceLoadBalancerIngressCount) RecordSet(ctx context.Context, val int64, set attribute.Set)
RecordSet records val to the current distribution for set.
This metric reports the number of external ingress points (IP addresses or hostnames) assigned to a LoadBalancer Service.
It is only emitted for Services of type `LoadBalancer` and reflects the assignments made by the underlying infrastructure's load balancer controller in the .status.loadBalancer.ingress field.
A value of `0` indicates that no ingress points have been assigned yet (e.g., during provisioning). A value greater than `1` may occur when multiple IPs or hostnames are assigned (e.g., dual-stack configurations).
This metric signals that external endpoints have been assigned by the load balancer controller, but it does not guarantee that the load balancer is healthy.
func (ServiceLoadBalancerIngressCount) Unit ¶
func (ServiceLoadBalancerIngressCount) Unit() string
Unit returns the semantic convention unit of the instrument
type StatefulSetPodCurrent ¶
type StatefulSetPodCurrent struct {
metric.Int64UpDownCounter
}
StatefulSetPodCurrent is an instrument used to record metric values conforming to the "k8s.statefulset.pod.current" semantic conventions. It represents the number of replica pods created by the statefulset controller from the statefulset version indicated by currentRevision.
func NewStatefulSetPodCurrent ¶
func NewStatefulSetPodCurrent( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (StatefulSetPodCurrent, error)
NewStatefulSetPodCurrent returns a new StatefulSetPodCurrent instrument.
func (StatefulSetPodCurrent) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `currentReplicas` field of the K8s StatefulSetStatus.
func (StatefulSetPodCurrent) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `currentReplicas` field of the K8s StatefulSetStatus.
func (StatefulSetPodCurrent) Description ¶
func (StatefulSetPodCurrent) Description() string
Description returns the semantic convention description of the instrument
func (StatefulSetPodCurrent) Inst ¶
func (m StatefulSetPodCurrent) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (StatefulSetPodCurrent) Name ¶
func (StatefulSetPodCurrent) Name() string
Name returns the semantic convention name of the instrument.
func (StatefulSetPodCurrent) Unit ¶
func (StatefulSetPodCurrent) Unit() string
Unit returns the semantic convention unit of the instrument
type StatefulSetPodDesired ¶
type StatefulSetPodDesired struct {
metric.Int64UpDownCounter
}
StatefulSetPodDesired is an instrument used to record metric values conforming to the "k8s.statefulset.pod.desired" semantic conventions. It represents the number of desired replica pods in this statefulset.
func NewStatefulSetPodDesired ¶
func NewStatefulSetPodDesired( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (StatefulSetPodDesired, error)
NewStatefulSetPodDesired returns a new StatefulSetPodDesired instrument.
func (StatefulSetPodDesired) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `replicas` field of the K8s StatefulSetSpec.
func (StatefulSetPodDesired) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `replicas` field of the K8s StatefulSetSpec.
func (StatefulSetPodDesired) Description ¶
func (StatefulSetPodDesired) Description() string
Description returns the semantic convention description of the instrument
func (StatefulSetPodDesired) Inst ¶
func (m StatefulSetPodDesired) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (StatefulSetPodDesired) Name ¶
func (StatefulSetPodDesired) Name() string
Name returns the semantic convention name of the instrument.
func (StatefulSetPodDesired) Unit ¶
func (StatefulSetPodDesired) Unit() string
Unit returns the semantic convention unit of the instrument
type StatefulSetPodReady ¶
type StatefulSetPodReady struct {
metric.Int64UpDownCounter
}
StatefulSetPodReady is an instrument used to record metric values conforming to the "k8s.statefulset.pod.ready" semantic conventions. It represents the number of replica pods created for this statefulset with a Ready Condition.
func NewStatefulSetPodReady ¶
func NewStatefulSetPodReady( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (StatefulSetPodReady, error)
NewStatefulSetPodReady returns a new StatefulSetPodReady instrument.
func (StatefulSetPodReady) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `readyReplicas` field of the K8s StatefulSetStatus.
func (StatefulSetPodReady) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `readyReplicas` field of the K8s StatefulSetStatus.
func (StatefulSetPodReady) Description ¶
func (StatefulSetPodReady) Description() string
Description returns the semantic convention description of the instrument
func (StatefulSetPodReady) Inst ¶
func (m StatefulSetPodReady) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (StatefulSetPodReady) Name ¶
func (StatefulSetPodReady) Name() string
Name returns the semantic convention name of the instrument.
func (StatefulSetPodReady) Unit ¶
func (StatefulSetPodReady) Unit() string
Unit returns the semantic convention unit of the instrument
type StatefulSetPodUpdated ¶
type StatefulSetPodUpdated struct {
metric.Int64UpDownCounter
}
StatefulSetPodUpdated is an instrument used to record metric values conforming to the "k8s.statefulset.pod.updated" semantic conventions. It represents the number of replica pods created by the statefulset controller from the statefulset version indicated by updateRevision.
func NewStatefulSetPodUpdated ¶
func NewStatefulSetPodUpdated( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (StatefulSetPodUpdated, error)
NewStatefulSetPodUpdated returns a new StatefulSetPodUpdated instrument.
func (StatefulSetPodUpdated) Add ¶
Add adds incr to the existing count for attrs.
This metric aligns with the `updatedReplicas` field of the K8s StatefulSetStatus.
func (StatefulSetPodUpdated) AddSet ¶
AddSet adds incr to the existing count for set.
This metric aligns with the `updatedReplicas` field of the K8s StatefulSetStatus.
func (StatefulSetPodUpdated) Description ¶
func (StatefulSetPodUpdated) Description() string
Description returns the semantic convention description of the instrument
func (StatefulSetPodUpdated) Inst ¶
func (m StatefulSetPodUpdated) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (StatefulSetPodUpdated) Name ¶
func (StatefulSetPodUpdated) Name() string
Name returns the semantic convention name of the instrument.
func (StatefulSetPodUpdated) Unit ¶
func (StatefulSetPodUpdated) Unit() string
Unit returns the semantic convention unit of the instrument
type SystemPagingFaultTypeAttr ¶
type SystemPagingFaultTypeAttr string
SystemPagingFaultTypeAttr is an attribute conforming to the system.paging.fault.type semantic conventions. It represents the paging fault type.
var ( // SystemPagingFaultTypeMajor is the standardized value "major" of // SystemPagingFaultTypeAttr. SystemPagingFaultTypeMajor SystemPagingFaultTypeAttr = "major" // SystemPagingFaultTypeMinor is the standardized value "minor" of // SystemPagingFaultTypeAttr. SystemPagingFaultTypeMinor SystemPagingFaultTypeAttr = "minor" )
type VolumeTypeAttr ¶
type VolumeTypeAttr string
VolumeTypeAttr is an attribute conforming to the k8s.volume.type semantic conventions. It represents the type of the K8s volume.
var ( // VolumeTypePersistentVolumeClaim is a [persistentVolumeClaim] volume. // // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim VolumeTypePersistentVolumeClaim VolumeTypeAttr = "persistentVolumeClaim" // VolumeTypeConfigMap is a [configMap] volume. // // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap VolumeTypeConfigMap VolumeTypeAttr = "configMap" // VolumeTypeDownwardAPI is a [downwardAPI] volume. // // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi VolumeTypeDownwardAPI VolumeTypeAttr = "downwardAPI" // VolumeTypeEmptyDir is an [emptyDir] volume. // // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir VolumeTypeEmptyDir VolumeTypeAttr = "emptyDir" // VolumeTypeSecret is a [secret] volume. // // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret VolumeTypeSecret VolumeTypeAttr = "secret" // VolumeTypeLocal is a [local] volume. // // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local VolumeTypeLocal VolumeTypeAttr = "local" )
Source Files ¶
metric.go
- Version
- v1.43.0 (latest)
- Published
- Apr 3, 2026
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 hour ago –
Tools for package owners.