package systemconv
import "go.opentelemetry.io/otel/semconv/v1.32.0/systemconv"
Package httpconv provides types and functionality for OpenTelemetry semantic conventions in the "system" namespace.
Index ¶
- type CPULogicalCount
- func NewCPULogicalCount( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (CPULogicalCount, error)
- func (m CPULogicalCount) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (CPULogicalCount) Description() string
- func (m CPULogicalCount) Inst() metric.Int64UpDownCounter
- func (CPULogicalCount) Name() string
- func (CPULogicalCount) Unit() string
- type CPUPhysicalCount
- func NewCPUPhysicalCount( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (CPUPhysicalCount, error)
- func (m CPUPhysicalCount) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (CPUPhysicalCount) Description() string
- func (m CPUPhysicalCount) Inst() metric.Int64UpDownCounter
- func (CPUPhysicalCount) Name() string
- func (CPUPhysicalCount) Unit() string
- type DiskIO
- func NewDiskIO( m metric.Meter, opt ...metric.Int64CounterOption, ) (DiskIO, error)
- func (m DiskIO) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (DiskIO) AttrDevice(val string) attribute.KeyValue
- func (DiskIO) AttrDiskIODirection(val DiskIODirectionAttr) attribute.KeyValue
- func (m DiskIO) Inst() metric.Int64Counter
- func (DiskIO) Name() string
- func (DiskIO) Unit() string
- type DiskIODirectionAttr
- type DiskIOTime
- func NewDiskIOTime( m metric.Meter, opt ...metric.Float64CounterOption, ) (DiskIOTime, error)
- func (m DiskIOTime) Add( ctx context.Context, incr float64, attrs ...attribute.KeyValue, )
- func (DiskIOTime) AttrDevice(val string) attribute.KeyValue
- func (DiskIOTime) Description() string
- func (m DiskIOTime) Inst() metric.Float64Counter
- func (DiskIOTime) Name() string
- func (DiskIOTime) Unit() string
- type DiskLimit
- func NewDiskLimit( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (DiskLimit, error)
- func (m DiskLimit) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (DiskLimit) AttrDevice(val string) attribute.KeyValue
- func (DiskLimit) Description() string
- func (m DiskLimit) Inst() metric.Int64UpDownCounter
- func (DiskLimit) Name() string
- func (DiskLimit) Unit() string
- type DiskMerged
- func NewDiskMerged( m metric.Meter, opt ...metric.Int64CounterOption, ) (DiskMerged, error)
- func (m DiskMerged) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (DiskMerged) AttrDevice(val string) attribute.KeyValue
- func (DiskMerged) AttrDiskIODirection(val DiskIODirectionAttr) attribute.KeyValue
- func (m DiskMerged) Inst() metric.Int64Counter
- func (DiskMerged) Name() string
- func (DiskMerged) Unit() string
- type DiskOperationTime
- func NewDiskOperationTime( m metric.Meter, opt ...metric.Float64CounterOption, ) (DiskOperationTime, error)
- func (m DiskOperationTime) Add( ctx context.Context, incr float64, attrs ...attribute.KeyValue, )
- func (DiskOperationTime) AttrDevice(val string) attribute.KeyValue
- func (DiskOperationTime) AttrDiskIODirection(val DiskIODirectionAttr) attribute.KeyValue
- func (DiskOperationTime) Description() string
- func (m DiskOperationTime) Inst() metric.Float64Counter
- func (DiskOperationTime) Name() string
- func (DiskOperationTime) Unit() string
- type DiskOperations
- func NewDiskOperations( m metric.Meter, opt ...metric.Int64CounterOption, ) (DiskOperations, error)
- func (m DiskOperations) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (DiskOperations) AttrDevice(val string) attribute.KeyValue
- func (DiskOperations) AttrDiskIODirection(val DiskIODirectionAttr) attribute.KeyValue
- func (m DiskOperations) Inst() metric.Int64Counter
- func (DiskOperations) Name() string
- func (DiskOperations) Unit() string
- type FilesystemLimit
- func NewFilesystemLimit( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (FilesystemLimit, error)
- func (m FilesystemLimit) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (FilesystemLimit) AttrDevice(val string) attribute.KeyValue
- func (FilesystemLimit) AttrFilesystemMode(val string) attribute.KeyValue
- func (FilesystemLimit) AttrFilesystemMountpoint(val string) attribute.KeyValue
- func (FilesystemLimit) AttrFilesystemType(val FilesystemTypeAttr) attribute.KeyValue
- func (FilesystemLimit) Description() string
- func (m FilesystemLimit) Inst() metric.Int64UpDownCounter
- func (FilesystemLimit) Name() string
- func (FilesystemLimit) Unit() string
- type FilesystemStateAttr
- type FilesystemTypeAttr
- type FilesystemUsage
- func NewFilesystemUsage( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (FilesystemUsage, error)
- func (m FilesystemUsage) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (FilesystemUsage) AttrDevice(val string) attribute.KeyValue
- func (FilesystemUsage) AttrFilesystemMode(val string) attribute.KeyValue
- func (FilesystemUsage) AttrFilesystemMountpoint(val string) attribute.KeyValue
- func (FilesystemUsage) AttrFilesystemState(val FilesystemStateAttr) attribute.KeyValue
- func (FilesystemUsage) AttrFilesystemType(val FilesystemTypeAttr) attribute.KeyValue
- func (FilesystemUsage) Description() string
- func (m FilesystemUsage) Inst() metric.Int64UpDownCounter
- func (FilesystemUsage) Name() string
- func (FilesystemUsage) Unit() string
- type FilesystemUtilization
- func NewFilesystemUtilization( m metric.Meter, opt ...metric.Int64GaugeOption, ) (FilesystemUtilization, error)
- func (FilesystemUtilization) AttrDevice(val string) attribute.KeyValue
- func (FilesystemUtilization) AttrFilesystemMode(val string) attribute.KeyValue
- func (FilesystemUtilization) AttrFilesystemMountpoint(val string) attribute.KeyValue
- func (FilesystemUtilization) AttrFilesystemState(val FilesystemStateAttr) attribute.KeyValue
- func (FilesystemUtilization) AttrFilesystemType(val FilesystemTypeAttr) attribute.KeyValue
- func (m FilesystemUtilization) Inst() metric.Int64Gauge
- func (FilesystemUtilization) Name() string
- func (m FilesystemUtilization) Record( ctx context.Context, val int64, attrs ...attribute.KeyValue, )
- func (FilesystemUtilization) Unit() string
- type LinuxMemoryAvailable
- func NewLinuxMemoryAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (LinuxMemoryAvailable, error)
- func (m LinuxMemoryAvailable) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (LinuxMemoryAvailable) Description() string
- func (m LinuxMemoryAvailable) Inst() metric.Int64UpDownCounter
- func (LinuxMemoryAvailable) Name() string
- func (LinuxMemoryAvailable) Unit() string
- type LinuxMemorySlabStateAttr
- type LinuxMemorySlabUsage
- func NewLinuxMemorySlabUsage( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (LinuxMemorySlabUsage, error)
- func (m LinuxMemorySlabUsage) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (LinuxMemorySlabUsage) AttrLinuxMemorySlabState(val LinuxMemorySlabStateAttr) attribute.KeyValue
- func (LinuxMemorySlabUsage) Description() string
- func (m LinuxMemorySlabUsage) Inst() metric.Int64UpDownCounter
- func (LinuxMemorySlabUsage) Name() string
- func (LinuxMemorySlabUsage) Unit() string
- type MemoryLimit
- func NewMemoryLimit( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (MemoryLimit, error)
- func (m MemoryLimit) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (MemoryLimit) Description() string
- func (m MemoryLimit) Inst() metric.Int64UpDownCounter
- func (MemoryLimit) Name() string
- func (MemoryLimit) Unit() string
- type MemoryShared
- func NewMemoryShared( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (MemoryShared, error)
- func (m MemoryShared) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (MemoryShared) Description() string
- func (m MemoryShared) Inst() metric.Int64UpDownCounter
- func (MemoryShared) Name() string
- func (MemoryShared) Unit() string
- type MemoryStateAttr
- type MemoryUsage
- func NewMemoryUsage( m metric.Meter, opt ...metric.Int64ObservableGaugeOption, ) (MemoryUsage, error)
- func (MemoryUsage) AttrMemoryState(val MemoryStateAttr) attribute.KeyValue
- func (MemoryUsage) Description() string
- func (m MemoryUsage) Inst() metric.Int64ObservableGauge
- func (MemoryUsage) Name() string
- func (MemoryUsage) Unit() string
- type MemoryUtilization
- func NewMemoryUtilization( m metric.Meter, opt ...metric.Float64ObservableGaugeOption, ) (MemoryUtilization, error)
- func (MemoryUtilization) AttrMemoryState(val MemoryStateAttr) attribute.KeyValue
- func (m MemoryUtilization) Inst() metric.Float64ObservableGauge
- func (MemoryUtilization) Name() string
- func (MemoryUtilization) Unit() string
- type NetworkConnectionStateAttr
- type NetworkConnections
- func NewNetworkConnections( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NetworkConnections, error)
- func (m NetworkConnections) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (NetworkConnections) AttrNetworkConnectionState(val NetworkConnectionStateAttr) attribute.KeyValue
- func (NetworkConnections) AttrNetworkInterfaceName(val string) attribute.KeyValue
- func (NetworkConnections) AttrNetworkTransport(val NetworkTransportAttr) attribute.KeyValue
- func (m NetworkConnections) Inst() metric.Int64UpDownCounter
- func (NetworkConnections) Name() string
- func (NetworkConnections) Unit() string
- type NetworkDropped
- func NewNetworkDropped( m metric.Meter, opt ...metric.Int64CounterOption, ) (NetworkDropped, error)
- func (m NetworkDropped) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (NetworkDropped) AttrNetworkIODirection(val NetworkIODirectionAttr) attribute.KeyValue
- func (NetworkDropped) AttrNetworkInterfaceName(val string) attribute.KeyValue
- func (NetworkDropped) Description() string
- func (m NetworkDropped) Inst() metric.Int64Counter
- func (NetworkDropped) Name() string
- func (NetworkDropped) Unit() string
- type NetworkErrors
- func NewNetworkErrors( m metric.Meter, opt ...metric.Int64CounterOption, ) (NetworkErrors, error)
- func (m NetworkErrors) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (NetworkErrors) AttrNetworkIODirection(val NetworkIODirectionAttr) attribute.KeyValue
- func (NetworkErrors) AttrNetworkInterfaceName(val string) attribute.KeyValue
- func (NetworkErrors) Description() string
- func (m NetworkErrors) Inst() metric.Int64Counter
- func (NetworkErrors) Name() string
- func (NetworkErrors) Unit() string
- type NetworkIO
- func NewNetworkIO( m metric.Meter, opt ...metric.Int64ObservableCounterOption, ) (NetworkIO, error)
- func (NetworkIO) AttrNetworkIODirection(val NetworkIODirectionAttr) attribute.KeyValue
- func (NetworkIO) AttrNetworkInterfaceName(val string) attribute.KeyValue
- func (m NetworkIO) Inst() metric.Int64ObservableCounter
- func (NetworkIO) Name() string
- func (NetworkIO) Unit() string
- type NetworkIODirectionAttr
- type NetworkPackets
- func NewNetworkPackets( m metric.Meter, opt ...metric.Int64CounterOption, ) (NetworkPackets, error)
- func (m NetworkPackets) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (NetworkPackets) AttrDevice(val string) attribute.KeyValue
- func (NetworkPackets) AttrNetworkIODirection(val NetworkIODirectionAttr) attribute.KeyValue
- func (m NetworkPackets) Inst() metric.Int64Counter
- func (NetworkPackets) Name() string
- func (NetworkPackets) Unit() string
- type NetworkTransportAttr
- type PagingDirectionAttr
- type PagingFaults
- func NewPagingFaults( m metric.Meter, opt ...metric.Int64CounterOption, ) (PagingFaults, error)
- func (m PagingFaults) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (PagingFaults) AttrPagingType(val PagingTypeAttr) attribute.KeyValue
- func (m PagingFaults) Inst() metric.Int64Counter
- func (PagingFaults) Name() string
- func (PagingFaults) Unit() string
- type PagingOperations
- func NewPagingOperations( m metric.Meter, opt ...metric.Int64CounterOption, ) (PagingOperations, error)
- func (m PagingOperations) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (PagingOperations) AttrPagingDirection(val PagingDirectionAttr) attribute.KeyValue
- func (PagingOperations) AttrPagingType(val PagingTypeAttr) attribute.KeyValue
- func (m PagingOperations) Inst() metric.Int64Counter
- func (PagingOperations) Name() string
- func (PagingOperations) Unit() string
- type PagingStateAttr
- type PagingTypeAttr
- type PagingUsage
- func NewPagingUsage( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PagingUsage, error)
- func (m PagingUsage) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (PagingUsage) AttrDevice(val string) attribute.KeyValue
- func (PagingUsage) AttrPagingState(val PagingStateAttr) attribute.KeyValue
- func (PagingUsage) Description() string
- func (m PagingUsage) Inst() metric.Int64UpDownCounter
- func (PagingUsage) Name() string
- func (PagingUsage) Unit() string
- type PagingUtilization
- func NewPagingUtilization( m metric.Meter, opt ...metric.Int64GaugeOption, ) (PagingUtilization, error)
- func (PagingUtilization) AttrDevice(val string) attribute.KeyValue
- func (PagingUtilization) AttrPagingState(val PagingStateAttr) attribute.KeyValue
- func (m PagingUtilization) Inst() metric.Int64Gauge
- func (PagingUtilization) Name() string
- func (m PagingUtilization) Record( ctx context.Context, val int64, attrs ...attribute.KeyValue, )
- func (PagingUtilization) Unit() string
- type ProcessCount
- func NewProcessCount( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ProcessCount, error)
- func (m ProcessCount) Add( ctx context.Context, incr int64, attrs ...attribute.KeyValue, )
- func (ProcessCount) AttrProcessStatus(val ProcessStatusAttr) attribute.KeyValue
- func (ProcessCount) Description() string
- func (m ProcessCount) Inst() metric.Int64UpDownCounter
- func (ProcessCount) Name() string
- func (ProcessCount) Unit() string
- type ProcessCreated
- func NewProcessCreated( m metric.Meter, opt ...metric.Int64CounterOption, ) (ProcessCreated, error)
- func (m ProcessCreated) Add(ctx context.Context, incr int64, attrs ...attribute.KeyValue)
- func (ProcessCreated) Description() string
- func (m ProcessCreated) Inst() metric.Int64Counter
- func (ProcessCreated) Name() string
- func (ProcessCreated) Unit() string
- type ProcessStatusAttr
- type Uptime
- func NewUptime( m metric.Meter, opt ...metric.Float64GaugeOption, ) (Uptime, error)
- func (Uptime) Description() string
- func (m Uptime) Inst() metric.Float64Gauge
- func (Uptime) Name() string
- func (m Uptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyValue)
- func (Uptime) Unit() string
Types ¶
type CPULogicalCount ¶
type CPULogicalCount struct { metric.Int64UpDownCounter }
CPULogicalCount is an instrument used to record metric values conforming to the "system.cpu.logical.count" semantic conventions. It represents the reports the number of logical (virtual) processor cores created by the operating system to manage multitasking.
func NewCPULogicalCount ¶
func NewCPULogicalCount( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (CPULogicalCount, error)
NewCPULogicalCount returns a new CPULogicalCount instrument.
func (CPULogicalCount) Add ¶
Add adds incr to the existing count.
Calculated by multiplying the number of sockets by the number of cores per socket, and then by the number of threads per core
func (CPULogicalCount) Description ¶
func (CPULogicalCount) Description() string
Description returns the semantic convention description of the instrument
func (CPULogicalCount) Inst ¶
func (m CPULogicalCount) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (CPULogicalCount) Name ¶
func (CPULogicalCount) Name() string
Name returns the semantic convention name of the instrument.
func (CPULogicalCount) Unit ¶
func (CPULogicalCount) Unit() string
Unit returns the semantic convention unit of the instrument
type CPUPhysicalCount ¶
type CPUPhysicalCount struct { metric.Int64UpDownCounter }
CPUPhysicalCount is an instrument used to record metric values conforming to the "system.cpu.physical.count" semantic conventions. It represents the reports the number of actual physical processor cores on the hardware.
func NewCPUPhysicalCount ¶
func NewCPUPhysicalCount( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (CPUPhysicalCount, error)
NewCPUPhysicalCount returns a new CPUPhysicalCount instrument.
func (CPUPhysicalCount) Add ¶
Add adds incr to the existing count.
Calculated by multiplying the number of sockets by the number of cores per socket
func (CPUPhysicalCount) Description ¶
func (CPUPhysicalCount) Description() string
Description returns the semantic convention description of the instrument
func (CPUPhysicalCount) Inst ¶
func (m CPUPhysicalCount) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (CPUPhysicalCount) Name ¶
func (CPUPhysicalCount) Name() string
Name returns the semantic convention name of the instrument.
func (CPUPhysicalCount) Unit ¶
func (CPUPhysicalCount) Unit() string
Unit returns the semantic convention unit of the instrument
type DiskIO ¶
type DiskIO struct { metric.Int64Counter }
DiskIO is an instrument used to record metric values conforming to the "system.disk.io" semantic conventions.
func NewDiskIO ¶
NewDiskIO returns a new DiskIO instrument.
func (DiskIO) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
func (DiskIO) AttrDevice ¶
AttrDevice returns an optional attribute for the "system.device" semantic convention. It represents the device identifier.
func (DiskIO) AttrDiskIODirection ¶
func (DiskIO) AttrDiskIODirection(val DiskIODirectionAttr) attribute.KeyValue
AttrDiskIODirection returns an optional attribute for the "disk.io.direction" semantic convention. It represents the disk IO operation direction.
func (DiskIO) Inst ¶
func (m DiskIO) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (DiskIO) Name ¶
Name returns the semantic convention name of the instrument.
func (DiskIO) Unit ¶
Unit returns the semantic convention unit of the instrument
type DiskIODirectionAttr ¶
type DiskIODirectionAttr string
DiskIODirectionAttr is an attribute conforming to the disk.io.direction semantic conventions. It represents the disk IO operation direction.
var ( // DiskIODirectionRead is the none. DiskIODirectionRead DiskIODirectionAttr = "read" // DiskIODirectionWrite is the none. DiskIODirectionWrite DiskIODirectionAttr = "write" )
type DiskIOTime ¶
type DiskIOTime struct { metric.Float64Counter }
DiskIOTime is an instrument used to record metric values conforming to the "system.disk.io_time" semantic conventions. It represents the time disk spent activated.
func NewDiskIOTime ¶
func NewDiskIOTime( m metric.Meter, opt ...metric.Float64CounterOption, ) (DiskIOTime, error)
NewDiskIOTime returns a new DiskIOTime instrument.
func (DiskIOTime) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
The real elapsed time ("wall clock") used in the I/O path (time from operations running in parallel are not counted). Measured as:
- Linux: Field 13 from procfs-diskstats
- Windows: The complement of "Disk% Idle Time" performance counter: `uptime * (100 - "Disk\% Idle Time") / 100`
func (DiskIOTime) AttrDevice ¶
func (DiskIOTime) AttrDevice(val string) attribute.KeyValue
AttrDevice returns an optional attribute for the "system.device" semantic convention. It represents the device identifier.
func (DiskIOTime) Description ¶
func (DiskIOTime) Description() string
Description returns the semantic convention description of the instrument
func (DiskIOTime) Inst ¶
func (m DiskIOTime) Inst() metric.Float64Counter
Inst returns the underlying metric instrument.
func (DiskIOTime) Name ¶
func (DiskIOTime) Name() string
Name returns the semantic convention name of the instrument.
func (DiskIOTime) Unit ¶
func (DiskIOTime) Unit() string
Unit returns the semantic convention unit of the instrument
type DiskLimit ¶
type DiskLimit struct { metric.Int64UpDownCounter }
DiskLimit is an instrument used to record metric values conforming to the "system.disk.limit" semantic conventions. It represents the total storage capacity of the disk.
func NewDiskLimit ¶
NewDiskLimit returns a new DiskLimit instrument.
func (DiskLimit) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
func (DiskLimit) AttrDevice ¶
AttrDevice returns an optional attribute for the "system.device" semantic convention. It represents the device identifier.
func (DiskLimit) Description ¶
Description returns the semantic convention description of the instrument
func (DiskLimit) Inst ¶
func (m DiskLimit) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (DiskLimit) Name ¶
Name returns the semantic convention name of the instrument.
func (DiskLimit) Unit ¶
Unit returns the semantic convention unit of the instrument
type DiskMerged ¶
type DiskMerged struct { metric.Int64Counter }
DiskMerged is an instrument used to record metric values conforming to the "system.disk.merged" semantic conventions.
func NewDiskMerged ¶
func NewDiskMerged( m metric.Meter, opt ...metric.Int64CounterOption, ) (DiskMerged, error)
NewDiskMerged returns a new DiskMerged instrument.
func (DiskMerged) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
func (DiskMerged) AttrDevice ¶
func (DiskMerged) AttrDevice(val string) attribute.KeyValue
AttrDevice returns an optional attribute for the "system.device" semantic convention. It represents the device identifier.
func (DiskMerged) AttrDiskIODirection ¶
func (DiskMerged) AttrDiskIODirection(val DiskIODirectionAttr) attribute.KeyValue
AttrDiskIODirection returns an optional attribute for the "disk.io.direction" semantic convention. It represents the disk IO operation direction.
func (DiskMerged) Inst ¶
func (m DiskMerged) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (DiskMerged) Name ¶
func (DiskMerged) Name() string
Name returns the semantic convention name of the instrument.
func (DiskMerged) Unit ¶
func (DiskMerged) Unit() string
Unit returns the semantic convention unit of the instrument
type DiskOperationTime ¶
type DiskOperationTime struct { metric.Float64Counter }
DiskOperationTime is an instrument used to record metric values conforming to the "system.disk.operation_time" semantic conventions. It represents the sum of the time each operation took to complete.
func NewDiskOperationTime ¶
func NewDiskOperationTime( m metric.Meter, opt ...metric.Float64CounterOption, ) (DiskOperationTime, error)
NewDiskOperationTime returns a new DiskOperationTime instrument.
func (DiskOperationTime) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
Because it is the sum of time each request took, parallel-issued requests each contribute to make the count grow. Measured as:
- Linux: Fields 7 & 11 from procfs-diskstats
- Windows: "Avg. Disk sec/Read" perf counter multiplied by "Disk Reads/sec" perf counter (similar for Writes)
func (DiskOperationTime) AttrDevice ¶
func (DiskOperationTime) AttrDevice(val string) attribute.KeyValue
AttrDevice returns an optional attribute for the "system.device" semantic convention. It represents the device identifier.
func (DiskOperationTime) AttrDiskIODirection ¶
func (DiskOperationTime) AttrDiskIODirection(val DiskIODirectionAttr) attribute.KeyValue
AttrDiskIODirection returns an optional attribute for the "disk.io.direction" semantic convention. It represents the disk IO operation direction.
func (DiskOperationTime) Description ¶
func (DiskOperationTime) Description() string
Description returns the semantic convention description of the instrument
func (DiskOperationTime) Inst ¶
func (m DiskOperationTime) Inst() metric.Float64Counter
Inst returns the underlying metric instrument.
func (DiskOperationTime) Name ¶
func (DiskOperationTime) Name() string
Name returns the semantic convention name of the instrument.
func (DiskOperationTime) Unit ¶
func (DiskOperationTime) Unit() string
Unit returns the semantic convention unit of the instrument
type DiskOperations ¶
type DiskOperations struct { metric.Int64Counter }
DiskOperations is an instrument used to record metric values conforming to the "system.disk.operations" semantic conventions.
func NewDiskOperations ¶
func NewDiskOperations( m metric.Meter, opt ...metric.Int64CounterOption, ) (DiskOperations, error)
NewDiskOperations returns a new DiskOperations instrument.
func (DiskOperations) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
func (DiskOperations) AttrDevice ¶
func (DiskOperations) AttrDevice(val string) attribute.KeyValue
AttrDevice returns an optional attribute for the "system.device" semantic convention. It represents the device identifier.
func (DiskOperations) AttrDiskIODirection ¶
func (DiskOperations) AttrDiskIODirection(val DiskIODirectionAttr) attribute.KeyValue
AttrDiskIODirection returns an optional attribute for the "disk.io.direction" semantic convention. It represents the disk IO operation direction.
func (DiskOperations) Inst ¶
func (m DiskOperations) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (DiskOperations) Name ¶
func (DiskOperations) Name() string
Name returns the semantic convention name of the instrument.
func (DiskOperations) Unit ¶
func (DiskOperations) Unit() string
Unit returns the semantic convention unit of the instrument
type FilesystemLimit ¶
type FilesystemLimit struct { metric.Int64UpDownCounter }
FilesystemLimit is an instrument used to record metric values conforming to the "system.filesystem.limit" semantic conventions. It represents the total storage capacity of the filesystem.
func NewFilesystemLimit ¶
func NewFilesystemLimit( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (FilesystemLimit, error)
NewFilesystemLimit returns a new FilesystemLimit instrument.
func (FilesystemLimit) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
func (FilesystemLimit) AttrDevice ¶
func (FilesystemLimit) AttrDevice(val string) attribute.KeyValue
AttrDevice returns an optional attribute for the "system.device" semantic convention. It represents the identifier for the device where the filesystem resides.
func (FilesystemLimit) AttrFilesystemMode ¶
func (FilesystemLimit) AttrFilesystemMode(val string) attribute.KeyValue
AttrFilesystemMode returns an optional attribute for the "system.filesystem.mode" semantic convention. It represents the filesystem mode.
func (FilesystemLimit) AttrFilesystemMountpoint ¶
func (FilesystemLimit) AttrFilesystemMountpoint(val string) attribute.KeyValue
AttrFilesystemMountpoint returns an optional attribute for the "system.filesystem.mountpoint" semantic convention. It represents the filesystem mount path.
func (FilesystemLimit) AttrFilesystemType ¶
func (FilesystemLimit) AttrFilesystemType(val FilesystemTypeAttr) attribute.KeyValue
AttrFilesystemType returns an optional attribute for the "system.filesystem.type" semantic convention. It represents the filesystem type.
func (FilesystemLimit) Description ¶
func (FilesystemLimit) Description() string
Description returns the semantic convention description of the instrument
func (FilesystemLimit) Inst ¶
func (m FilesystemLimit) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (FilesystemLimit) Name ¶
func (FilesystemLimit) Name() string
Name returns the semantic convention name of the instrument.
func (FilesystemLimit) Unit ¶
func (FilesystemLimit) Unit() string
Unit returns the semantic convention unit of the instrument
type FilesystemStateAttr ¶
type FilesystemStateAttr string
FilesystemStateAttr is an attribute conforming to the system.filesystem.state semantic conventions. It represents the filesystem state.
var ( // FilesystemStateUsed is the none. FilesystemStateUsed FilesystemStateAttr = "used" // FilesystemStateFree is the none. FilesystemStateFree FilesystemStateAttr = "free" // FilesystemStateReserved is the none. FilesystemStateReserved FilesystemStateAttr = "reserved" )
type FilesystemTypeAttr ¶
type FilesystemTypeAttr string
FilesystemTypeAttr is an attribute conforming to the system.filesystem.type semantic conventions. It represents the filesystem type.
var ( // FilesystemTypeFat32 is the none. FilesystemTypeFat32 FilesystemTypeAttr = "fat32" // FilesystemTypeExfat is the none. FilesystemTypeExfat FilesystemTypeAttr = "exfat" // FilesystemTypeNtfs is the none. FilesystemTypeNtfs FilesystemTypeAttr = "ntfs" // FilesystemTypeRefs is the none. FilesystemTypeRefs FilesystemTypeAttr = "refs" // FilesystemTypeHfsplus is the none. FilesystemTypeHfsplus FilesystemTypeAttr = "hfsplus" // FilesystemTypeExt4 is the none. FilesystemTypeExt4 FilesystemTypeAttr = "ext4" )
type FilesystemUsage ¶
type FilesystemUsage struct { metric.Int64UpDownCounter }
FilesystemUsage is an instrument used to record metric values conforming to the "system.filesystem.usage" semantic conventions. It represents the reports a filesystem's space usage across different states.
func NewFilesystemUsage ¶
func NewFilesystemUsage( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (FilesystemUsage, error)
NewFilesystemUsage returns a new FilesystemUsage instrument.
func (FilesystemUsage) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
The sum of all `system.filesystem.usage` values over the different `system.filesystem.state` attributes SHOULD equal the total storage capacity of the filesystem, that is `system.filesystem.limit`.
func (FilesystemUsage) AttrDevice ¶
func (FilesystemUsage) AttrDevice(val string) attribute.KeyValue
AttrDevice returns an optional attribute for the "system.device" semantic convention. It represents the identifier for the device where the filesystem resides.
func (FilesystemUsage) AttrFilesystemMode ¶
func (FilesystemUsage) AttrFilesystemMode(val string) attribute.KeyValue
AttrFilesystemMode returns an optional attribute for the "system.filesystem.mode" semantic convention. It represents the filesystem mode.
func (FilesystemUsage) AttrFilesystemMountpoint ¶
func (FilesystemUsage) AttrFilesystemMountpoint(val string) attribute.KeyValue
AttrFilesystemMountpoint returns an optional attribute for the "system.filesystem.mountpoint" semantic convention. It represents the filesystem mount path.
func (FilesystemUsage) AttrFilesystemState ¶
func (FilesystemUsage) AttrFilesystemState(val FilesystemStateAttr) attribute.KeyValue
AttrFilesystemState returns an optional attribute for the "system.filesystem.state" semantic convention. It represents the filesystem state.
func (FilesystemUsage) AttrFilesystemType ¶
func (FilesystemUsage) AttrFilesystemType(val FilesystemTypeAttr) attribute.KeyValue
AttrFilesystemType returns an optional attribute for the "system.filesystem.type" semantic convention. It represents the filesystem type.
func (FilesystemUsage) Description ¶
func (FilesystemUsage) Description() string
Description returns the semantic convention description of the instrument
func (FilesystemUsage) Inst ¶
func (m FilesystemUsage) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (FilesystemUsage) Name ¶
func (FilesystemUsage) Name() string
Name returns the semantic convention name of the instrument.
func (FilesystemUsage) Unit ¶
func (FilesystemUsage) Unit() string
Unit returns the semantic convention unit of the instrument
type FilesystemUtilization ¶
type FilesystemUtilization struct { metric.Int64Gauge }
FilesystemUtilization is an instrument used to record metric values conforming to the "system.filesystem.utilization" semantic conventions.
func NewFilesystemUtilization ¶
func NewFilesystemUtilization( m metric.Meter, opt ...metric.Int64GaugeOption, ) (FilesystemUtilization, error)
NewFilesystemUtilization returns a new FilesystemUtilization instrument.
func (FilesystemUtilization) AttrDevice ¶
func (FilesystemUtilization) AttrDevice(val string) attribute.KeyValue
AttrDevice returns an optional attribute for the "system.device" semantic convention. It represents the identifier for the device where the filesystem resides.
func (FilesystemUtilization) AttrFilesystemMode ¶
func (FilesystemUtilization) AttrFilesystemMode(val string) attribute.KeyValue
AttrFilesystemMode returns an optional attribute for the "system.filesystem.mode" semantic convention. It represents the filesystem mode.
func (FilesystemUtilization) AttrFilesystemMountpoint ¶
func (FilesystemUtilization) AttrFilesystemMountpoint(val string) attribute.KeyValue
AttrFilesystemMountpoint returns an optional attribute for the "system.filesystem.mountpoint" semantic convention. It represents the filesystem mount path.
func (FilesystemUtilization) AttrFilesystemState ¶
func (FilesystemUtilization) AttrFilesystemState(val FilesystemStateAttr) attribute.KeyValue
AttrFilesystemState returns an optional attribute for the "system.filesystem.state" semantic convention. It represents the filesystem state.
func (FilesystemUtilization) AttrFilesystemType ¶
func (FilesystemUtilization) AttrFilesystemType(val FilesystemTypeAttr) attribute.KeyValue
AttrFilesystemType returns an optional attribute for the "system.filesystem.type" semantic convention. It represents the filesystem type.
func (FilesystemUtilization) Inst ¶
func (m FilesystemUtilization) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
func (FilesystemUtilization) Name ¶
func (FilesystemUtilization) Name() string
Name returns the semantic convention name of the instrument.
func (FilesystemUtilization) Record ¶
func (m FilesystemUtilization) Record( ctx context.Context, val int64, attrs ...attribute.KeyValue, )
Record records val to the current distribution.
All additional attrs passed are included in the recorded value.
func (FilesystemUtilization) Unit ¶
func (FilesystemUtilization) Unit() string
Unit returns the semantic convention unit of the instrument
type LinuxMemoryAvailable ¶
type LinuxMemoryAvailable struct { metric.Int64UpDownCounter }
LinuxMemoryAvailable is an instrument used to record metric values conforming to the "system.linux.memory.available" semantic conventions. It represents an estimate of how much memory is available for starting new applications, without causing swapping.
func NewLinuxMemoryAvailable ¶
func NewLinuxMemoryAvailable( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (LinuxMemoryAvailable, error)
NewLinuxMemoryAvailable returns a new LinuxMemoryAvailable instrument.
func (LinuxMemoryAvailable) Add ¶
Add adds incr to the existing count.
This is an alternative to `system.memory.usage` metric with `state=free`. Linux starting from 3.14 exports "available" memory. It takes "free" memory as a baseline, and then factors in kernel-specific values. This is supposed to be more accurate than just "free" memory. For reference, see the calculations here. See also `MemAvailable` in /proc/meminfo.
func (LinuxMemoryAvailable) Description ¶
func (LinuxMemoryAvailable) Description() string
Description returns the semantic convention description of the instrument
func (LinuxMemoryAvailable) Inst ¶
func (m LinuxMemoryAvailable) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (LinuxMemoryAvailable) Name ¶
func (LinuxMemoryAvailable) Name() string
Name returns the semantic convention name of the instrument.
func (LinuxMemoryAvailable) Unit ¶
func (LinuxMemoryAvailable) Unit() string
Unit returns the semantic convention unit of the instrument
type LinuxMemorySlabStateAttr ¶
type LinuxMemorySlabStateAttr string
LinuxMemorySlabStateAttr is an attribute conforming to the linux.memory.slab.state semantic conventions. It represents the Linux Slab memory state.
var ( // LinuxMemorySlabStateReclaimable is the none. LinuxMemorySlabStateReclaimable LinuxMemorySlabStateAttr = "reclaimable" // LinuxMemorySlabStateUnreclaimable is the none. LinuxMemorySlabStateUnreclaimable LinuxMemorySlabStateAttr = "unreclaimable" )
type LinuxMemorySlabUsage ¶
type LinuxMemorySlabUsage struct { metric.Int64UpDownCounter }
LinuxMemorySlabUsage is an instrument used to record metric values conforming to the "system.linux.memory.slab.usage" semantic conventions. It represents the reports the memory used by the Linux kernel for managing caches of frequently used objects.
func NewLinuxMemorySlabUsage ¶
func NewLinuxMemorySlabUsage( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (LinuxMemorySlabUsage, error)
NewLinuxMemorySlabUsage returns a new LinuxMemorySlabUsage instrument.
func (LinuxMemorySlabUsage) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
The sum over the `reclaimable` and `unreclaimable` state values in `linux.memory.slab.usage` SHOULD be equal to the total slab memory available on the system. Note that the total slab memory is not constant and may vary over time. See also the Slab allocator and `Slab` in /proc/meminfo.
func (LinuxMemorySlabUsage) AttrLinuxMemorySlabState ¶
func (LinuxMemorySlabUsage) AttrLinuxMemorySlabState(val LinuxMemorySlabStateAttr) attribute.KeyValue
AttrLinuxMemorySlabState returns an optional attribute for the "linux.memory.slab.state" semantic convention. It represents the Linux Slab memory state.
func (LinuxMemorySlabUsage) Description ¶
func (LinuxMemorySlabUsage) Description() string
Description returns the semantic convention description of the instrument
func (LinuxMemorySlabUsage) Inst ¶
func (m LinuxMemorySlabUsage) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (LinuxMemorySlabUsage) Name ¶
func (LinuxMemorySlabUsage) Name() string
Name returns the semantic convention name of the instrument.
func (LinuxMemorySlabUsage) Unit ¶
func (LinuxMemorySlabUsage) Unit() string
Unit returns the semantic convention unit of the instrument
type MemoryLimit ¶
type MemoryLimit struct { metric.Int64UpDownCounter }
MemoryLimit is an instrument used to record metric values conforming to the "system.memory.limit" semantic conventions. It represents the total memory available in the system.
func NewMemoryLimit ¶
func NewMemoryLimit( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (MemoryLimit, error)
NewMemoryLimit returns a new MemoryLimit instrument.
func (MemoryLimit) Add ¶
Add adds incr to the existing count.
Its value SHOULD equal the sum of `system.memory.state` over all states.
func (MemoryLimit) Description ¶
func (MemoryLimit) Description() string
Description returns the semantic convention description of the instrument
func (MemoryLimit) Inst ¶
func (m MemoryLimit) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (MemoryLimit) Name ¶
func (MemoryLimit) Name() string
Name returns the semantic convention name of the instrument.
func (MemoryLimit) Unit ¶
func (MemoryLimit) Unit() string
Unit returns the semantic convention unit of the instrument
type MemoryShared ¶
type MemoryShared struct { metric.Int64UpDownCounter }
MemoryShared is an instrument used to record metric values conforming to the "system.memory.shared" semantic conventions. It represents the shared memory used (mostly by tmpfs).
func NewMemoryShared ¶
func NewMemoryShared( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (MemoryShared, error)
NewMemoryShared returns a new MemoryShared instrument.
func (MemoryShared) Add ¶
Add adds incr to the existing count.
Equivalent of `shared` from `free` command or `Shmem` from `/proc/meminfo`"
func (MemoryShared) Description ¶
func (MemoryShared) Description() string
Description returns the semantic convention description of the instrument
func (MemoryShared) Inst ¶
func (m MemoryShared) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (MemoryShared) Name ¶
func (MemoryShared) Name() string
Name returns the semantic convention name of the instrument.
func (MemoryShared) Unit ¶
func (MemoryShared) Unit() string
Unit returns the semantic convention unit of the instrument
type MemoryStateAttr ¶
type MemoryStateAttr string
MemoryStateAttr is an attribute conforming to the system.memory.state semantic conventions. It represents the memory state.
var ( // MemoryStateUsed is the none. MemoryStateUsed MemoryStateAttr = "used" // MemoryStateFree is the none. MemoryStateFree MemoryStateAttr = "free" // MemoryStateBuffers is the none. MemoryStateBuffers MemoryStateAttr = "buffers" // MemoryStateCached is the none. MemoryStateCached MemoryStateAttr = "cached" )
type MemoryUsage ¶
type MemoryUsage struct { metric.Int64ObservableGauge }
MemoryUsage is an instrument used to record metric values conforming to the "system.memory.usage" semantic conventions. It represents the reports memory in use by state.
func NewMemoryUsage ¶
func NewMemoryUsage( m metric.Meter, opt ...metric.Int64ObservableGaugeOption, ) (MemoryUsage, error)
NewMemoryUsage returns a new MemoryUsage instrument.
func (MemoryUsage) AttrMemoryState ¶
func (MemoryUsage) AttrMemoryState(val MemoryStateAttr) attribute.KeyValue
AttrMemoryState returns an optional attribute for the "system.memory.state" semantic convention. It represents the memory state.
func (MemoryUsage) Description ¶
func (MemoryUsage) Description() string
Description returns the semantic convention description of the instrument
func (MemoryUsage) Inst ¶
func (m MemoryUsage) Inst() metric.Int64ObservableGauge
Inst returns the underlying metric instrument.
func (MemoryUsage) Name ¶
func (MemoryUsage) Name() string
Name returns the semantic convention name of the instrument.
func (MemoryUsage) Unit ¶
func (MemoryUsage) Unit() string
Unit returns the semantic convention unit of the instrument
type MemoryUtilization ¶
type MemoryUtilization struct { metric.Float64ObservableGauge }
MemoryUtilization is an instrument used to record metric values conforming to the "system.memory.utilization" semantic conventions.
func NewMemoryUtilization ¶
func NewMemoryUtilization( m metric.Meter, opt ...metric.Float64ObservableGaugeOption, ) (MemoryUtilization, error)
NewMemoryUtilization returns a new MemoryUtilization instrument.
func (MemoryUtilization) AttrMemoryState ¶
func (MemoryUtilization) AttrMemoryState(val MemoryStateAttr) attribute.KeyValue
AttrMemoryState returns an optional attribute for the "system.memory.state" semantic convention. It represents the memory state.
func (MemoryUtilization) Inst ¶
func (m MemoryUtilization) Inst() metric.Float64ObservableGauge
Inst returns the underlying metric instrument.
func (MemoryUtilization) Name ¶
func (MemoryUtilization) Name() string
Name returns the semantic convention name of the instrument.
func (MemoryUtilization) Unit ¶
func (MemoryUtilization) Unit() string
Unit returns the semantic convention unit of the instrument
type NetworkConnectionStateAttr ¶
type NetworkConnectionStateAttr string
NetworkConnectionStateAttr is an attribute conforming to the network.connection.state semantic conventions. It represents the state of network connection.
var ( // NetworkConnectionStateClosed is the none. NetworkConnectionStateClosed NetworkConnectionStateAttr = "closed" // NetworkConnectionStateCloseWait is the none. NetworkConnectionStateCloseWait NetworkConnectionStateAttr = "close_wait" // NetworkConnectionStateClosing is the none. NetworkConnectionStateClosing NetworkConnectionStateAttr = "closing" // NetworkConnectionStateEstablished is the none. NetworkConnectionStateEstablished NetworkConnectionStateAttr = "established" // NetworkConnectionStateFinWait1 is the none. NetworkConnectionStateFinWait1 NetworkConnectionStateAttr = "fin_wait_1" // NetworkConnectionStateFinWait2 is the none. NetworkConnectionStateFinWait2 NetworkConnectionStateAttr = "fin_wait_2" // NetworkConnectionStateLastAck is the none. NetworkConnectionStateLastAck NetworkConnectionStateAttr = "last_ack" // NetworkConnectionStateListen is the none. NetworkConnectionStateListen NetworkConnectionStateAttr = "listen" // NetworkConnectionStateSynReceived is the none. NetworkConnectionStateSynReceived NetworkConnectionStateAttr = "syn_received" // NetworkConnectionStateSynSent is the none. NetworkConnectionStateSynSent NetworkConnectionStateAttr = "syn_sent" // NetworkConnectionStateTimeWait is the none. NetworkConnectionStateTimeWait NetworkConnectionStateAttr = "time_wait" )
type NetworkConnections ¶
type NetworkConnections struct { metric.Int64UpDownCounter }
NetworkConnections is an instrument used to record metric values conforming to the "system.network.connections" semantic conventions.
func NewNetworkConnections ¶
func NewNetworkConnections( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (NetworkConnections, error)
NewNetworkConnections returns a new NetworkConnections instrument.
func (NetworkConnections) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
func (NetworkConnections) AttrNetworkConnectionState ¶
func (NetworkConnections) AttrNetworkConnectionState(val NetworkConnectionStateAttr) attribute.KeyValue
AttrNetworkConnectionState returns an optional attribute for the "network.connection.state" semantic convention. It represents the state of network connection.
func (NetworkConnections) AttrNetworkInterfaceName ¶
func (NetworkConnections) AttrNetworkInterfaceName(val string) attribute.KeyValue
AttrNetworkInterfaceName returns an optional attribute for the "network.interface.name" semantic convention. It represents the network interface name.
func (NetworkConnections) AttrNetworkTransport ¶
func (NetworkConnections) AttrNetworkTransport(val NetworkTransportAttr) attribute.KeyValue
AttrNetworkTransport returns an optional attribute for the "network.transport" semantic convention. It represents the OSI transport layer or inter-process communication method.
func (NetworkConnections) Inst ¶
func (m NetworkConnections) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (NetworkConnections) Name ¶
func (NetworkConnections) Name() string
Name returns the semantic convention name of the instrument.
func (NetworkConnections) Unit ¶
func (NetworkConnections) Unit() string
Unit returns the semantic convention unit of the instrument
type NetworkDropped ¶
type NetworkDropped struct { metric.Int64Counter }
NetworkDropped is an instrument used to record metric values conforming to the "system.network.dropped" semantic conventions. It represents the count of packets that are dropped or discarded even though there was no error.
func NewNetworkDropped ¶
func NewNetworkDropped( m metric.Meter, opt ...metric.Int64CounterOption, ) (NetworkDropped, error)
NewNetworkDropped returns a new NetworkDropped instrument.
func (NetworkDropped) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
Measured as:
- Linux: the `drop` column in `/proc/dev/net` (source)
- Windows: `InDiscards`/`OutDiscards` from `GetIfEntry2`
func (NetworkDropped) AttrNetworkIODirection ¶
func (NetworkDropped) 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 (NetworkDropped) AttrNetworkInterfaceName ¶
func (NetworkDropped) AttrNetworkInterfaceName(val string) attribute.KeyValue
AttrNetworkInterfaceName returns an optional attribute for the "network.interface.name" semantic convention. It represents the network interface name.
func (NetworkDropped) Description ¶
func (NetworkDropped) Description() string
Description returns the semantic convention description of the instrument
func (NetworkDropped) Inst ¶
func (m NetworkDropped) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (NetworkDropped) Name ¶
func (NetworkDropped) Name() string
Name returns the semantic convention name of the instrument.
func (NetworkDropped) Unit ¶
func (NetworkDropped) Unit() string
Unit returns the semantic convention unit of the instrument
type NetworkErrors ¶
type NetworkErrors struct { metric.Int64Counter }
NetworkErrors is an instrument used to record metric values conforming to the "system.network.errors" semantic conventions. It represents the count of network errors detected.
func NewNetworkErrors ¶
func NewNetworkErrors( m metric.Meter, opt ...metric.Int64CounterOption, ) (NetworkErrors, error)
NewNetworkErrors returns a new NetworkErrors instrument.
func (NetworkErrors) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
Measured as:
- Linux: the `errs` column in `/proc/dev/net` (source).
- Windows: `InErrors`/`OutErrors` from `GetIfEntry2`.
func (NetworkErrors) AttrNetworkIODirection ¶
func (NetworkErrors) 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 (NetworkErrors) AttrNetworkInterfaceName ¶
func (NetworkErrors) AttrNetworkInterfaceName(val string) attribute.KeyValue
AttrNetworkInterfaceName returns an optional attribute for the "network.interface.name" semantic convention. It represents the network interface name.
func (NetworkErrors) Description ¶
func (NetworkErrors) Description() string
Description returns the semantic convention description of the instrument
func (NetworkErrors) Inst ¶
func (m NetworkErrors) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (NetworkErrors) Name ¶
func (NetworkErrors) Name() string
Name returns the semantic convention name of the instrument.
func (NetworkErrors) Unit ¶
func (NetworkErrors) Unit() string
Unit returns the semantic convention unit of the instrument
type NetworkIO ¶
type NetworkIO struct { metric.Int64ObservableCounter }
NetworkIO is an instrument used to record metric values conforming to the "system.network.io" semantic conventions.
func NewNetworkIO ¶
NewNetworkIO returns a new NetworkIO instrument.
func (NetworkIO) AttrNetworkIODirection ¶
func (NetworkIO) 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 (NetworkIO) AttrNetworkInterfaceName ¶
AttrNetworkInterfaceName returns an optional attribute for the "network.interface.name" semantic convention. It represents the network interface name.
func (NetworkIO) Inst ¶
func (m NetworkIO) Inst() metric.Int64ObservableCounter
Inst returns the underlying metric instrument.
func (NetworkIO) Name ¶
Name returns the semantic convention name of the instrument.
func (NetworkIO) Unit ¶
Unit returns the semantic convention unit of the instrument
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 none. NetworkIODirectionTransmit NetworkIODirectionAttr = "transmit" // NetworkIODirectionReceive is the none. NetworkIODirectionReceive NetworkIODirectionAttr = "receive" )
type NetworkPackets ¶
type NetworkPackets struct { metric.Int64Counter }
NetworkPackets is an instrument used to record metric values conforming to the "system.network.packets" semantic conventions.
func NewNetworkPackets ¶
func NewNetworkPackets( m metric.Meter, opt ...metric.Int64CounterOption, ) (NetworkPackets, error)
NewNetworkPackets returns a new NetworkPackets instrument.
func (NetworkPackets) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
func (NetworkPackets) AttrDevice ¶
func (NetworkPackets) AttrDevice(val string) attribute.KeyValue
AttrDevice returns an optional attribute for the "system.device" semantic convention. It represents the device identifier.
func (NetworkPackets) AttrNetworkIODirection ¶
func (NetworkPackets) 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 (NetworkPackets) Inst ¶
func (m NetworkPackets) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (NetworkPackets) Name ¶
func (NetworkPackets) Name() string
Name returns the semantic convention name of the instrument.
func (NetworkPackets) Unit ¶
func (NetworkPackets) Unit() string
Unit returns the semantic convention unit of the instrument
type NetworkTransportAttr ¶
type NetworkTransportAttr string
NetworkTransportAttr is an attribute conforming to the network.transport semantic conventions. It represents the OSI transport layer or inter-process communication method.
var ( // NetworkTransportTCP is the TCP. NetworkTransportTCP NetworkTransportAttr = "tcp" // NetworkTransportUDP is the UDP. NetworkTransportUDP NetworkTransportAttr = "udp" // NetworkTransportPipe is the named or anonymous pipe. NetworkTransportPipe NetworkTransportAttr = "pipe" // NetworkTransportUnix is the unix domain socket. NetworkTransportUnix NetworkTransportAttr = "unix" // NetworkTransportQUIC is the QUIC. NetworkTransportQUIC NetworkTransportAttr = "quic" )
type PagingDirectionAttr ¶
type PagingDirectionAttr string
PagingDirectionAttr is an attribute conforming to the system.paging.direction semantic conventions. It represents the paging access direction.
var ( // PagingDirectionIn is the none. PagingDirectionIn PagingDirectionAttr = "in" // PagingDirectionOut is the none. PagingDirectionOut PagingDirectionAttr = "out" )
type PagingFaults ¶
type PagingFaults struct { metric.Int64Counter }
PagingFaults is an instrument used to record metric values conforming to the "system.paging.faults" semantic conventions.
func NewPagingFaults ¶
func NewPagingFaults( m metric.Meter, opt ...metric.Int64CounterOption, ) (PagingFaults, error)
NewPagingFaults returns a new PagingFaults instrument.
func (PagingFaults) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
func (PagingFaults) AttrPagingType ¶
func (PagingFaults) AttrPagingType(val PagingTypeAttr) attribute.KeyValue
AttrPagingType returns an optional attribute for the "system.paging.type" semantic convention. It represents the memory paging type.
func (PagingFaults) Inst ¶
func (m PagingFaults) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (PagingFaults) Name ¶
func (PagingFaults) Name() string
Name returns the semantic convention name of the instrument.
func (PagingFaults) Unit ¶
func (PagingFaults) Unit() string
Unit returns the semantic convention unit of the instrument
type PagingOperations ¶
type PagingOperations struct { metric.Int64Counter }
PagingOperations is an instrument used to record metric values conforming to the "system.paging.operations" semantic conventions.
func NewPagingOperations ¶
func NewPagingOperations( m metric.Meter, opt ...metric.Int64CounterOption, ) (PagingOperations, error)
NewPagingOperations returns a new PagingOperations instrument.
func (PagingOperations) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
func (PagingOperations) AttrPagingDirection ¶
func (PagingOperations) AttrPagingDirection(val PagingDirectionAttr) attribute.KeyValue
AttrPagingDirection returns an optional attribute for the "system.paging.direction" semantic convention. It represents the paging access direction.
func (PagingOperations) AttrPagingType ¶
func (PagingOperations) AttrPagingType(val PagingTypeAttr) attribute.KeyValue
AttrPagingType returns an optional attribute for the "system.paging.type" semantic convention. It represents the memory paging type.
func (PagingOperations) Inst ¶
func (m PagingOperations) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (PagingOperations) Name ¶
func (PagingOperations) Name() string
Name returns the semantic convention name of the instrument.
func (PagingOperations) Unit ¶
func (PagingOperations) Unit() string
Unit returns the semantic convention unit of the instrument
type PagingStateAttr ¶
type PagingStateAttr string
PagingStateAttr is an attribute conforming to the system.paging.state semantic conventions. It represents the memory paging state.
var ( // PagingStateUsed is the none. PagingStateUsed PagingStateAttr = "used" // PagingStateFree is the none. PagingStateFree PagingStateAttr = "free" )
type PagingTypeAttr ¶
type PagingTypeAttr string
PagingTypeAttr is an attribute conforming to the system.paging.type semantic conventions. It represents the memory paging type.
var ( // PagingTypeMajor is the none. PagingTypeMajor PagingTypeAttr = "major" // PagingTypeMinor is the none. PagingTypeMinor PagingTypeAttr = "minor" )
type PagingUsage ¶
type PagingUsage struct { metric.Int64UpDownCounter }
PagingUsage is an instrument used to record metric values conforming to the "system.paging.usage" semantic conventions. It represents the unix swap or windows pagefile usage.
func NewPagingUsage ¶
func NewPagingUsage( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (PagingUsage, error)
NewPagingUsage returns a new PagingUsage instrument.
func (PagingUsage) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
func (PagingUsage) AttrDevice ¶
func (PagingUsage) AttrDevice(val string) attribute.KeyValue
AttrDevice returns an optional attribute for the "system.device" semantic convention. It represents the unique identifier for the device responsible for managing paging operations.
func (PagingUsage) AttrPagingState ¶
func (PagingUsage) AttrPagingState(val PagingStateAttr) attribute.KeyValue
AttrPagingState returns an optional attribute for the "system.paging.state" semantic convention. It represents the memory paging state.
func (PagingUsage) Description ¶
func (PagingUsage) Description() string
Description returns the semantic convention description of the instrument
func (PagingUsage) Inst ¶
func (m PagingUsage) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (PagingUsage) Name ¶
func (PagingUsage) Name() string
Name returns the semantic convention name of the instrument.
func (PagingUsage) Unit ¶
func (PagingUsage) Unit() string
Unit returns the semantic convention unit of the instrument
type PagingUtilization ¶
type PagingUtilization struct { metric.Int64Gauge }
PagingUtilization is an instrument used to record metric values conforming to the "system.paging.utilization" semantic conventions.
func NewPagingUtilization ¶
func NewPagingUtilization( m metric.Meter, opt ...metric.Int64GaugeOption, ) (PagingUtilization, error)
NewPagingUtilization returns a new PagingUtilization instrument.
func (PagingUtilization) AttrDevice ¶
func (PagingUtilization) AttrDevice(val string) attribute.KeyValue
AttrDevice returns an optional attribute for the "system.device" semantic convention. It represents the unique identifier for the device responsible for managing paging operations.
func (PagingUtilization) AttrPagingState ¶
func (PagingUtilization) AttrPagingState(val PagingStateAttr) attribute.KeyValue
AttrPagingState returns an optional attribute for the "system.paging.state" semantic convention. It represents the memory paging state.
func (PagingUtilization) Inst ¶
func (m PagingUtilization) Inst() metric.Int64Gauge
Inst returns the underlying metric instrument.
func (PagingUtilization) Name ¶
func (PagingUtilization) Name() string
Name returns the semantic convention name of the instrument.
func (PagingUtilization) Record ¶
Record records val to the current distribution.
All additional attrs passed are included in the recorded value.
func (PagingUtilization) Unit ¶
func (PagingUtilization) Unit() string
Unit returns the semantic convention unit of the instrument
type ProcessCount ¶
type ProcessCount struct { metric.Int64UpDownCounter }
ProcessCount is an instrument used to record metric values conforming to the "system.process.count" semantic conventions. It represents the total number of processes in each state.
func NewProcessCount ¶
func NewProcessCount( m metric.Meter, opt ...metric.Int64UpDownCounterOption, ) (ProcessCount, error)
NewProcessCount returns a new ProcessCount instrument.
func (ProcessCount) Add ¶
Add adds incr to the existing count.
All additional attrs passed are included in the recorded value.
func (ProcessCount) AttrProcessStatus ¶
func (ProcessCount) AttrProcessStatus(val ProcessStatusAttr) attribute.KeyValue
AttrProcessStatus returns an optional attribute for the "system.process.status" semantic convention. It represents the process state, e.g., Linux Process State Codes.
func (ProcessCount) Description ¶
func (ProcessCount) Description() string
Description returns the semantic convention description of the instrument
func (ProcessCount) Inst ¶
func (m ProcessCount) Inst() metric.Int64UpDownCounter
Inst returns the underlying metric instrument.
func (ProcessCount) Name ¶
func (ProcessCount) Name() string
Name returns the semantic convention name of the instrument.
func (ProcessCount) Unit ¶
func (ProcessCount) Unit() string
Unit returns the semantic convention unit of the instrument
type ProcessCreated ¶
type ProcessCreated struct { metric.Int64Counter }
ProcessCreated is an instrument used to record metric values conforming to the "system.process.created" semantic conventions. It represents the total number of processes created over uptime of the host.
func NewProcessCreated ¶
func NewProcessCreated( m metric.Meter, opt ...metric.Int64CounterOption, ) (ProcessCreated, error)
NewProcessCreated returns a new ProcessCreated instrument.
func (ProcessCreated) Add ¶
Add adds incr to the existing count.
func (ProcessCreated) Description ¶
func (ProcessCreated) Description() string
Description returns the semantic convention description of the instrument
func (ProcessCreated) Inst ¶
func (m ProcessCreated) Inst() metric.Int64Counter
Inst returns the underlying metric instrument.
func (ProcessCreated) Name ¶
func (ProcessCreated) Name() string
Name returns the semantic convention name of the instrument.
func (ProcessCreated) Unit ¶
func (ProcessCreated) Unit() string
Unit returns the semantic convention unit of the instrument
type ProcessStatusAttr ¶
type ProcessStatusAttr string
ProcessStatusAttr is an attribute conforming to the system.process.status semantic conventions. It represents the process state, e.g., Linux Process State Codes.
var ( // ProcessStatusRunning is the none. ProcessStatusRunning ProcessStatusAttr = "running" // ProcessStatusSleeping is the none. ProcessStatusSleeping ProcessStatusAttr = "sleeping" // ProcessStatusStopped is the none. ProcessStatusStopped ProcessStatusAttr = "stopped" // ProcessStatusDefunct is the none. ProcessStatusDefunct ProcessStatusAttr = "defunct" )
type Uptime ¶
type Uptime struct { metric.Float64Gauge }
Uptime is an instrument used to record metric values conforming to the "system.uptime" semantic conventions. It represents the time the system has been running.
func NewUptime ¶
NewUptime returns a new Uptime instrument.
func (Uptime) Description ¶
Description returns the semantic convention description of the instrument
func (Uptime) Inst ¶
func (m Uptime) Inst() metric.Float64Gauge
Inst returns the underlying metric instrument.
func (Uptime) Name ¶
Name returns the semantic convention name of the instrument.
func (Uptime) Record ¶
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.
func (Uptime) Unit ¶
Unit returns the semantic convention unit of the instrument
Source Files ¶
metric.go
- Version
- v1.36.0 (latest)
- Published
- May 21, 2025
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 38 minutes ago –
Tools for package owners.