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

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

func (m ContainerCPULimit) 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 (ContainerCPULimit) AddSet

func (m ContainerCPULimit) 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 (ContainerCPULimit) Description

func (ContainerCPULimit) Description() string

Description returns the semantic convention description of the instrument

func (ContainerCPULimit) Inst

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

Inst returns the underlying metric instrument.

func (ContainerCPULimitUtilization) Name

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

func (m ContainerCPULimitUtilization) RecordSet(ctx context.Context, val int64, set attribute.Set)

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

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

func (m ContainerCPURequest) 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 (ContainerCPURequest) AddSet

func (m ContainerCPURequest) 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 (ContainerCPURequest) Description

func (ContainerCPURequest) Description() string

Description returns the semantic convention description of the instrument

func (ContainerCPURequest) Inst

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

Inst returns the underlying metric instrument.

func (ContainerCPURequestUtilization) Name

Name returns the semantic convention name of the instrument.

func (ContainerCPURequestUtilization) Record

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

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

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

Inst returns the underlying metric instrument.

func (ContainerEphemeralStorageLimit) Name

Name returns the semantic convention name of the instrument.

func (ContainerEphemeralStorageLimit) Unit

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

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

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

Description returns the semantic convention description of the instrument

func (ContainerEphemeralStorageRequest) Inst

Inst returns the underlying metric instrument.

func (ContainerEphemeralStorageRequest) Name

Name returns the semantic convention name of the instrument.

func (ContainerEphemeralStorageRequest) Unit

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

func (m ContainerMemoryLimit) 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 (ContainerMemoryLimit) AddSet

func (m ContainerMemoryLimit) 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 (ContainerMemoryLimit) Description

func (ContainerMemoryLimit) Description() string

Description returns the semantic convention description of the instrument

func (ContainerMemoryLimit) Inst

Inst returns the underlying metric instrument.

func (ContainerMemoryLimit) Name

Name returns the semantic convention name of the instrument.

func (ContainerMemoryLimit) Unit

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

func (m ContainerMemoryRequest) 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 (ContainerMemoryRequest) AddSet

func (m ContainerMemoryRequest) 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 (ContainerMemoryRequest) Description

func (ContainerMemoryRequest) Description() string

Description returns the semantic convention description of the instrument

func (ContainerMemoryRequest) Inst

Inst returns the underlying metric instrument.

func (ContainerMemoryRequest) Name

Name returns the semantic convention name of the instrument.

func (ContainerMemoryRequest) Unit

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

func (m ContainerReady) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

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

func (m ContainerReady) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m ContainerRestartCount) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

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

func (m ContainerRestartCount) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (ContainerRestartCount) Name

Name returns the semantic convention name of the instrument.

func (ContainerRestartCount) Unit

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

func (m ContainerStatusReason) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (ContainerStatusReason) Name

Name returns the semantic convention name of the instrument.

func (ContainerStatusReason) Unit

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

func (m ContainerStatusState) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (ContainerStatusState) Name

Name returns the semantic convention name of the instrument.

func (ContainerStatusState) Unit

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

func (m ContainerStorageLimit) 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 (ContainerStorageLimit) AddSet

func (m ContainerStorageLimit) 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 (ContainerStorageLimit) Description

func (ContainerStorageLimit) Description() string

Description returns the semantic convention description of the instrument

func (ContainerStorageLimit) Inst

Inst returns the underlying metric instrument.

func (ContainerStorageLimit) Name

Name returns the semantic convention name of the instrument.

func (ContainerStorageLimit) Unit

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

func (m ContainerStorageRequest) 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 (ContainerStorageRequest) AddSet

func (m ContainerStorageRequest) 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 (ContainerStorageRequest) Description

func (ContainerStorageRequest) Description() string

Description returns the semantic convention description of the instrument

func (ContainerStorageRequest) Inst

Inst returns the underlying metric instrument.

func (ContainerStorageRequest) Name

Name returns the semantic convention name of the instrument.

func (ContainerStorageRequest) Unit

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

func (m CronJobJobActive) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

This metric aligns with the `active` field of the K8s CronJobStatus.

func (CronJobJobActive) AddSet

func (m CronJobJobActive) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

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

Inst returns the underlying metric instrument.

func (DaemonSetNodeCurrentScheduled) Name

Name returns the semantic convention name of the instrument.

func (DaemonSetNodeCurrentScheduled) Unit

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

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

Inst returns the underlying metric instrument.

func (DaemonSetNodeDesiredScheduled) Name

Name returns the semantic convention name of the instrument.

func (DaemonSetNodeDesiredScheduled) Unit

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

func (m DaemonSetNodeMisscheduled) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (DaemonSetNodeMisscheduled) Name

Name returns the semantic convention name of the instrument.

func (DaemonSetNodeMisscheduled) Unit

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

func (m DaemonSetNodeReady) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

This metric aligns with the `numberReady` field of the K8s DaemonSetStatus.

func (DaemonSetNodeReady) AddSet

func (m DaemonSetNodeReady) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m DeploymentPodAvailable) 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 DeploymentStatus.

func (DeploymentPodAvailable) AddSet

func (m DeploymentPodAvailable) 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 DeploymentStatus.

func (DeploymentPodAvailable) Description

func (DeploymentPodAvailable) Description() string

Description returns the semantic convention description of the instrument

func (DeploymentPodAvailable) Inst

Inst returns the underlying metric instrument.

func (DeploymentPodAvailable) Name

Name returns the semantic convention name of the instrument.

func (DeploymentPodAvailable) Unit

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

func (m DeploymentPodDesired) 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 DeploymentSpec.

func (DeploymentPodDesired) AddSet

func (m DeploymentPodDesired) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (DeploymentPodDesired) Name

Name returns the semantic convention name of the instrument.

func (DeploymentPodDesired) Unit

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

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

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

Description returns the semantic convention description of the instrument

func (HPAMetricTargetCPUAverageUtilization) Inst

Inst returns the underlying metric instrument.

func (HPAMetricTargetCPUAverageUtilization) Name

Name returns the semantic convention name of the instrument.

func (HPAMetricTargetCPUAverageUtilization) Record

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

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

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

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

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

Inst returns the underlying metric instrument.

func (HPAMetricTargetCPUAverageValue) Name

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

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

Inst returns the underlying metric instrument.

func (HPAMetricTargetCPUValue) Name

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

func (m HPAMetricTargetCPUValue) RecordSet(ctx context.Context, val int64, set attribute.Set)

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

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

func (m HPAPodCurrent) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

This metric aligns with the `currentReplicas` field of the K8s HorizontalPodAutoscalerStatus

func (HPAPodCurrent) AddSet

func (m HPAPodCurrent) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m HPAPodDesired) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

This metric aligns with the `desiredReplicas` field of the K8s HorizontalPodAutoscalerStatus

func (HPAPodDesired) AddSet

func (m HPAPodDesired) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func NewHPAPodMax(
	m metric.Meter,
	opt ...metric.Int64UpDownCounterOption,
) (HPAPodMax, error)

NewHPAPodMax returns a new HPAPodMax instrument.

func (HPAPodMax) Add

func (m HPAPodMax) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

This metric aligns with the `maxReplicas` field of the K8s HorizontalPodAutoscalerSpec

func (HPAPodMax) AddSet

func (m HPAPodMax) AddSet(ctx context.Context, incr int64, set attribute.Set)

AddSet adds incr to the existing count for set.

This metric aligns with the `maxReplicas` field of the K8s HorizontalPodAutoscalerSpec

func (HPAPodMax) Description

func (HPAPodMax) Description() string

Description returns the semantic convention description of the instrument

func (HPAPodMax) Inst

Inst returns the underlying metric instrument.

func (HPAPodMax) Name

func (HPAPodMax) Name() string

Name returns the semantic convention name of the instrument.

func (HPAPodMax) Unit

func (HPAPodMax) Unit() string

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

func NewHPAPodMin(
	m metric.Meter,
	opt ...metric.Int64UpDownCounterOption,
) (HPAPodMin, error)

NewHPAPodMin returns a new HPAPodMin instrument.

func (HPAPodMin) Add

func (m HPAPodMin) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

This metric aligns with the `minReplicas` field of the K8s HorizontalPodAutoscalerSpec

func (HPAPodMin) AddSet

func (m HPAPodMin) AddSet(ctx context.Context, incr int64, set attribute.Set)

AddSet adds incr to the existing count for set.

This metric aligns with the `minReplicas` field of the K8s HorizontalPodAutoscalerSpec

func (HPAPodMin) Description

func (HPAPodMin) Description() string

Description returns the semantic convention description of the instrument

func (HPAPodMin) Inst

Inst returns the underlying metric instrument.

func (HPAPodMin) Name

func (HPAPodMin) Name() string

Name returns the semantic convention name of the instrument.

func (HPAPodMin) Unit

func (HPAPodMin) Unit() string

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

func (m JobPodActive) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

This metric aligns with the `active` field of the K8s JobStatus.

func (JobPodActive) AddSet

func (m JobPodActive) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m JobPodDesiredSuccessful) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

This metric aligns with the `completions` field of the K8s JobSpec..

func (JobPodDesiredSuccessful) AddSet

func (m JobPodDesiredSuccessful) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (JobPodDesiredSuccessful) Name

Name returns the semantic convention name of the instrument.

func (JobPodDesiredSuccessful) Unit

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

func (m JobPodFailed) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

This metric aligns with the `failed` field of the K8s JobStatus.

func (JobPodFailed) AddSet

func (m JobPodFailed) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m JobPodMaxParallel) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

This metric aligns with the `parallelism` field of the K8s JobSpec.

func (JobPodMaxParallel) AddSet

func (m JobPodMaxParallel) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m JobPodSuccessful) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

This metric aligns with the `succeeded` field of the K8s JobStatus.

func (JobPodSuccessful) AddSet

func (m JobPodSuccessful) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m NamespacePhase) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m NodeCPUAllocatable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

func (NodeCPUAllocatable) AddSet

func (m NodeCPUAllocatable) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m NodeCPUTime) Add(ctx context.Context, incr float64, attrs ...attribute.KeyValue)

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

func (m NodeCPUTime) AddSet(ctx context.Context, incr float64, set attribute.Set)

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

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

func (m NodeCPUUsage) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)

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

func (m NodeCPUUsage) RecordSet(ctx context.Context, val int64, set attribute.Set)

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

func (m NodeConditionStatus) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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.
	NodeConditionTypeNetworkUnavailable 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

Add adds incr to the existing count for attrs.

func (NodeEphemeralStorageAllocatable) AddSet

AddSet adds incr to the existing count for set.

func (NodeEphemeralStorageAllocatable) Description

Description returns the semantic convention description of the instrument

func (NodeEphemeralStorageAllocatable) Inst

Inst returns the underlying metric instrument.

func (NodeEphemeralStorageAllocatable) Name

Name returns the semantic convention name of the instrument.

func (NodeEphemeralStorageAllocatable) Unit

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

func (m NodeFilesystemAvailable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

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

func (m NodeFilesystemAvailable) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (NodeFilesystemAvailable) Name

Name returns the semantic convention name of the instrument.

func (NodeFilesystemAvailable) Unit

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

func (m NodeFilesystemCapacity) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

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

func (m NodeFilesystemCapacity) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (NodeFilesystemCapacity) Name

Name returns the semantic convention name of the instrument.

func (NodeFilesystemCapacity) Unit

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

func (m NodeFilesystemUsage) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

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

func (m NodeFilesystemUsage) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m NodeMemoryAllocatable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

func (NodeMemoryAllocatable) AddSet

func (m NodeMemoryAllocatable) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (NodeMemoryAllocatable) Name

Name returns the semantic convention name of the instrument.

func (NodeMemoryAllocatable) Unit

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

func (m NodeMemoryAvailable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

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

func (m NodeMemoryAvailable) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m NodeMemoryPagingFaults) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (NodeMemoryPagingFaults) Name

Name returns the semantic convention name of the instrument.

func (NodeMemoryPagingFaults) Unit

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

func (m NodeMemoryRss) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

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

func (m NodeMemoryRss) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

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

func (m NodeMemoryUsage) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)

Record records val to the current distribution for attrs.

Total memory usage of the Node

func (NodeMemoryUsage) RecordSet

func (m NodeMemoryUsage) RecordSet(ctx context.Context, val int64, set attribute.Set)

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

func (m NodeMemoryWorkingSet) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

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

func (m NodeMemoryWorkingSet) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (NodeMemoryWorkingSet) Name

Name returns the semantic convention name of the instrument.

func (NodeMemoryWorkingSet) Unit

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

func (m NodeNetworkErrors) 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.

func (NodeNetworkErrors) AddSet

func (m NodeNetworkErrors) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m NodeNetworkIO) 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.

func (NodeNetworkIO) AddSet

func (m NodeNetworkIO) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m NodePodAllocatable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

func (NodePodAllocatable) AddSet

func (m NodePodAllocatable) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m NodeUptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyValue)

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

func (m NodeUptime) RecordSet(ctx context.Context, val float64, set attribute.Set)

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

func (m PodCPUTime) Add(ctx context.Context, incr float64, attrs ...attribute.KeyValue)

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

func (m PodCPUTime) AddSet(ctx context.Context, incr float64, set attribute.Set)

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

func (m PodCPUUsage) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)

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

func (m PodCPUUsage) RecordSet(ctx context.Context, val int64, set attribute.Set)

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

func (m PodFilesystemAvailable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

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

func (m PodFilesystemAvailable) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (PodFilesystemAvailable) Name

Name returns the semantic convention name of the instrument.

func (PodFilesystemAvailable) Unit

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

func (m PodFilesystemCapacity) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

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

func (m PodFilesystemCapacity) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (PodFilesystemCapacity) Name

Name returns the semantic convention name of the instrument.

func (PodFilesystemCapacity) Unit

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

func (m PodFilesystemUsage) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

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

func (m PodFilesystemUsage) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m PodMemoryAvailable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

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

func (m PodMemoryAvailable) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m PodMemoryPagingFaults) 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 field of the PodStats.Memory of the Kubelet's stats API.

func (PodMemoryPagingFaults) AddSet

func (m PodMemoryPagingFaults) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (PodMemoryPagingFaults) Name

Name returns the semantic convention name of the instrument.

func (PodMemoryPagingFaults) Unit

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

func (m PodMemoryRss) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

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

func (m PodMemoryRss) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m PodMemoryUsage) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)

Record records val to the current distribution for attrs.

Total memory usage of the Pod

func (PodMemoryUsage) RecordSet

func (m PodMemoryUsage) RecordSet(ctx context.Context, val int64, set attribute.Set)

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

func (m PodMemoryWorkingSet) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

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

func (m PodMemoryWorkingSet) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m PodNetworkErrors) 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.

func (PodNetworkErrors) AddSet

func (m PodNetworkErrors) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m PodNetworkIO) 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.

func (PodNetworkIO) AddSet

func (m PodNetworkIO) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

func (m PodStatusPhase) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m PodStatusReason) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func NewPodUptime(
	m metric.Meter,
	opt ...metric.Float64GaugeOption,
) (PodUptime, error)

NewPodUptime returns a new PodUptime instrument.

func (PodUptime) Description

func (PodUptime) Description() string

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

func (PodUptime) Name() string

Name returns the semantic convention name of the instrument.

func (PodUptime) Record

func (m PodUptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyValue)

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

func (m PodUptime) RecordSet(ctx context.Context, val float64, set attribute.Set)

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

func (PodUptime) Unit() string

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

func (m PodVolumeAvailable) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

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

func (m PodVolumeCapacity) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m PodVolumeInodeCount) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

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

func (m PodVolumeInodeFree) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

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

func (m PodVolumeInodeUsed) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

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

func (m PodVolumeUsage) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m ReplicaSetPodAvailable) 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 ReplicaSetStatus.

func (ReplicaSetPodAvailable) AddSet

func (m ReplicaSetPodAvailable) 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 ReplicaSetStatus.

func (ReplicaSetPodAvailable) Description

func (ReplicaSetPodAvailable) Description() string

Description returns the semantic convention description of the instrument

func (ReplicaSetPodAvailable) Inst

Inst returns the underlying metric instrument.

func (ReplicaSetPodAvailable) Name

Name returns the semantic convention name of the instrument.

func (ReplicaSetPodAvailable) Unit

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

func (m ReplicaSetPodDesired) 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 ReplicaSetSpec.

func (ReplicaSetPodDesired) AddSet

func (m ReplicaSetPodDesired) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (ReplicaSetPodDesired) Name

Name returns the semantic convention name of the instrument.

func (ReplicaSetPodDesired) Unit

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

Add adds incr to the existing count for attrs.

This metric aligns with the `availableReplicas` field of the K8s ReplicationControllerStatus

func (ReplicationControllerPodAvailable) AddSet

AddSet adds incr to the existing count for set.

This metric aligns with the `availableReplicas` field of the K8s ReplicationControllerStatus

func (ReplicationControllerPodAvailable) Description

Description returns the semantic convention description of the instrument

func (ReplicationControllerPodAvailable) Inst

Inst returns the underlying metric instrument.

func (ReplicationControllerPodAvailable) Name

Name returns the semantic convention name of the instrument.

func (ReplicationControllerPodAvailable) Unit

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

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

Description returns the semantic convention description of the instrument

func (ReplicationControllerPodDesired) Inst

Inst returns the underlying metric instrument.

func (ReplicationControllerPodDesired) Name

Name returns the semantic convention name of the instrument.

func (ReplicationControllerPodDesired) Unit

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

func (m ResourceQuotaCPULimitHard) 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 (ResourceQuotaCPULimitHard) Description

func (ResourceQuotaCPULimitHard) Description() string

Description returns the semantic convention description of the instrument

func (ResourceQuotaCPULimitHard) Inst

Inst returns the underlying metric instrument.

func (ResourceQuotaCPULimitHard) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaCPULimitHard) Unit

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

func (m ResourceQuotaCPULimitUsed) 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 (ResourceQuotaCPULimitUsed) Description

func (ResourceQuotaCPULimitUsed) Description() string

Description returns the semantic convention description of the instrument

func (ResourceQuotaCPULimitUsed) Inst

Inst returns the underlying metric instrument.

func (ResourceQuotaCPULimitUsed) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaCPULimitUsed) Unit

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

Add adds incr to the existing count for attrs.

This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.

func (ResourceQuotaCPURequestHard) AddSet

func (m ResourceQuotaCPURequestHard) 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 (ResourceQuotaCPURequestHard) Description

func (ResourceQuotaCPURequestHard) Description() string

Description returns the semantic convention description of the instrument

func (ResourceQuotaCPURequestHard) Inst

Inst returns the underlying metric instrument.

func (ResourceQuotaCPURequestHard) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaCPURequestHard) Unit

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

Add adds incr to the existing count for attrs.

This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.

func (ResourceQuotaCPURequestUsed) AddSet

func (m ResourceQuotaCPURequestUsed) 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 (ResourceQuotaCPURequestUsed) Description

func (ResourceQuotaCPURequestUsed) Description() string

Description returns the semantic convention description of the instrument

func (ResourceQuotaCPURequestUsed) Inst

Inst returns the underlying metric instrument.

func (ResourceQuotaCPURequestUsed) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaCPURequestUsed) Unit

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

Add adds incr to the existing count for attrs.

This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.

func (ResourceQuotaEphemeralStorageLimitHard) AddSet

AddSet adds incr to the existing count for set.

This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.

func (ResourceQuotaEphemeralStorageLimitHard) Description

Description returns the semantic convention description of the instrument

func (ResourceQuotaEphemeralStorageLimitHard) Inst

Inst returns the underlying metric instrument.

func (ResourceQuotaEphemeralStorageLimitHard) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaEphemeralStorageLimitHard) Unit

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

Add adds incr to the existing count for attrs.

This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.

func (ResourceQuotaEphemeralStorageLimitUsed) AddSet

AddSet adds incr to the existing count for set.

This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.

func (ResourceQuotaEphemeralStorageLimitUsed) Description

Description returns the semantic convention description of the instrument

func (ResourceQuotaEphemeralStorageLimitUsed) Inst

Inst returns the underlying metric instrument.

func (ResourceQuotaEphemeralStorageLimitUsed) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaEphemeralStorageLimitUsed) Unit

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

Add adds incr to the existing count for attrs.

This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.

func (ResourceQuotaEphemeralStorageRequestHard) AddSet

AddSet adds incr to the existing count for set.

This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.

func (ResourceQuotaEphemeralStorageRequestHard) Description

Description returns the semantic convention description of the instrument

func (ResourceQuotaEphemeralStorageRequestHard) Inst

Inst returns the underlying metric instrument.

func (ResourceQuotaEphemeralStorageRequestHard) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaEphemeralStorageRequestHard) Unit

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

Add adds incr to the existing count for attrs.

This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.

func (ResourceQuotaEphemeralStorageRequestUsed) AddSet

AddSet adds incr to the existing count for set.

This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.

func (ResourceQuotaEphemeralStorageRequestUsed) Description

Description returns the semantic convention description of the instrument

func (ResourceQuotaEphemeralStorageRequestUsed) Inst

Inst returns the underlying metric instrument.

func (ResourceQuotaEphemeralStorageRequestUsed) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaEphemeralStorageRequestUsed) Unit

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

AddSet adds incr to the existing count for set.

This metric is retrieved from the `hard` field of the K8s ResourceQuotaStatus.

func (ResourceQuotaHugepageCountRequestHard) Description

Description returns the semantic convention description of the instrument

func (ResourceQuotaHugepageCountRequestHard) Inst

Inst returns the underlying metric instrument.

func (ResourceQuotaHugepageCountRequestHard) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaHugepageCountRequestHard) Unit

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

AddSet adds incr to the existing count for set.

This metric is retrieved from the `used` field of the K8s ResourceQuotaStatus.

func (ResourceQuotaHugepageCountRequestUsed) Description

Description returns the semantic convention description of the instrument

func (ResourceQuotaHugepageCountRequestUsed) Inst

Inst returns the underlying metric instrument.

func (ResourceQuotaHugepageCountRequestUsed) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaHugepageCountRequestUsed) Unit

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

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

Inst returns the underlying metric instrument.

func (ResourceQuotaMemoryLimitHard) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaMemoryLimitHard) Unit

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

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

Inst returns the underlying metric instrument.

func (ResourceQuotaMemoryLimitUsed) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaMemoryLimitUsed) Unit

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

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

Inst returns the underlying metric instrument.

func (ResourceQuotaMemoryRequestHard) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaMemoryRequestHard) Unit

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

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

Inst returns the underlying metric instrument.

func (ResourceQuotaMemoryRequestUsed) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaMemoryRequestUsed) Unit

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

Inst returns the underlying metric instrument.

func (ResourceQuotaObjectCountHard) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaObjectCountHard) Unit

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

Inst returns the underlying metric instrument.

func (ResourceQuotaObjectCountUsed) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaObjectCountUsed) Unit

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

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

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

AttrStorageclassName returns an optional attribute for the "k8s.storageclass.name" semantic convention. It represents the name of K8s StorageClass object.

func (ResourceQuotaPersistentvolumeclaimCountHard) Description

Description returns the semantic convention description of the instrument

func (ResourceQuotaPersistentvolumeclaimCountHard) Inst

Inst returns the underlying metric instrument.

func (ResourceQuotaPersistentvolumeclaimCountHard) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaPersistentvolumeclaimCountHard) Unit

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

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

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

AttrStorageclassName returns an optional attribute for the "k8s.storageclass.name" semantic convention. It represents the name of K8s StorageClass object.

func (ResourceQuotaPersistentvolumeclaimCountUsed) Description

Description returns the semantic convention description of the instrument

func (ResourceQuotaPersistentvolumeclaimCountUsed) Inst

Inst returns the underlying metric instrument.

func (ResourceQuotaPersistentvolumeclaimCountUsed) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaPersistentvolumeclaimCountUsed) Unit

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

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

Description returns the semantic convention description of the instrument

func (ResourceQuotaStorageRequestHard) Inst

Inst returns the underlying metric instrument.

func (ResourceQuotaStorageRequestHard) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaStorageRequestHard) Unit

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

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

Description returns the semantic convention description of the instrument

func (ResourceQuotaStorageRequestUsed) Inst

Inst returns the underlying metric instrument.

func (ResourceQuotaStorageRequestUsed) Name

Name returns the semantic convention name of the instrument.

func (ResourceQuotaStorageRequestUsed) Unit

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

Inst returns the underlying metric instrument.

func (ServiceEndpointCount) Name

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:

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

func (m ServiceEndpointCount) RecordSet(ctx context.Context, val int64, set attribute.Set)

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:

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

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

Description returns the semantic convention description of the instrument

func (ServiceLoadBalancerIngressCount) Inst

Inst returns the underlying metric instrument.

func (ServiceLoadBalancerIngressCount) Name

Name returns the semantic convention name of the instrument.

func (ServiceLoadBalancerIngressCount) Record

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

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

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

func (m StatefulSetPodCurrent) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

This metric aligns with the `currentReplicas` field of the K8s StatefulSetStatus.

func (StatefulSetPodCurrent) AddSet

func (m StatefulSetPodCurrent) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (StatefulSetPodCurrent) Name

Name returns the semantic convention name of the instrument.

func (StatefulSetPodCurrent) Unit

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

func (m StatefulSetPodDesired) 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 StatefulSetSpec.

func (StatefulSetPodDesired) AddSet

func (m StatefulSetPodDesired) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (StatefulSetPodDesired) Name

Name returns the semantic convention name of the instrument.

func (StatefulSetPodDesired) Unit

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

func (m StatefulSetPodReady) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

This metric aligns with the `readyReplicas` field of the K8s StatefulSetStatus.

func (StatefulSetPodReady) AddSet

func (m StatefulSetPodReady) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

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

func (m StatefulSetPodUpdated) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)

Add adds incr to the existing count for attrs.

This metric aligns with the `updatedReplicas` field of the K8s StatefulSetStatus.

func (StatefulSetPodUpdated) AddSet

func (m StatefulSetPodUpdated) AddSet(ctx context.Context, incr int64, set attribute.Set)

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

Inst returns the underlying metric instrument.

func (StatefulSetPodUpdated) Name

Name returns the semantic convention name of the instrument.

func (StatefulSetPodUpdated) Unit

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.