k8sconv
v1.47.0
Documentation
pkg.go.dev ↗Package k8sconv provides types and functionality for OpenTelemetry semantic conventions in the "k8s" namespace.
Types
CronJobActiveJobs
type CronJobActiveJobs struct {
metric.Int64UpDownCounter
}
CronJobActiveJobs is an instrument used to record metric values conforming to the "k8s.cronjob.active_jobs" semantic conventions. It represents the number of actively running jobs for a cronjob.
NewCronJobActiveJobs
func NewCronJobActiveJobs( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (CronJobActiveJobs, error)
NewCronJobActiveJobs returns a new CronJobActiveJobs instrument.
CronJobActiveJobs.Add
func (m CronJobActiveJobs) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `active` field of the [K8s CronJobStatus].
This metric SHOULD, at a minimum, be reported against a [`k8s.cronjob`] resource.
[K8s CronJobStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#cronjobstatus-v1-batch [`k8s.cronjob`]: ../resource/k8s.md#cronjob
CronJobActiveJobs.Description
func (CronJobActiveJobs) Description() string
Description returns the semantic convention description of the instrument
CronJobActiveJobs.Inst
func (m CronJobActiveJobs) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
CronJobActiveJobs.Name
func (CronJobActiveJobs) Name() string
Name returns the semantic convention name of the instrument.
CronJobActiveJobs.Unit
func (CronJobActiveJobs) Unit() string
Unit returns the semantic convention unit of the instrument
DaemonSetCurrentScheduledNodes
type DaemonSetCurrentScheduledNodes struct {
metric.Int64UpDownCounter
}
DaemonSetCurrentScheduledNodes is an instrument used to record metric values conforming to the "k8s.daemonset.current_scheduled_nodes" semantic conventions. It represents the number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod.
NewDaemonSetCurrentScheduledNodes
func NewDaemonSetCurrentScheduledNodes( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DaemonSetCurrentScheduledNodes, error)
NewDaemonSetCurrentScheduledNodes returns a new DaemonSetCurrentScheduledNodes instrument.
DaemonSetCurrentScheduledNodes.Add
func (m DaemonSetCurrentScheduledNodes) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `currentNumberScheduled` field of the [K8s DaemonSetStatus].
This metric SHOULD, at a minimum, be reported against a [`k8s.daemonset`] resource.
[K8s DaemonSetStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#daemonsetstatus-v1-apps [`k8s.daemonset`]: ../resource/k8s.md#daemonset
DaemonSetCurrentScheduledNodes.Description
func (DaemonSetCurrentScheduledNodes) Description() string
Description returns the semantic convention description of the instrument
DaemonSetCurrentScheduledNodes.Inst
func (m DaemonSetCurrentScheduledNodes) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
DaemonSetCurrentScheduledNodes.Name
func (DaemonSetCurrentScheduledNodes) Name() string
Name returns the semantic convention name of the instrument.
DaemonSetCurrentScheduledNodes.Unit
func (DaemonSetCurrentScheduledNodes) Unit() string
Unit returns the semantic convention unit of the instrument
DaemonSetDesiredScheduledNodes
type DaemonSetDesiredScheduledNodes struct {
metric.Int64UpDownCounter
}
DaemonSetDesiredScheduledNodes is an instrument used to record metric values conforming to the "k8s.daemonset.desired_scheduled_nodes" semantic conventions. It represents the number of nodes that should be running the daemon pod (including nodes currently running the daemon pod).
NewDaemonSetDesiredScheduledNodes
func NewDaemonSetDesiredScheduledNodes( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DaemonSetDesiredScheduledNodes, error)
NewDaemonSetDesiredScheduledNodes returns a new DaemonSetDesiredScheduledNodes instrument.
DaemonSetDesiredScheduledNodes.Add
func (m DaemonSetDesiredScheduledNodes) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `desiredNumberScheduled` field of the [K8s DaemonSetStatus].
This metric SHOULD, at a minimum, be reported against a [`k8s.daemonset`] resource.
[K8s DaemonSetStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#daemonsetstatus-v1-apps [`k8s.daemonset`]: ../resource/k8s.md#daemonset
DaemonSetDesiredScheduledNodes.Description
func (DaemonSetDesiredScheduledNodes) Description() string
Description returns the semantic convention description of the instrument
DaemonSetDesiredScheduledNodes.Inst
func (m DaemonSetDesiredScheduledNodes) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
DaemonSetDesiredScheduledNodes.Name
func (DaemonSetDesiredScheduledNodes) Name() string
Name returns the semantic convention name of the instrument.
DaemonSetDesiredScheduledNodes.Unit
func (DaemonSetDesiredScheduledNodes) Unit() string
Unit returns the semantic convention unit of the instrument
DaemonSetMisscheduledNodes
type DaemonSetMisscheduledNodes struct {
metric.Int64UpDownCounter
}
DaemonSetMisscheduledNodes is an instrument used to record metric values conforming to the "k8s.daemonset.misscheduled_nodes" semantic conventions. It represents the number of nodes that are running the daemon pod, but are not supposed to run the daemon pod.
NewDaemonSetMisscheduledNodes
func NewDaemonSetMisscheduledNodes( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DaemonSetMisscheduledNodes, error)
NewDaemonSetMisscheduledNodes returns a new DaemonSetMisscheduledNodes instrument.
DaemonSetMisscheduledNodes.Add
func (m DaemonSetMisscheduledNodes) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `numberMisscheduled` field of the [K8s DaemonSetStatus].
This metric SHOULD, at a minimum, be reported against a [`k8s.daemonset`] resource.
[K8s DaemonSetStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#daemonsetstatus-v1-apps [`k8s.daemonset`]: ../resource/k8s.md#daemonset
DaemonSetMisscheduledNodes.Description
func (DaemonSetMisscheduledNodes) Description() string
Description returns the semantic convention description of the instrument
DaemonSetMisscheduledNodes.Inst
func (m DaemonSetMisscheduledNodes) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
DaemonSetMisscheduledNodes.Name
func (DaemonSetMisscheduledNodes) Name() string
Name returns the semantic convention name of the instrument.
DaemonSetMisscheduledNodes.Unit
func (DaemonSetMisscheduledNodes) Unit() string
Unit returns the semantic convention unit of the instrument
DaemonSetReadyNodes
type DaemonSetReadyNodes struct {
metric.Int64UpDownCounter
}
DaemonSetReadyNodes is an instrument used to record metric values conforming to the "k8s.daemonset.ready_nodes" 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.
NewDaemonSetReadyNodes
func NewDaemonSetReadyNodes( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DaemonSetReadyNodes, error)
NewDaemonSetReadyNodes returns a new DaemonSetReadyNodes instrument.
DaemonSetReadyNodes.Add
func (m DaemonSetReadyNodes) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `numberReady` field of the [K8s DaemonSetStatus].
This metric SHOULD, at a minimum, be reported against a [`k8s.daemonset`] resource.
[K8s DaemonSetStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#daemonsetstatus-v1-apps [`k8s.daemonset`]: ../resource/k8s.md#daemonset
DaemonSetReadyNodes.Description
func (DaemonSetReadyNodes) Description() string
Description returns the semantic convention description of the instrument
DaemonSetReadyNodes.Inst
func (m DaemonSetReadyNodes) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
DaemonSetReadyNodes.Name
func (DaemonSetReadyNodes) Name() string
Name returns the semantic convention name of the instrument.
DaemonSetReadyNodes.Unit
func (DaemonSetReadyNodes) Unit() string
Unit returns the semantic convention unit of the instrument
DeploymentAvailablePods
type DeploymentAvailablePods struct {
metric.Int64UpDownCounter
}
DeploymentAvailablePods is an instrument used to record metric values conforming to the "k8s.deployment.available_pods" semantic conventions. It represents the total number of available replica pods (ready for at least minReadySeconds) targeted by this deployment.
NewDeploymentAvailablePods
func NewDeploymentAvailablePods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DeploymentAvailablePods, error)
NewDeploymentAvailablePods returns a new DeploymentAvailablePods instrument.
DeploymentAvailablePods.Add
func (m DeploymentAvailablePods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `availableReplicas` field of the [K8s DeploymentStatus].
This metric SHOULD, at a minimum, be reported against a [`k8s.deployment`] resource.
[K8s DeploymentStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#deploymentstatus-v1-apps [`k8s.deployment`]: ../resource/k8s.md#deployment
DeploymentAvailablePods.Description
func (DeploymentAvailablePods) Description() string
Description returns the semantic convention description of the instrument
DeploymentAvailablePods.Inst
func (m DeploymentAvailablePods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
DeploymentAvailablePods.Name
func (DeploymentAvailablePods) Name() string
Name returns the semantic convention name of the instrument.
DeploymentAvailablePods.Unit
func (DeploymentAvailablePods) Unit() string
Unit returns the semantic convention unit of the instrument
DeploymentDesiredPods
type DeploymentDesiredPods struct {
metric.Int64UpDownCounter
}
DeploymentDesiredPods is an instrument used to record metric values conforming to the "k8s.deployment.desired_pods" semantic conventions. It represents the number of desired replica pods in this deployment.
NewDeploymentDesiredPods
func NewDeploymentDesiredPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DeploymentDesiredPods, error)
NewDeploymentDesiredPods returns a new DeploymentDesiredPods instrument.
DeploymentDesiredPods.Add
func (m DeploymentDesiredPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `replicas` field of the [K8s DeploymentSpec].
This metric SHOULD, at a minimum, be reported against a [`k8s.deployment`] resource.
[K8s DeploymentSpec]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#deploymentspec-v1-apps [`k8s.deployment`]: ../resource/k8s.md#deployment
DeploymentDesiredPods.Description
func (DeploymentDesiredPods) Description() string
Description returns the semantic convention description of the instrument
DeploymentDesiredPods.Inst
func (m DeploymentDesiredPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
DeploymentDesiredPods.Name
func (DeploymentDesiredPods) Name() string
Name returns the semantic convention name of the instrument.
DeploymentDesiredPods.Unit
func (DeploymentDesiredPods) Unit() string
Unit returns the semantic convention unit of the instrument
HPACurrentPods
type HPACurrentPods struct {
metric.Int64UpDownCounter
}
HPACurrentPods is an instrument used to record metric values conforming to the "k8s.hpa.current_pods" semantic conventions. It represents the current number of replica pods managed by this horizontal pod autoscaler, as last seen by the autoscaler.
NewHPACurrentPods
func NewHPACurrentPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (HPACurrentPods, error)
NewHPACurrentPods returns a new HPACurrentPods instrument.
HPACurrentPods.Add
func (m HPACurrentPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `currentReplicas` field of the [K8s HorizontalPodAutoscalerStatus]
This metric SHOULD, at a minimum, be reported against a [`k8s.hpa`] resource.
[K8s HorizontalPodAutoscalerStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#horizontalpodautoscalerstatus-v2-autoscaling [`k8s.hpa`]: ../resource/k8s.md#horizontalpodautoscaler
HPACurrentPods.Description
func (HPACurrentPods) Description() string
Description returns the semantic convention description of the instrument
HPACurrentPods.Inst
func (m HPACurrentPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
HPACurrentPods.Name
func (HPACurrentPods) Name() string
Name returns the semantic convention name of the instrument.
HPACurrentPods.Unit
func (HPACurrentPods) Unit() string
Unit returns the semantic convention unit of the instrument
HPADesiredPods
type HPADesiredPods struct {
metric.Int64UpDownCounter
}
HPADesiredPods is an instrument used to record metric values conforming to the "k8s.hpa.desired_pods" semantic conventions. It represents the desired number of replica pods managed by this horizontal pod autoscaler, as last calculated by the autoscaler.
NewHPADesiredPods
func NewHPADesiredPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (HPADesiredPods, error)
NewHPADesiredPods returns a new HPADesiredPods instrument.
HPADesiredPods.Add
func (m HPADesiredPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `desiredReplicas` field of the [K8s HorizontalPodAutoscalerStatus]
This metric SHOULD, at a minimum, be reported against a [`k8s.hpa`] resource.
[K8s HorizontalPodAutoscalerStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#horizontalpodautoscalerstatus-v2-autoscaling [`k8s.hpa`]: ../resource/k8s.md#horizontalpodautoscaler
HPADesiredPods.Description
func (HPADesiredPods) Description() string
Description returns the semantic convention description of the instrument
HPADesiredPods.Inst
func (m HPADesiredPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
HPADesiredPods.Name
func (HPADesiredPods) Name() string
Name returns the semantic convention name of the instrument.
HPADesiredPods.Unit
func (HPADesiredPods) Unit() string
Unit returns the semantic convention unit of the instrument
HPAMaxPods
type HPAMaxPods struct {
metric.Int64UpDownCounter
}
HPAMaxPods is an instrument used to record metric values conforming to the "k8s.hpa.max_pods" semantic conventions. It represents the upper limit for the number of replica pods to which the autoscaler can scale up.
NewHPAMaxPods
func NewHPAMaxPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (HPAMaxPods, error)
NewHPAMaxPods returns a new HPAMaxPods instrument.
HPAMaxPods.Add
func (m HPAMaxPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `maxReplicas` field of the [K8s HorizontalPodAutoscalerSpec]
This metric SHOULD, at a minimum, be reported against a [`k8s.hpa`] resource.
[K8s HorizontalPodAutoscalerSpec]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#horizontalpodautoscalerspec-v2-autoscaling [`k8s.hpa`]: ../resource/k8s.md#horizontalpodautoscaler
HPAMaxPods.Description
func (HPAMaxPods) Description() string
Description returns the semantic convention description of the instrument
HPAMaxPods.Inst
func (m HPAMaxPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
HPAMaxPods.Name
func (HPAMaxPods) Name() string
Name returns the semantic convention name of the instrument.
HPAMaxPods.Unit
func (HPAMaxPods) Unit() string
Unit returns the semantic convention unit of the instrument
HPAMinPods
type HPAMinPods struct {
metric.Int64UpDownCounter
}
HPAMinPods is an instrument used to record metric values conforming to the "k8s.hpa.min_pods" semantic conventions. It represents the lower limit for the number of replica pods to which the autoscaler can scale down.
NewHPAMinPods
func NewHPAMinPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (HPAMinPods, error)
NewHPAMinPods returns a new HPAMinPods instrument.
HPAMinPods.Add
func (m HPAMinPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `minReplicas` field of the [K8s HorizontalPodAutoscalerSpec]
This metric SHOULD, at a minimum, be reported against a [`k8s.hpa`] resource.
[K8s HorizontalPodAutoscalerSpec]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#horizontalpodautoscalerspec-v2-autoscaling [`k8s.hpa`]: ../resource/k8s.md#horizontalpodautoscaler
HPAMinPods.Description
func (HPAMinPods) Description() string
Description returns the semantic convention description of the instrument
HPAMinPods.Inst
func (m HPAMinPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
HPAMinPods.Name
func (HPAMinPods) Name() string
Name returns the semantic convention name of the instrument.
HPAMinPods.Unit
func (HPAMinPods) Unit() string
Unit returns the semantic convention unit of the instrument
JobActivePods
type JobActivePods struct {
metric.Int64UpDownCounter
}
JobActivePods is an instrument used to record metric values conforming to the "k8s.job.active_pods" semantic conventions. It represents the number of pending and actively running pods for a job.
NewJobActivePods
func NewJobActivePods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobActivePods, error)
NewJobActivePods returns a new JobActivePods instrument.
JobActivePods.Add
func (m JobActivePods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `active` field of the [K8s JobStatus].
This metric SHOULD, at a minimum, be reported against a [`k8s.job`] resource.
[K8s JobStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#jobstatus-v1-batch [`k8s.job`]: ../resource/k8s.md#job
JobActivePods.Description
func (JobActivePods) Description() string
Description returns the semantic convention description of the instrument
JobActivePods.Inst
func (m JobActivePods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
JobActivePods.Name
func (JobActivePods) Name() string
Name returns the semantic convention name of the instrument.
JobActivePods.Unit
func (JobActivePods) Unit() string
Unit returns the semantic convention unit of the instrument
JobDesiredSuccessfulPods
type JobDesiredSuccessfulPods struct {
metric.Int64UpDownCounter
}
JobDesiredSuccessfulPods is an instrument used to record metric values conforming to the "k8s.job.desired_successful_pods" semantic conventions. It represents the desired number of successfully finished pods the job should be run with.
NewJobDesiredSuccessfulPods
func NewJobDesiredSuccessfulPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobDesiredSuccessfulPods, error)
NewJobDesiredSuccessfulPods returns a new JobDesiredSuccessfulPods instrument.
JobDesiredSuccessfulPods.Add
func (m JobDesiredSuccessfulPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `completions` field of the [K8s JobSpec].
This metric SHOULD, at a minimum, be reported against a [`k8s.job`] resource.
[K8s JobSpec]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#jobspec-v1-batch [`k8s.job`]: ../resource/k8s.md#job
JobDesiredSuccessfulPods.Description
func (JobDesiredSuccessfulPods) Description() string
Description returns the semantic convention description of the instrument
JobDesiredSuccessfulPods.Inst
func (m JobDesiredSuccessfulPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
JobDesiredSuccessfulPods.Name
func (JobDesiredSuccessfulPods) Name() string
Name returns the semantic convention name of the instrument.
JobDesiredSuccessfulPods.Unit
func (JobDesiredSuccessfulPods) Unit() string
Unit returns the semantic convention unit of the instrument
JobFailedPods
type JobFailedPods struct {
metric.Int64UpDownCounter
}
JobFailedPods is an instrument used to record metric values conforming to the "k8s.job.failed_pods" semantic conventions. It represents the number of pods which reached phase Failed for a job.
NewJobFailedPods
func NewJobFailedPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobFailedPods, error)
NewJobFailedPods returns a new JobFailedPods instrument.
JobFailedPods.Add
func (m JobFailedPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `failed` field of the [K8s JobStatus].
This metric SHOULD, at a minimum, be reported against a [`k8s.job`] resource.
[K8s JobStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#jobstatus-v1-batch [`k8s.job`]: ../resource/k8s.md#job
JobFailedPods.Description
func (JobFailedPods) Description() string
Description returns the semantic convention description of the instrument
JobFailedPods.Inst
func (m JobFailedPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
JobFailedPods.Name
func (JobFailedPods) Name() string
Name returns the semantic convention name of the instrument.
JobFailedPods.Unit
func (JobFailedPods) Unit() string
Unit returns the semantic convention unit of the instrument
JobMaxParallelPods
type JobMaxParallelPods struct {
metric.Int64UpDownCounter
}
JobMaxParallelPods is an instrument used to record metric values conforming to the "k8s.job.max_parallel_pods" semantic conventions. It represents the max desired number of pods the job should run at any given time.
NewJobMaxParallelPods
func NewJobMaxParallelPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobMaxParallelPods, error)
NewJobMaxParallelPods returns a new JobMaxParallelPods instrument.
JobMaxParallelPods.Add
func (m JobMaxParallelPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `parallelism` field of the [K8s JobSpec].
This metric SHOULD, at a minimum, be reported against a [`k8s.job`] resource.
[K8s JobSpec]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#jobspec-v1-batch [`k8s.job`]: ../resource/k8s.md#job
JobMaxParallelPods.Description
func (JobMaxParallelPods) Description() string
Description returns the semantic convention description of the instrument
JobMaxParallelPods.Inst
func (m JobMaxParallelPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
JobMaxParallelPods.Name
func (JobMaxParallelPods) Name() string
Name returns the semantic convention name of the instrument.
JobMaxParallelPods.Unit
func (JobMaxParallelPods) Unit() string
Unit returns the semantic convention unit of the instrument
JobSuccessfulPods
type JobSuccessfulPods struct {
metric.Int64UpDownCounter
}
JobSuccessfulPods is an instrument used to record metric values conforming to the "k8s.job.successful_pods" semantic conventions. It represents the number of pods which reached phase Succeeded for a job.
NewJobSuccessfulPods
func NewJobSuccessfulPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (JobSuccessfulPods, error)
NewJobSuccessfulPods returns a new JobSuccessfulPods instrument.
JobSuccessfulPods.Add
func (m JobSuccessfulPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `succeeded` field of the [K8s JobStatus].
This metric SHOULD, at a minimum, be reported against a [`k8s.job`] resource.
[K8s JobStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#jobstatus-v1-batch [`k8s.job`]: ../resource/k8s.md#job
JobSuccessfulPods.Description
func (JobSuccessfulPods) Description() string
Description returns the semantic convention description of the instrument
JobSuccessfulPods.Inst
func (m JobSuccessfulPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
JobSuccessfulPods.Name
func (JobSuccessfulPods) Name() string
Name returns the semantic convention name of the instrument.
JobSuccessfulPods.Unit
func (JobSuccessfulPods) Unit() string
Unit returns the semantic convention unit of the instrument
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.
NewNamespacePhase
func NewNamespacePhase( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NamespacePhase, error)
NewNamespacePhase returns a new NamespacePhase instrument.
NamespacePhase.Add
func (m NamespacePhase) Add( ctx context.Context, incr int64, namespacePhase NamespacePhaseAttr, attrs ...attribute.KeyValue, )
Add adds incr to the existing count.
The namespacePhase is the the phase of the K8s namespace.
This metric SHOULD, at a minimum, be reported against a [`k8s.namespace`] resource.
[`k8s.namespace`]: ../resource/k8s.md#namespace
NamespacePhase.Description
func (NamespacePhase) Description() string
Description returns the semantic convention description of the instrument
NamespacePhase.Inst
func (m NamespacePhase) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
NamespacePhase.Name
func (NamespacePhase) Name() string
Name returns the semantic convention name of the instrument.
NamespacePhase.Unit
func (NamespacePhase) Unit() string
Unit returns the semantic convention unit of the instrument
NamespacePhaseAttr
type NamespacePhaseAttr string
NamespacePhaseAttr is an attribute conforming to the k8s.namespace.phase semantic conventions. It represents the phase of the K8s namespace.
NamespacePhaseActive (2 declarations)
var ( // NamespacePhaseActive is the active namespace phase as described by [K8s API] // . // // [K8s API]: https://pkg.go.dev/k8s.io/[email protected]/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/[email protected]/core/v1#NamespacePhase NamespacePhaseTerminating NamespacePhaseAttr = "terminating" )
NetworkIODirectionAttr
type NetworkIODirectionAttr string
NetworkIODirectionAttr is an attribute conforming to the network.io.direction semantic conventions. It represents the network IO operation direction.
NetworkIODirectionTransmit (2 declarations)
var ( // NetworkIODirectionTransmit is the none. NetworkIODirectionTransmit NetworkIODirectionAttr = "transmit" // NetworkIODirectionReceive is the none. NetworkIODirectionReceive NetworkIODirectionAttr = "receive" )
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.
NewNodeCPUTime
func NewNodeCPUTime( m metric.Meter, opt ...metric.Float64CounterOption, ) (NodeCPUTime, error)
NewNodeCPUTime returns a new NodeCPUTime instrument.
NodeCPUTime.Add
func (m NodeCPUTime) Add(ctx context.Context, incr float64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
Total CPU time consumed by the specific Node on all available CPU cores
NodeCPUTime.Description
func (NodeCPUTime) Description() string
Description returns the semantic convention description of the instrument
NodeCPUTime.Inst
func (m NodeCPUTime) Inst() metric.Float64Counter
Inst returns the underlying metric instrument.
NodeCPUTime.Name
func (NodeCPUTime) Name() string
Name returns the semantic convention name of the instrument.
NodeCPUTime.Unit
func (NodeCPUTime) Unit() string
Unit returns the semantic convention unit of the instrument
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.
NewNodeCPUUsage
func NewNodeCPUUsage( m metric.Meter, opt ...metric.Int64GaugeOption, ) (NodeCPUUsage, error)
NewNodeCPUUsage returns a new NodeCPUUsage instrument.
NodeCPUUsage.Description
func (NodeCPUUsage) Description() string
Description returns the semantic convention description of the instrument
NodeCPUUsage.Inst
func (m NodeCPUUsage) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
NodeCPUUsage.Name
func (NodeCPUUsage) Name() string
Name returns the semantic convention name of the instrument.
NodeCPUUsage.Record
func (m NodeCPUUsage) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)
Record records val to the current distribution.
CPU usage of the specific Node on all available CPU cores, averaged over the sample window
NodeCPUUsage.Unit
func (NodeCPUUsage) Unit() string
Unit returns the semantic convention unit of the instrument
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.
NewNodeMemoryUsage
func NewNodeMemoryUsage( m metric.Meter, opt ...metric.Int64GaugeOption, ) (NodeMemoryUsage, error)
NewNodeMemoryUsage returns a new NodeMemoryUsage instrument.
NodeMemoryUsage.Description
func (NodeMemoryUsage) Description() string
Description returns the semantic convention description of the instrument
NodeMemoryUsage.Inst
func (m NodeMemoryUsage) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
NodeMemoryUsage.Name
func (NodeMemoryUsage) Name() string
Name returns the semantic convention name of the instrument.
NodeMemoryUsage.Record
func (m NodeMemoryUsage) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)
Record records val to the current distribution.
Total memory usage of the Node
NodeMemoryUsage.Unit
func (NodeMemoryUsage) Unit() string
Unit returns the semantic convention unit of the instrument
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.
NewNodeNetworkErrors
func NewNodeNetworkErrors( m metric.Meter, opt ...metric.Int64CounterOption, ) (NodeNetworkErrors, error)
NewNodeNetworkErrors returns a new NodeNetworkErrors instrument.
NodeNetworkErrors.Add
func (m NodeNetworkErrors) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
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.
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.
NodeNetworkErrors.Description
func (NodeNetworkErrors) Description() string
Description returns the semantic convention description of the instrument
NodeNetworkErrors.Inst
func (m NodeNetworkErrors) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
NodeNetworkErrors.Name
func (NodeNetworkErrors) Name() string
Name returns the semantic convention name of the instrument.
NodeNetworkErrors.Unit
func (NodeNetworkErrors) Unit() string
Unit returns the semantic convention unit of the instrument
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.
NewNodeNetworkIO
func NewNodeNetworkIO( m metric.Meter, opt ...metric.Int64CounterOption, ) (NodeNetworkIO, error)
NewNodeNetworkIO returns a new NodeNetworkIO instrument.
NodeNetworkIO.Add
func (m NodeNetworkIO) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
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.
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.
NodeNetworkIO.Description
func (NodeNetworkIO) Description() string
Description returns the semantic convention description of the instrument
NodeNetworkIO.Inst
func (m NodeNetworkIO) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
NodeNetworkIO.Name
func (NodeNetworkIO) Name() string
Name returns the semantic convention name of the instrument.
NodeNetworkIO.Unit
func (NodeNetworkIO) Unit() string
Unit returns the semantic convention unit of the instrument
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.
NewNodeUptime
func NewNodeUptime( m metric.Meter, opt ...metric.Float64GaugeOption, ) (NodeUptime, error)
NewNodeUptime returns a new NodeUptime instrument.
NodeUptime.Description
func (NodeUptime) Description() string
Description returns the semantic convention description of the instrument
NodeUptime.Inst
func (m NodeUptime) Inst() metric.Float64Gauge
Inst returns the underlying metric instrument.
NodeUptime.Name
func (NodeUptime) Name() string
Name returns the semantic convention name of the instrument.
NodeUptime.Record
func (m NodeUptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyValue)
Record records val to the current distribution.
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.
NodeUptime.Unit
func (NodeUptime) Unit() string
Unit returns the semantic convention unit of the instrument
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.
NewPodCPUTime
func NewPodCPUTime( m metric.Meter, opt ...metric.Float64CounterOption, ) (PodCPUTime, error)
NewPodCPUTime returns a new PodCPUTime instrument.
PodCPUTime.Add
func (m PodCPUTime) Add(ctx context.Context, incr float64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
Total CPU time consumed by the specific Pod on all available CPU cores
PodCPUTime.Description
func (PodCPUTime) Description() string
Description returns the semantic convention description of the instrument
PodCPUTime.Inst
func (m PodCPUTime) Inst() metric.Float64Counter
Inst returns the underlying metric instrument.
PodCPUTime.Name
func (PodCPUTime) Name() string
Name returns the semantic convention name of the instrument.
PodCPUTime.Unit
func (PodCPUTime) Unit() string
Unit returns the semantic convention unit of the instrument
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.
NewPodCPUUsage
func NewPodCPUUsage( m metric.Meter, opt ...metric.Int64GaugeOption, ) (PodCPUUsage, error)
NewPodCPUUsage returns a new PodCPUUsage instrument.
PodCPUUsage.Description
func (PodCPUUsage) Description() string
Description returns the semantic convention description of the instrument
PodCPUUsage.Inst
func (m PodCPUUsage) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
PodCPUUsage.Name
func (PodCPUUsage) Name() string
Name returns the semantic convention name of the instrument.
PodCPUUsage.Record
func (m PodCPUUsage) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)
Record records val to the current distribution.
CPU usage of the specific Pod on all available CPU cores, averaged over the sample window
PodCPUUsage.Unit
func (PodCPUUsage) Unit() string
Unit returns the semantic convention unit of the instrument
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.
NewPodMemoryUsage
func NewPodMemoryUsage( m metric.Meter, opt ...metric.Int64GaugeOption, ) (PodMemoryUsage, error)
NewPodMemoryUsage returns a new PodMemoryUsage instrument.
PodMemoryUsage.Description
func (PodMemoryUsage) Description() string
Description returns the semantic convention description of the instrument
PodMemoryUsage.Inst
func (m PodMemoryUsage) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
PodMemoryUsage.Name
func (PodMemoryUsage) Name() string
Name returns the semantic convention name of the instrument.
PodMemoryUsage.Record
func (m PodMemoryUsage) Record(ctx context.Context, val int64, attrs ...attribute.KeyValue)
Record records val to the current distribution.
Total memory usage of the Pod
PodMemoryUsage.Unit
func (PodMemoryUsage) Unit() string
Unit returns the semantic convention unit of the instrument
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.
NewPodNetworkErrors
func NewPodNetworkErrors( m metric.Meter, opt ...metric.Int64CounterOption, ) (PodNetworkErrors, error)
NewPodNetworkErrors returns a new PodNetworkErrors instrument.
PodNetworkErrors.Add
func (m PodNetworkErrors) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
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.
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.
PodNetworkErrors.Description
func (PodNetworkErrors) Description() string
Description returns the semantic convention description of the instrument
PodNetworkErrors.Inst
func (m PodNetworkErrors) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
PodNetworkErrors.Name
func (PodNetworkErrors) Name() string
Name returns the semantic convention name of the instrument.
PodNetworkErrors.Unit
func (PodNetworkErrors) Unit() string
Unit returns the semantic convention unit of the instrument
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.
NewPodNetworkIO
func NewPodNetworkIO( m metric.Meter, opt ...metric.Int64CounterOption, ) (PodNetworkIO, error)
NewPodNetworkIO returns a new PodNetworkIO instrument.
PodNetworkIO.Add
func (m PodNetworkIO) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
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.
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.
PodNetworkIO.Description
func (PodNetworkIO) Description() string
Description returns the semantic convention description of the instrument
PodNetworkIO.Inst
func (m PodNetworkIO) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
PodNetworkIO.Name
func (PodNetworkIO) Name() string
Name returns the semantic convention name of the instrument.
PodNetworkIO.Unit
func (PodNetworkIO) Unit() string
Unit returns the semantic convention unit of the instrument
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.
NewPodUptime
func NewPodUptime( m metric.Meter, opt ...metric.Float64GaugeOption, ) (PodUptime, error)
NewPodUptime returns a new PodUptime instrument.
PodUptime.Description
func (PodUptime) Description() string
Description returns the semantic convention description of the instrument
PodUptime.Inst
func (m PodUptime) Inst() metric.Float64Gauge
Inst returns the underlying metric instrument.
PodUptime.Name
func (PodUptime) Name() string
Name returns the semantic convention name of the instrument.
PodUptime.Record
func (m PodUptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyValue)
Record records val to the current distribution.
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.
PodUptime.Unit
func (PodUptime) Unit() string
Unit returns the semantic convention unit of the instrument
ReplicaSetAvailablePods
type ReplicaSetAvailablePods struct {
metric.Int64UpDownCounter
}
ReplicaSetAvailablePods is an instrument used to record metric values conforming to the "k8s.replicaset.available_pods" semantic conventions. It represents the total number of available replica pods (ready for at least minReadySeconds) targeted by this replicaset.
NewReplicaSetAvailablePods
func NewReplicaSetAvailablePods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ReplicaSetAvailablePods, error)
NewReplicaSetAvailablePods returns a new ReplicaSetAvailablePods instrument.
ReplicaSetAvailablePods.Add
func (m ReplicaSetAvailablePods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `availableReplicas` field of the [K8s ReplicaSetStatus].
This metric SHOULD, at a minimum, be reported against a [`k8s.replicaset`] resource.
[K8s ReplicaSetStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#replicasetstatus-v1-apps [`k8s.replicaset`]: ../resource/k8s.md#replicaset
ReplicaSetAvailablePods.Description
func (ReplicaSetAvailablePods) Description() string
Description returns the semantic convention description of the instrument
ReplicaSetAvailablePods.Inst
func (m ReplicaSetAvailablePods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
ReplicaSetAvailablePods.Name
func (ReplicaSetAvailablePods) Name() string
Name returns the semantic convention name of the instrument.
ReplicaSetAvailablePods.Unit
func (ReplicaSetAvailablePods) Unit() string
Unit returns the semantic convention unit of the instrument
ReplicaSetDesiredPods
type ReplicaSetDesiredPods struct {
metric.Int64UpDownCounter
}
ReplicaSetDesiredPods is an instrument used to record metric values conforming to the "k8s.replicaset.desired_pods" semantic conventions. It represents the number of desired replica pods in this replicaset.
NewReplicaSetDesiredPods
func NewReplicaSetDesiredPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ReplicaSetDesiredPods, error)
NewReplicaSetDesiredPods returns a new ReplicaSetDesiredPods instrument.
ReplicaSetDesiredPods.Add
func (m ReplicaSetDesiredPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `replicas` field of the [K8s ReplicaSetSpec].
This metric SHOULD, at a minimum, be reported against a [`k8s.replicaset`] resource.
[K8s ReplicaSetSpec]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#replicasetspec-v1-apps [`k8s.replicaset`]: ../resource/k8s.md#replicaset
ReplicaSetDesiredPods.Description
func (ReplicaSetDesiredPods) Description() string
Description returns the semantic convention description of the instrument
ReplicaSetDesiredPods.Inst
func (m ReplicaSetDesiredPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
ReplicaSetDesiredPods.Name
func (ReplicaSetDesiredPods) Name() string
Name returns the semantic convention name of the instrument.
ReplicaSetDesiredPods.Unit
func (ReplicaSetDesiredPods) Unit() string
Unit returns the semantic convention unit of the instrument
ReplicationControllerAvailablePods
type ReplicationControllerAvailablePods struct {
metric.Int64UpDownCounter
}
ReplicationControllerAvailablePods is an instrument used to record metric values conforming to the "k8s.replicationcontroller.available_pods" semantic conventions. It represents the total number of available replica pods (ready for at least minReadySeconds) targeted by this replication controller.
NewReplicationControllerAvailablePods
func NewReplicationControllerAvailablePods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ReplicationControllerAvailablePods, error)
NewReplicationControllerAvailablePods returns a new ReplicationControllerAvailablePods instrument.
ReplicationControllerAvailablePods.Add
func (m ReplicationControllerAvailablePods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `availableReplicas` field of the [K8s ReplicationControllerStatus]
This metric SHOULD, at a minimum, be reported against a [`k8s.replicationcontroller`] resource.
[K8s ReplicationControllerStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#replicationcontrollerstatus-v1-core [`k8s.replicationcontroller`]: ../resource/k8s.md#replicationcontroller
ReplicationControllerAvailablePods.Description
func (ReplicationControllerAvailablePods) Description() string
Description returns the semantic convention description of the instrument
ReplicationControllerAvailablePods.Inst
func (m ReplicationControllerAvailablePods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
ReplicationControllerAvailablePods.Name
func (ReplicationControllerAvailablePods) Name() string
Name returns the semantic convention name of the instrument.
ReplicationControllerAvailablePods.Unit
func (ReplicationControllerAvailablePods) Unit() string
Unit returns the semantic convention unit of the instrument
ReplicationControllerDesiredPods
type ReplicationControllerDesiredPods struct {
metric.Int64UpDownCounter
}
ReplicationControllerDesiredPods is an instrument used to record metric values conforming to the "k8s.replicationcontroller.desired_pods" semantic conventions. It represents the number of desired replica pods in this replication controller.
NewReplicationControllerDesiredPods
func NewReplicationControllerDesiredPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ReplicationControllerDesiredPods, error)
NewReplicationControllerDesiredPods returns a new ReplicationControllerDesiredPods instrument.
ReplicationControllerDesiredPods.Add
func (m ReplicationControllerDesiredPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `replicas` field of the [K8s ReplicationControllerSpec]
This metric SHOULD, at a minimum, be reported against a [`k8s.replicationcontroller`] resource.
[K8s ReplicationControllerSpec]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#replicationcontrollerspec-v1-core [`k8s.replicationcontroller`]: ../resource/k8s.md#replicationcontroller
ReplicationControllerDesiredPods.Description
func (ReplicationControllerDesiredPods) Description() string
Description returns the semantic convention description of the instrument
ReplicationControllerDesiredPods.Inst
func (m ReplicationControllerDesiredPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
ReplicationControllerDesiredPods.Name
func (ReplicationControllerDesiredPods) Name() string
Name returns the semantic convention name of the instrument.
ReplicationControllerDesiredPods.Unit
func (ReplicationControllerDesiredPods) Unit() string
Unit returns the semantic convention unit of the instrument
StatefulSetCurrentPods
type StatefulSetCurrentPods struct {
metric.Int64UpDownCounter
}
StatefulSetCurrentPods is an instrument used to record metric values conforming to the "k8s.statefulset.current_pods" semantic conventions. It represents the number of replica pods created by the statefulset controller from the statefulset version indicated by currentRevision.
NewStatefulSetCurrentPods
func NewStatefulSetCurrentPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (StatefulSetCurrentPods, error)
NewStatefulSetCurrentPods returns a new StatefulSetCurrentPods instrument.
StatefulSetCurrentPods.Add
func (m StatefulSetCurrentPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `currentReplicas` field of the [K8s StatefulSetStatus].
This metric SHOULD, at a minimum, be reported against a [`k8s.statefulset`] resource.
[K8s StatefulSetStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#statefulsetstatus-v1-apps [`k8s.statefulset`]: ../resource/k8s.md#statefulset
StatefulSetCurrentPods.Description
func (StatefulSetCurrentPods) Description() string
Description returns the semantic convention description of the instrument
StatefulSetCurrentPods.Inst
func (m StatefulSetCurrentPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
StatefulSetCurrentPods.Name
func (StatefulSetCurrentPods) Name() string
Name returns the semantic convention name of the instrument.
StatefulSetCurrentPods.Unit
func (StatefulSetCurrentPods) Unit() string
Unit returns the semantic convention unit of the instrument
StatefulSetDesiredPods
type StatefulSetDesiredPods struct {
metric.Int64UpDownCounter
}
StatefulSetDesiredPods is an instrument used to record metric values conforming to the "k8s.statefulset.desired_pods" semantic conventions. It represents the number of desired replica pods in this statefulset.
NewStatefulSetDesiredPods
func NewStatefulSetDesiredPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (StatefulSetDesiredPods, error)
NewStatefulSetDesiredPods returns a new StatefulSetDesiredPods instrument.
StatefulSetDesiredPods.Add
func (m StatefulSetDesiredPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `replicas` field of the [K8s StatefulSetSpec].
This metric SHOULD, at a minimum, be reported against a [`k8s.statefulset`] resource.
[K8s StatefulSetSpec]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#statefulsetspec-v1-apps [`k8s.statefulset`]: ../resource/k8s.md#statefulset
StatefulSetDesiredPods.Description
func (StatefulSetDesiredPods) Description() string
Description returns the semantic convention description of the instrument
StatefulSetDesiredPods.Inst
func (m StatefulSetDesiredPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
StatefulSetDesiredPods.Name
func (StatefulSetDesiredPods) Name() string
Name returns the semantic convention name of the instrument.
StatefulSetDesiredPods.Unit
func (StatefulSetDesiredPods) Unit() string
Unit returns the semantic convention unit of the instrument
StatefulSetReadyPods
type StatefulSetReadyPods struct {
metric.Int64UpDownCounter
}
StatefulSetReadyPods is an instrument used to record metric values conforming to the "k8s.statefulset.ready_pods" semantic conventions. It represents the number of replica pods created for this statefulset with a Ready Condition.
NewStatefulSetReadyPods
func NewStatefulSetReadyPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (StatefulSetReadyPods, error)
NewStatefulSetReadyPods returns a new StatefulSetReadyPods instrument.
StatefulSetReadyPods.Add
func (m StatefulSetReadyPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `readyReplicas` field of the [K8s StatefulSetStatus].
This metric SHOULD, at a minimum, be reported against a [`k8s.statefulset`] resource.
[K8s StatefulSetStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#statefulsetstatus-v1-apps [`k8s.statefulset`]: ../resource/k8s.md#statefulset
StatefulSetReadyPods.Description
func (StatefulSetReadyPods) Description() string
Description returns the semantic convention description of the instrument
StatefulSetReadyPods.Inst
func (m StatefulSetReadyPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
StatefulSetReadyPods.Name
func (StatefulSetReadyPods) Name() string
Name returns the semantic convention name of the instrument.
StatefulSetReadyPods.Unit
func (StatefulSetReadyPods) Unit() string
Unit returns the semantic convention unit of the instrument
StatefulSetUpdatedPods
type StatefulSetUpdatedPods struct {
metric.Int64UpDownCounter
}
StatefulSetUpdatedPods is an instrument used to record metric values conforming to the "k8s.statefulset.updated_pods" semantic conventions. It represents the number of replica pods created by the statefulset controller from the statefulset version indicated by updateRevision.
NewStatefulSetUpdatedPods
func NewStatefulSetUpdatedPods( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (StatefulSetUpdatedPods, error)
NewStatefulSetUpdatedPods returns a new StatefulSetUpdatedPods instrument.
StatefulSetUpdatedPods.Add
func (m StatefulSetUpdatedPods) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
Add adds incr to the existing count.
This metric aligns with the `updatedReplicas` field of the [K8s StatefulSetStatus].
This metric SHOULD, at a minimum, be reported against a [`k8s.statefulset`] resource.
[K8s StatefulSetStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#statefulsetstatus-v1-apps [`k8s.statefulset`]: ../resource/k8s.md#statefulset
StatefulSetUpdatedPods.Description
func (StatefulSetUpdatedPods) Description() string
Description returns the semantic convention description of the instrument
StatefulSetUpdatedPods.Inst
func (m StatefulSetUpdatedPods) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
StatefulSetUpdatedPods.Name
func (StatefulSetUpdatedPods) Name() string
Name returns the semantic convention name of the instrument.
StatefulSetUpdatedPods.Unit
func (StatefulSetUpdatedPods) Unit() string
Unit returns the semantic convention unit of the instrument