Documentation
¶
Overview ¶
Package metadata contains the autogenerated telemetry and build information for the receiver/oracledb component.
Index ¶
- Constants
- Variables
- type AttributeDestinationType
- type AttributeDiskIoBlockSize
- type AttributeDiskIoDirection
- type AttributeDiskIoType
- type AttributeNetworkIoDirection
- type AttributeOracledbBufferState
- type AttributeOracledbCallType
- type AttributeOracledbEnqueueType
- type AttributeOracledbParseResult
- type AttributeOracledbParseType
- type AttributeOracledbRedoRequestType
- type AttributeOracledbRedoRetryType
- type AttributeOracledbRedoType
- type AttributeOracledbScanMode
- type AttributeOracledbScanType
- type AttributeOracledbSessionType
- type AttributeOracledbSortType
- type EventConfig
- type EventsConfig
- type HostNameResourceAttributeConfig
- type LogBuilderOption
- type LogsBuilder
- func (lb *LogsBuilder) AppendLogRecord(lr plog.LogRecord)
- func (lb *LogsBuilder) Emit(options ...ResourceLogsOption) plog.Logs
- func (lb *LogsBuilder) EmitForResource(options ...ResourceLogsOption)
- func (lb *LogsBuilder) NewResourceBuilder() *ResourceBuilder
- func (lb *LogsBuilder) RecordDbServerQuerySampleEvent(ctx context.Context, timestamp pcommon.Timestamp, ...)
- func (lb *LogsBuilder) RecordDbServerSessionWaitSampleEvent(ctx context.Context, timestamp pcommon.Timestamp, ...)
- func (lb *LogsBuilder) RecordDbServerTopQueryEvent(ctx context.Context, timestamp pcommon.Timestamp, ...)
- type LogsBuilderConfig
- type MetricBuilderOption
- type MetricsBuilder
- func (mb *MetricsBuilder) Emit(options ...ResourceMetricsOption) pmetric.Metrics
- func (mb *MetricsBuilder) EmitForResource(options ...ResourceMetricsOption)
- func (mb *MetricsBuilder) NewResourceBuilder() *ResourceBuilder
- func (mb *MetricsBuilder) RecordOracledbBufferCacheBlockChangesDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbBufferCacheBlockGetsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbBufferCacheUtilizationDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbBufferInspectedDataPoint(ts pcommon.Timestamp, inputVal string, ...) error
- func (mb *MetricsBuilder) RecordOracledbBufferRequestsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbCPUTimeDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbCallCountDataPoint(ts pcommon.Timestamp, inputVal string, ...) error
- func (mb *MetricsBuilder) RecordOracledbCallRecursiveCPUTimeDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbCheckpointBuffersDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbCheckpointCompletedDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbConsistentGetsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbCursorCacheHitsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbCursorCacheSizeDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbCursorOpenDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbDataDictionaryHitRatioDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbDatabaseCPUUtilizationDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbDatabaseWaitUtilizationDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbDbBlockGetsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbDbTimeDataPoint(ts pcommon.Timestamp, val float64, ...)
- func (mb *MetricsBuilder) RecordOracledbDdlStatementsParallelizedDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbDmlLocksLimitDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbDmlLocksUsageDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbDmlStatementsParallelizedDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbEnqueueDeadlocksDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbEnqueueLocksLimitDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbEnqueueLocksUsageDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbEnqueueOperationsDataPoint(ts pcommon.Timestamp, inputVal string, ...) error
- func (mb *MetricsBuilder) RecordOracledbEnqueueResourcesLimitDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbEnqueueResourcesUsageDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbExchangeDeadlocksDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbExecutionUtilizationDataPoint(ts pcommon.Timestamp, val float64, ...)
- func (mb *MetricsBuilder) RecordOracledbExecutionsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbHardParsesDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbHostCPUUtilizationDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbLibraryCacheUtilizationDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbLobOperationsDataPoint(ts pcommon.Timestamp, inputVal string, ...) error
- func (mb *MetricsBuilder) RecordOracledbLogicalReadsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbLogonsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbParallelOperationsDowngraded1To25PctDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbParallelOperationsDowngraded25To50PctDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbParallelOperationsDowngraded50To75PctDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbParallelOperationsDowngraded75To99PctDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbParallelOperationsDowngradedToSerialDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbParallelOperationsNotDowngradedDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbParseCPUTimeDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbParseCallsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbParseElapsedTimeDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbParseRateDataPoint(ts pcommon.Timestamp, val float64, ...)
- func (mb *MetricsBuilder) RecordOracledbParseUtilizationDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbPgaMemoryDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbPhysicalIoCacheWritesDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbPhysicalIoRequestsDataPoint(ts pcommon.Timestamp, inputVal string, ...) error
- func (mb *MetricsBuilder) RecordOracledbPhysicalIoTransferredDataPoint(ts pcommon.Timestamp, inputVal string, ...) error
- func (mb *MetricsBuilder) RecordOracledbPhysicalReadIoRequestsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbPhysicalReadsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbPhysicalReadsDirectDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbPhysicalWriteIoRequestsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbPhysicalWritesDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbPhysicalWritesDirectDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbProcessesLimitDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbProcessesUsageDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbQueriesParallelizedDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbRecycleBinLimitDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbRedoAllocationUtilizationDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbRedoBlocksDataPoint(ts pcommon.Timestamp, inputVal string, ...) error
- func (mb *MetricsBuilder) RecordOracledbRedoOperationsDataPoint(ts pcommon.Timestamp, inputVal string, ...) error
- func (mb *MetricsBuilder) RecordOracledbRedoRequestsDataPoint(ts pcommon.Timestamp, inputVal string, ...) error
- func (mb *MetricsBuilder) RecordOracledbRedoRetriesDataPoint(ts pcommon.Timestamp, inputVal string, ...) error
- func (mb *MetricsBuilder) RecordOracledbRedoSizeDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbRedoTimeDataPoint(ts pcommon.Timestamp, val float64, ...)
- func (mb *MetricsBuilder) RecordOracledbSQLServiceResponseDurationDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbScanCountDataPoint(ts pcommon.Timestamp, inputVal string, ...) error
- func (mb *MetricsBuilder) RecordOracledbScanTableRowsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbSessionsLimitDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbSessionsUsageDataPoint(ts pcommon.Timestamp, inputVal string, sessionTypeAttributeValue string, ...) error
- func (mb *MetricsBuilder) RecordOracledbSharedPoolUtilizationDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbSortOperationsDataPoint(ts pcommon.Timestamp, inputVal string, ...) error
- func (mb *MetricsBuilder) RecordOracledbSortRatioDataPoint(ts pcommon.Timestamp, val float64, ...)
- func (mb *MetricsBuilder) RecordOracledbSortRowsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbSqlnetIoTransferredDataPoint(ts pcommon.Timestamp, inputVal string, ...) error
- func (mb *MetricsBuilder) RecordOracledbStorageUsageDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbStorageUtilizationDataPoint(ts pcommon.Timestamp, val float64)
- func (mb *MetricsBuilder) RecordOracledbTablespaceSizeLimitDataPoint(ts pcommon.Timestamp, val int64, tablespaceNameAttributeValue string)
- func (mb *MetricsBuilder) RecordOracledbTablespaceSizeUsageDataPoint(ts pcommon.Timestamp, val int64, tablespaceNameAttributeValue string)
- func (mb *MetricsBuilder) RecordOracledbTransactionsLimitDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbTransactionsUsageDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbUserCommitsDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) RecordOracledbUserRollbacksDataPoint(ts pcommon.Timestamp, inputVal string) error
- func (mb *MetricsBuilder) Reset(options ...MetricBuilderOption)
- type MetricsBuilderConfig
- type MetricsConfig
- type OracleDbHostingTypeResourceAttributeConfig
- type OracleDbOpenModeResourceAttributeConfig
- type OracleDbPdbResourceAttributeConfig
- type OracleDbRoleResourceAttributeConfig
- type OracleDbVersionResourceAttributeConfig
- type OracledbBufferCacheBlockChangesMetricConfig
- type OracledbBufferCacheBlockGetsMetricConfig
- type OracledbBufferCacheUtilizationMetricConfig
- type OracledbBufferInspectedMetricAttributeKey
- type OracledbBufferInspectedMetricConfig
- type OracledbBufferRequestsMetricConfig
- type OracledbCPUTimeMetricConfig
- type OracledbCallCountMetricAttributeKey
- type OracledbCallCountMetricConfig
- type OracledbCallRecursiveCPUTimeMetricConfig
- type OracledbCheckpointBuffersMetricConfig
- type OracledbCheckpointCompletedMetricConfig
- type OracledbConsistentGetsMetricConfig
- type OracledbCursorCacheHitsMetricConfig
- type OracledbCursorCacheSizeMetricConfig
- type OracledbCursorOpenMetricConfig
- type OracledbDataDictionaryHitRatioMetricConfig
- type OracledbDatabaseCPUUtilizationMetricConfig
- type OracledbDatabaseWaitUtilizationMetricConfig
- type OracledbDbBlockGetsMetricConfig
- type OracledbDbTimeMetricAttributeKey
- type OracledbDbTimeMetricConfig
- type OracledbDdlStatementsParallelizedMetricConfig
- type OracledbDmlLocksLimitMetricConfig
- type OracledbDmlLocksUsageMetricConfig
- type OracledbDmlStatementsParallelizedMetricConfig
- type OracledbEnqueueDeadlocksMetricConfig
- type OracledbEnqueueLocksLimitMetricConfig
- type OracledbEnqueueLocksUsageMetricConfig
- type OracledbEnqueueOperationsMetricAttributeKey
- type OracledbEnqueueOperationsMetricConfig
- type OracledbEnqueueResourcesLimitMetricConfig
- type OracledbEnqueueResourcesUsageMetricConfig
- type OracledbExchangeDeadlocksMetricConfig
- type OracledbExecutionUtilizationMetricAttributeKey
- type OracledbExecutionUtilizationMetricConfig
- type OracledbExecutionsMetricConfig
- type OracledbHardParsesMetricConfig
- type OracledbHostCPUUtilizationMetricConfig
- type OracledbInstanceNameResourceAttributeConfig
- type OracledbLibraryCacheUtilizationMetricConfig
- type OracledbLobOperationsMetricAttributeKey
- type OracledbLobOperationsMetricConfig
- type OracledbLogicalReadsMetricConfig
- type OracledbLogonsMetricConfig
- type OracledbParallelOperationsDowngraded1To25PctMetricConfig
- type OracledbParallelOperationsDowngraded25To50PctMetricConfig
- type OracledbParallelOperationsDowngraded50To75PctMetricConfig
- type OracledbParallelOperationsDowngraded75To99PctMetricConfig
- type OracledbParallelOperationsDowngradedToSerialMetricConfig
- type OracledbParallelOperationsNotDowngradedMetricConfig
- type OracledbParseCPUTimeMetricConfig
- type OracledbParseCallsMetricConfig
- type OracledbParseElapsedTimeMetricConfig
- type OracledbParseRateMetricAttributeKey
- type OracledbParseRateMetricConfig
- type OracledbParseUtilizationMetricConfig
- type OracledbPgaMemoryMetricConfig
- type OracledbPhysicalIoCacheWritesMetricConfig
- type OracledbPhysicalIoRequestsMetricAttributeKey
- type OracledbPhysicalIoRequestsMetricConfig
- type OracledbPhysicalIoTransferredMetricAttributeKey
- type OracledbPhysicalIoTransferredMetricConfig
- type OracledbPhysicalReadIoRequestsMetricConfig
- type OracledbPhysicalReadsDirectMetricConfig
- type OracledbPhysicalReadsMetricConfig
- type OracledbPhysicalWriteIoRequestsMetricConfig
- type OracledbPhysicalWritesDirectMetricConfig
- type OracledbPhysicalWritesMetricConfig
- type OracledbProcessesLimitMetricConfig
- type OracledbProcessesUsageMetricConfig
- type OracledbQueriesParallelizedMetricConfig
- type OracledbRecycleBinLimitMetricConfig
- type OracledbRedoAllocationUtilizationMetricConfig
- type OracledbRedoBlocksMetricAttributeKey
- type OracledbRedoBlocksMetricConfig
- type OracledbRedoOperationsMetricAttributeKey
- type OracledbRedoOperationsMetricConfig
- type OracledbRedoRequestsMetricAttributeKey
- type OracledbRedoRequestsMetricConfig
- type OracledbRedoRetriesMetricAttributeKey
- type OracledbRedoRetriesMetricConfig
- type OracledbRedoSizeMetricConfig
- type OracledbRedoTimeMetricAttributeKey
- type OracledbRedoTimeMetricConfig
- type OracledbSQLServiceResponseDurationMetricConfig
- type OracledbScanCountMetricAttributeKey
- type OracledbScanCountMetricConfig
- type OracledbScanTableRowsMetricConfig
- type OracledbSessionsLimitMetricConfig
- type OracledbSessionsUsageMetricAttributeKey
- type OracledbSessionsUsageMetricConfig
- type OracledbSharedPoolUtilizationMetricConfig
- type OracledbSortOperationsMetricAttributeKey
- type OracledbSortOperationsMetricConfig
- type OracledbSortRatioMetricAttributeKey
- type OracledbSortRatioMetricConfig
- type OracledbSortRowsMetricConfig
- type OracledbSqlnetIoTransferredMetricAttributeKey
- type OracledbSqlnetIoTransferredMetricConfig
- type OracledbStorageUsageMetricConfig
- type OracledbStorageUtilizationMetricConfig
- type OracledbTablespaceSizeLimitMetricAttributeKey
- type OracledbTablespaceSizeLimitMetricConfig
- type OracledbTablespaceSizeUsageMetricAttributeKey
- type OracledbTablespaceSizeUsageMetricConfig
- type OracledbTransactionsLimitMetricConfig
- type OracledbTransactionsUsageMetricConfig
- type OracledbUserCommitsMetricConfig
- type OracledbUserRollbacksMetricConfig
- type ResourceAttributesConfig
- type ResourceBuilder
- func (rb *ResourceBuilder) Emit() pcommon.Resource
- func (rb *ResourceBuilder) SetHostName(val string)
- func (rb *ResourceBuilder) SetOracleDbHostingType(val string)
- func (rb *ResourceBuilder) SetOracleDbOpenMode(val string)
- func (rb *ResourceBuilder) SetOracleDbPdb(val string)
- func (rb *ResourceBuilder) SetOracleDbRole(val string)
- func (rb *ResourceBuilder) SetOracleDbVersion(val string)
- func (rb *ResourceBuilder) SetOracledbInstanceName(val string)
- func (rb *ResourceBuilder) SetServiceInstanceID(val string)
- func (rb *ResourceBuilder) SetServiceName(val string)
- func (rb *ResourceBuilder) SetServiceNamespace(val string)
- type ResourceLogsOption
- type ResourceMetricsOption
- type ServiceInstanceIDResourceAttributeConfig
- type ServiceNameResourceAttributeConfig
- type ServiceNamespaceResourceAttributeConfig
Constants ¶
const ( AggregationStrategySum = "sum" AggregationStrategyAvg = "avg" AggregationStrategyMin = "min" AggregationStrategyMax = "max" )
const ( LogsStability = component.StabilityLevelDevelopment MetricsStability = component.StabilityLevelAlpha )
Variables ¶
var ( Type = component.MustNewType("oracledb") ScopeName = "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/oracledbreceiver" )
var MapAttributeDestinationType = map[string]AttributeDestinationType{ "client": AttributeDestinationTypeClient, "dblink": AttributeDestinationTypeDblink, }
MapAttributeDestinationType is a helper map of string to AttributeDestinationType attribute value.
var MapAttributeDiskIoBlockSize = map[string]AttributeDiskIoBlockSize{ "all": AttributeDiskIoBlockSizeAll, "multi": AttributeDiskIoBlockSizeMulti, }
MapAttributeDiskIoBlockSize is a helper map of string to AttributeDiskIoBlockSize attribute value.
var MapAttributeDiskIoDirection = map[string]AttributeDiskIoDirection{ "read": AttributeDiskIoDirectionRead, "write": AttributeDiskIoDirectionWrite, }
MapAttributeDiskIoDirection is a helper map of string to AttributeDiskIoDirection attribute value.
var MapAttributeDiskIoType = map[string]AttributeDiskIoType{ "buffered": AttributeDiskIoTypeBuffered, "total": AttributeDiskIoTypeTotal, }
MapAttributeDiskIoType is a helper map of string to AttributeDiskIoType attribute value.
var MapAttributeNetworkIoDirection = map[string]AttributeNetworkIoDirection{ "receive": AttributeNetworkIoDirectionReceive, "transmit": AttributeNetworkIoDirectionTransmit, }
MapAttributeNetworkIoDirection is a helper map of string to AttributeNetworkIoDirection attribute value.
var MapAttributeOracledbBufferState = map[string]AttributeOracledbBufferState{ "free": AttributeOracledbBufferStateFree, "dirty": AttributeOracledbBufferStateDirty, }
MapAttributeOracledbBufferState is a helper map of string to AttributeOracledbBufferState attribute value.
var MapAttributeOracledbCallType = map[string]AttributeOracledbCallType{ "recursive": AttributeOracledbCallTypeRecursive, "user": AttributeOracledbCallTypeUser, }
MapAttributeOracledbCallType is a helper map of string to AttributeOracledbCallType attribute value.
var MapAttributeOracledbEnqueueType = map[string]AttributeOracledbEnqueueType{ "conversions": AttributeOracledbEnqueueTypeConversions, "releases": AttributeOracledbEnqueueTypeReleases, "requests": AttributeOracledbEnqueueTypeRequests, "timeouts": AttributeOracledbEnqueueTypeTimeouts, "waits": AttributeOracledbEnqueueTypeWaits, }
MapAttributeOracledbEnqueueType is a helper map of string to AttributeOracledbEnqueueType attribute value.
var MapAttributeOracledbParseResult = map[string]AttributeOracledbParseResult{ "failure": AttributeOracledbParseResultFailure, }
MapAttributeOracledbParseResult is a helper map of string to AttributeOracledbParseResult attribute value.
var MapAttributeOracledbParseType = map[string]AttributeOracledbParseType{ "soft": AttributeOracledbParseTypeSoft, }
MapAttributeOracledbParseType is a helper map of string to AttributeOracledbParseType attribute value.
var MapAttributeOracledbRedoRequestType = map[string]AttributeOracledbRedoRequestType{ "log_space": AttributeOracledbRedoRequestTypeLogSpace, }
MapAttributeOracledbRedoRequestType is a helper map of string to AttributeOracledbRedoRequestType attribute value.
var MapAttributeOracledbRedoRetryType = map[string]AttributeOracledbRedoRetryType{ "buffer_allocation": AttributeOracledbRedoRetryTypeBufferAllocation, }
MapAttributeOracledbRedoRetryType is a helper map of string to AttributeOracledbRedoRetryType attribute value.
var MapAttributeOracledbRedoType = map[string]AttributeOracledbRedoType{ "write": AttributeOracledbRedoTypeWrite, "log_space_wait": AttributeOracledbRedoTypeLogSpaceWait, "sync": AttributeOracledbRedoTypeSync, }
MapAttributeOracledbRedoType is a helper map of string to AttributeOracledbRedoType attribute value.
var MapAttributeOracledbScanMode = map[string]AttributeOracledbScanMode{ "direct_read": AttributeOracledbScanModeDirectRead, "full": AttributeOracledbScanModeFull, "long_tables": AttributeOracledbScanModeLongTables, "rowid_ranges": AttributeOracledbScanModeRowidRanges, }
MapAttributeOracledbScanMode is a helper map of string to AttributeOracledbScanMode attribute value.
var MapAttributeOracledbScanType = map[string]AttributeOracledbScanType{ "index_fast_full": AttributeOracledbScanTypeIndexFastFull, "table": AttributeOracledbScanTypeTable, }
MapAttributeOracledbScanType is a helper map of string to AttributeOracledbScanType attribute value.
var MapAttributeOracledbSessionType = map[string]AttributeOracledbSessionType{ "foreground": AttributeOracledbSessionTypeForeground, }
MapAttributeOracledbSessionType is a helper map of string to AttributeOracledbSessionType attribute value.
var MapAttributeOracledbSortType = map[string]AttributeOracledbSortType{ "disk": AttributeOracledbSortTypeDisk, "memory": AttributeOracledbSortTypeMemory, }
MapAttributeOracledbSortType is a helper map of string to AttributeOracledbSortType attribute value.
var MetricsInfo = metricsInfo{ OracledbBufferInspected: metricInfo{ Name: "oracledb.buffer.inspected", Attributes: []string{"oracledb.buffer.state"}, }, OracledbBufferRequests: metricInfo{ Name: "oracledb.buffer.requests", }, OracledbBufferCacheBlockChanges: metricInfo{ Name: "oracledb.buffer_cache.block.changes", }, OracledbBufferCacheBlockGets: metricInfo{ Name: "oracledb.buffer_cache.block.gets", }, OracledbBufferCacheUtilization: metricInfo{ Name: "oracledb.buffer_cache.utilization", }, OracledbCallCount: metricInfo{ Name: "oracledb.call.count", Attributes: []string{"oracledb.call.type"}, }, OracledbCallRecursiveCPUTime: metricInfo{ Name: "oracledb.call.recursive.cpu.time", }, OracledbCheckpointBuffers: metricInfo{ Name: "oracledb.checkpoint.buffers", }, OracledbCheckpointCompleted: metricInfo{ Name: "oracledb.checkpoint.completed", }, OracledbConsistentGets: metricInfo{ Name: "oracledb.consistent_gets", }, OracledbCPUTime: metricInfo{ Name: "oracledb.cpu_time", }, OracledbCursorCacheHits: metricInfo{ Name: "oracledb.cursor.cache.hits", }, OracledbCursorCacheSize: metricInfo{ Name: "oracledb.cursor.cache.size", }, OracledbCursorOpen: metricInfo{ Name: "oracledb.cursor.open", }, OracledbDataDictionaryHitRatio: metricInfo{ Name: "oracledb.data_dictionary.hit_ratio", }, OracledbDatabaseCPUUtilization: metricInfo{ Name: "oracledb.database.cpu.utilization", }, OracledbDatabaseWaitUtilization: metricInfo{ Name: "oracledb.database.wait.utilization", }, OracledbDbTime: metricInfo{ Name: "oracledb.db.time", Attributes: []string{"oracledb.session.type"}, }, OracledbDbBlockGets: metricInfo{ Name: "oracledb.db_block_gets", }, OracledbDdlStatementsParallelized: metricInfo{ Name: "oracledb.ddl_statements_parallelized", }, OracledbDmlLocksLimit: metricInfo{ Name: "oracledb.dml_locks.limit", }, OracledbDmlLocksUsage: metricInfo{ Name: "oracledb.dml_locks.usage", }, OracledbDmlStatementsParallelized: metricInfo{ Name: "oracledb.dml_statements_parallelized", }, OracledbEnqueueOperations: metricInfo{ Name: "oracledb.enqueue.operations", Attributes: []string{"oracledb.enqueue.type"}, }, OracledbEnqueueDeadlocks: metricInfo{ Name: "oracledb.enqueue_deadlocks", }, OracledbEnqueueLocksLimit: metricInfo{ Name: "oracledb.enqueue_locks.limit", }, OracledbEnqueueLocksUsage: metricInfo{ Name: "oracledb.enqueue_locks.usage", }, OracledbEnqueueResourcesLimit: metricInfo{ Name: "oracledb.enqueue_resources.limit", }, OracledbEnqueueResourcesUsage: metricInfo{ Name: "oracledb.enqueue_resources.usage", }, OracledbExchangeDeadlocks: metricInfo{ Name: "oracledb.exchange_deadlocks", }, OracledbExecutionUtilization: metricInfo{ Name: "oracledb.execution.utilization", Attributes: []string{"oracledb.parse.type"}, }, OracledbExecutions: metricInfo{ Name: "oracledb.executions", }, OracledbHardParses: metricInfo{ Name: "oracledb.hard_parses", }, OracledbHostCPUUtilization: metricInfo{ Name: "oracledb.host.cpu.utilization", }, OracledbLibraryCacheUtilization: metricInfo{ Name: "oracledb.library_cache.utilization", }, OracledbLobOperations: metricInfo{ Name: "oracledb.lob.operations", Attributes: []string{"disk.io.direction"}, }, OracledbLogicalReads: metricInfo{ Name: "oracledb.logical_reads", }, OracledbLogons: metricInfo{ Name: "oracledb.logons", }, OracledbParallelOperationsDowngraded1To25Pct: metricInfo{ Name: "oracledb.parallel_operations_downgraded_1_to_25_pct", }, OracledbParallelOperationsDowngraded25To50Pct: metricInfo{ Name: "oracledb.parallel_operations_downgraded_25_to_50_pct", }, OracledbParallelOperationsDowngraded50To75Pct: metricInfo{ Name: "oracledb.parallel_operations_downgraded_50_to_75_pct", }, OracledbParallelOperationsDowngraded75To99Pct: metricInfo{ Name: "oracledb.parallel_operations_downgraded_75_to_99_pct", }, OracledbParallelOperationsDowngradedToSerial: metricInfo{ Name: "oracledb.parallel_operations_downgraded_to_serial", }, OracledbParallelOperationsNotDowngraded: metricInfo{ Name: "oracledb.parallel_operations_not_downgraded", }, OracledbParseCPUTime: metricInfo{ Name: "oracledb.parse.cpu.time", }, OracledbParseElapsedTime: metricInfo{ Name: "oracledb.parse.elapsed.time", }, OracledbParseRate: metricInfo{ Name: "oracledb.parse.rate", Attributes: []string{"oracledb.parse.result"}, }, OracledbParseUtilization: metricInfo{ Name: "oracledb.parse.utilization", }, OracledbParseCalls: metricInfo{ Name: "oracledb.parse_calls", }, OracledbPgaMemory: metricInfo{ Name: "oracledb.pga_memory", }, OracledbPhysicalIoCacheWrites: metricInfo{ Name: "oracledb.physical_io.cache_writes", }, OracledbPhysicalIoRequests: metricInfo{ Name: "oracledb.physical_io.requests", Attributes: []string{"disk.io.direction", "disk.io.block_size"}, }, OracledbPhysicalIoTransferred: metricInfo{ Name: "oracledb.physical_io.transferred", Attributes: []string{"disk.io.direction", "disk.io.type"}, }, OracledbPhysicalReadIoRequests: metricInfo{ Name: "oracledb.physical_read_io_requests", }, OracledbPhysicalReads: metricInfo{ Name: "oracledb.physical_reads", }, OracledbPhysicalReadsDirect: metricInfo{ Name: "oracledb.physical_reads_direct", }, OracledbPhysicalWriteIoRequests: metricInfo{ Name: "oracledb.physical_write_io_requests", }, OracledbPhysicalWrites: metricInfo{ Name: "oracledb.physical_writes", }, OracledbPhysicalWritesDirect: metricInfo{ Name: "oracledb.physical_writes_direct", }, OracledbProcessesLimit: metricInfo{ Name: "oracledb.processes.limit", }, OracledbProcessesUsage: metricInfo{ Name: "oracledb.processes.usage", }, OracledbQueriesParallelized: metricInfo{ Name: "oracledb.queries_parallelized", }, OracledbRecycleBinLimit: metricInfo{ Name: "oracledb.recycle_bin.limit", }, OracledbRedoBlocks: metricInfo{ Name: "oracledb.redo.blocks", Attributes: []string{"disk.io.direction"}, }, OracledbRedoOperations: metricInfo{ Name: "oracledb.redo.operations", Attributes: []string{"disk.io.direction"}, }, OracledbRedoRequests: metricInfo{ Name: "oracledb.redo.requests", Attributes: []string{"oracledb.redo.request.type"}, }, OracledbRedoRetries: metricInfo{ Name: "oracledb.redo.retries", Attributes: []string{"oracledb.redo.retry.type"}, }, OracledbRedoSize: metricInfo{ Name: "oracledb.redo.size", }, OracledbRedoTime: metricInfo{ Name: "oracledb.redo.time", Attributes: []string{"oracledb.redo.type"}, }, OracledbRedoAllocationUtilization: metricInfo{ Name: "oracledb.redo_allocation.utilization", }, OracledbScanCount: metricInfo{ Name: "oracledb.scan.count", Attributes: []string{"oracledb.scan.type", "oracledb.scan.mode"}, }, OracledbScanTableRows: metricInfo{ Name: "oracledb.scan.table.rows", }, OracledbSessionsLimit: metricInfo{ Name: "oracledb.sessions.limit", }, OracledbSessionsUsage: metricInfo{ Name: "oracledb.sessions.usage", Attributes: []string{"session_type", "session_status"}, }, OracledbSharedPoolUtilization: metricInfo{ Name: "oracledb.shared_pool.utilization", }, OracledbSortOperations: metricInfo{ Name: "oracledb.sort.operations", Attributes: []string{"oracledb.sort.type"}, }, OracledbSortRatio: metricInfo{ Name: "oracledb.sort.ratio", Attributes: []string{"oracledb.sort.type"}, }, OracledbSortRows: metricInfo{ Name: "oracledb.sort.rows", }, OracledbSQLServiceResponseDuration: metricInfo{ Name: "oracledb.sql_service.response.duration", }, OracledbSqlnetIoTransferred: metricInfo{ Name: "oracledb.sqlnet.io.transferred", Attributes: []string{"network.io.direction", "destination.type"}, }, OracledbStorageUsage: metricInfo{ Name: "oracledb.storage.usage", }, OracledbStorageUtilization: metricInfo{ Name: "oracledb.storage.utilization", }, OracledbTablespaceSizeLimit: metricInfo{ Name: "oracledb.tablespace_size.limit", Attributes: []string{"tablespace_name"}, }, OracledbTablespaceSizeUsage: metricInfo{ Name: "oracledb.tablespace_size.usage", Attributes: []string{"tablespace_name"}, }, OracledbTransactionsLimit: metricInfo{ Name: "oracledb.transactions.limit", }, OracledbTransactionsUsage: metricInfo{ Name: "oracledb.transactions.usage", }, OracledbUserCommits: metricInfo{ Name: "oracledb.user_commits", }, OracledbUserRollbacks: metricInfo{ Name: "oracledb.user_rollbacks", }, }
Functions ¶
This section is empty.
Types ¶
type AttributeDestinationType ¶ added in v0.154.0
type AttributeDestinationType int
AttributeDestinationType specifies the value destination.type attribute.
const ( AttributeDestinationTypeClient AttributeDestinationType AttributeDestinationTypeDblink )
func (AttributeDestinationType) String ¶ added in v0.154.0
func (av AttributeDestinationType) String() string
String returns the string representation of the AttributeDestinationType.
type AttributeDiskIoBlockSize ¶ added in v0.154.0
type AttributeDiskIoBlockSize int
AttributeDiskIoBlockSize specifies the value disk.io.block_size attribute.
const ( AttributeDiskIoBlockSizeAll AttributeDiskIoBlockSize AttributeDiskIoBlockSizeMulti )
func (AttributeDiskIoBlockSize) String ¶ added in v0.154.0
func (av AttributeDiskIoBlockSize) String() string
String returns the string representation of the AttributeDiskIoBlockSize.
type AttributeDiskIoDirection ¶ added in v0.154.0
type AttributeDiskIoDirection int
AttributeDiskIoDirection specifies the value disk.io.direction attribute.
const ( AttributeDiskIoDirectionRead AttributeDiskIoDirection AttributeDiskIoDirectionWrite )
func (AttributeDiskIoDirection) String ¶ added in v0.154.0
func (av AttributeDiskIoDirection) String() string
String returns the string representation of the AttributeDiskIoDirection.
type AttributeDiskIoType ¶ added in v0.154.0
type AttributeDiskIoType int
AttributeDiskIoType specifies the value disk.io.type attribute.
const ( AttributeDiskIoTypeBuffered AttributeDiskIoType AttributeDiskIoTypeTotal )
func (AttributeDiskIoType) String ¶ added in v0.154.0
func (av AttributeDiskIoType) String() string
String returns the string representation of the AttributeDiskIoType.
type AttributeNetworkIoDirection ¶ added in v0.154.0
type AttributeNetworkIoDirection int
AttributeNetworkIoDirection specifies the value network.io.direction attribute.
const ( AttributeNetworkIoDirectionReceive AttributeNetworkIoDirection AttributeNetworkIoDirectionTransmit )
func (AttributeNetworkIoDirection) String ¶ added in v0.154.0
func (av AttributeNetworkIoDirection) String() string
String returns the string representation of the AttributeNetworkIoDirection.
type AttributeOracledbBufferState ¶ added in v0.156.0
type AttributeOracledbBufferState int
AttributeOracledbBufferState specifies the value oracledb.buffer.state attribute.
const ( AttributeOracledbBufferStateFree AttributeOracledbBufferState AttributeOracledbBufferStateDirty )
func (AttributeOracledbBufferState) String ¶ added in v0.156.0
func (av AttributeOracledbBufferState) String() string
String returns the string representation of the AttributeOracledbBufferState.
type AttributeOracledbCallType ¶ added in v0.156.0
type AttributeOracledbCallType int
AttributeOracledbCallType specifies the value oracledb.call.type attribute.
const ( AttributeOracledbCallTypeRecursive AttributeOracledbCallType AttributeOracledbCallTypeUser )
func (AttributeOracledbCallType) String ¶ added in v0.156.0
func (av AttributeOracledbCallType) String() string
String returns the string representation of the AttributeOracledbCallType.
type AttributeOracledbEnqueueType ¶ added in v0.156.0
type AttributeOracledbEnqueueType int
AttributeOracledbEnqueueType specifies the value oracledb.enqueue.type attribute.
const ( AttributeOracledbEnqueueTypeConversions AttributeOracledbEnqueueType AttributeOracledbEnqueueTypeReleases AttributeOracledbEnqueueTypeRequests AttributeOracledbEnqueueTypeTimeouts AttributeOracledbEnqueueTypeWaits )
func (AttributeOracledbEnqueueType) String ¶ added in v0.156.0
func (av AttributeOracledbEnqueueType) String() string
String returns the string representation of the AttributeOracledbEnqueueType.
type AttributeOracledbParseResult ¶ added in v0.154.0
type AttributeOracledbParseResult int
AttributeOracledbParseResult specifies the value oracledb.parse.result attribute.
const (
AttributeOracledbParseResultFailure AttributeOracledbParseResult
)
func (AttributeOracledbParseResult) String ¶ added in v0.154.0
func (av AttributeOracledbParseResult) String() string
String returns the string representation of the AttributeOracledbParseResult.
type AttributeOracledbParseType ¶ added in v0.154.0
type AttributeOracledbParseType int
AttributeOracledbParseType specifies the value oracledb.parse.type attribute.
const (
AttributeOracledbParseTypeSoft AttributeOracledbParseType
)
func (AttributeOracledbParseType) String ¶ added in v0.154.0
func (av AttributeOracledbParseType) String() string
String returns the string representation of the AttributeOracledbParseType.
type AttributeOracledbRedoRequestType ¶ added in v0.156.0
type AttributeOracledbRedoRequestType int
AttributeOracledbRedoRequestType specifies the value oracledb.redo.request.type attribute.
const (
AttributeOracledbRedoRequestTypeLogSpace AttributeOracledbRedoRequestType
)
func (AttributeOracledbRedoRequestType) String ¶ added in v0.156.0
func (av AttributeOracledbRedoRequestType) String() string
String returns the string representation of the AttributeOracledbRedoRequestType.
type AttributeOracledbRedoRetryType ¶ added in v0.156.0
type AttributeOracledbRedoRetryType int
AttributeOracledbRedoRetryType specifies the value oracledb.redo.retry.type attribute.
const (
AttributeOracledbRedoRetryTypeBufferAllocation AttributeOracledbRedoRetryType
)
func (AttributeOracledbRedoRetryType) String ¶ added in v0.156.0
func (av AttributeOracledbRedoRetryType) String() string
String returns the string representation of the AttributeOracledbRedoRetryType.
type AttributeOracledbRedoType ¶ added in v0.156.0
type AttributeOracledbRedoType int
AttributeOracledbRedoType specifies the value oracledb.redo.type attribute.
const ( AttributeOracledbRedoTypeWrite AttributeOracledbRedoType AttributeOracledbRedoTypeLogSpaceWait AttributeOracledbRedoTypeSync )
func (AttributeOracledbRedoType) String ¶ added in v0.156.0
func (av AttributeOracledbRedoType) String() string
String returns the string representation of the AttributeOracledbRedoType.
type AttributeOracledbScanMode ¶ added in v0.156.0
type AttributeOracledbScanMode int
AttributeOracledbScanMode specifies the value oracledb.scan.mode attribute.
const ( AttributeOracledbScanModeDirectRead AttributeOracledbScanMode AttributeOracledbScanModeFull AttributeOracledbScanModeLongTables AttributeOracledbScanModeRowidRanges )
func (AttributeOracledbScanMode) String ¶ added in v0.156.0
func (av AttributeOracledbScanMode) String() string
String returns the string representation of the AttributeOracledbScanMode.
type AttributeOracledbScanType ¶ added in v0.156.0
type AttributeOracledbScanType int
AttributeOracledbScanType specifies the value oracledb.scan.type attribute.
const ( AttributeOracledbScanTypeIndexFastFull AttributeOracledbScanType AttributeOracledbScanTypeTable )
func (AttributeOracledbScanType) String ¶ added in v0.156.0
func (av AttributeOracledbScanType) String() string
String returns the string representation of the AttributeOracledbScanType.
type AttributeOracledbSessionType ¶ added in v0.156.0
type AttributeOracledbSessionType int
AttributeOracledbSessionType specifies the value oracledb.session.type attribute.
const (
AttributeOracledbSessionTypeForeground AttributeOracledbSessionType
)
func (AttributeOracledbSessionType) String ¶ added in v0.156.0
func (av AttributeOracledbSessionType) String() string
String returns the string representation of the AttributeOracledbSessionType.
type AttributeOracledbSortType ¶ added in v0.154.0
type AttributeOracledbSortType int
AttributeOracledbSortType specifies the value oracledb.sort.type attribute.
const ( AttributeOracledbSortTypeDisk AttributeOracledbSortType AttributeOracledbSortTypeMemory )
func (AttributeOracledbSortType) String ¶ added in v0.154.0
func (av AttributeOracledbSortType) String() string
String returns the string representation of the AttributeOracledbSortType.
type EventConfig ¶ added in v0.131.0
type EventConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
EventConfig provides common config for a particular event.
type EventsConfig ¶ added in v0.131.0
type EventsConfig struct {
DbServerQuerySample EventConfig `mapstructure:"db.server.query_sample"`
DbServerSessionWaitSample EventConfig `mapstructure:"db.server.session.wait_sample"`
DbServerTopQuery EventConfig `mapstructure:"db.server.top_query"`
}
EventsConfig provides config for oracledb events.
func DefaultEventsConfig ¶ added in v0.131.0
func DefaultEventsConfig() EventsConfig
type HostNameResourceAttributeConfig ¶ added in v0.156.0
type HostNameResourceAttributeConfig struct {
Enabled bool `mapstructure:"enabled"`
// OverrideValue allows users to override the value of this resource attribute.
OverrideValue *string `mapstructure:"override_value"`
// Experimental: MetricsInclude defines a list of filters for attribute values.
// If the list is not empty, only metrics with matching resource attribute values will be emitted.
MetricsInclude []filter.Config `mapstructure:"metrics_include"`
// Experimental: MetricsExclude defines a list of filters for attribute values.
// If the list is not empty, metrics with matching resource attribute values will not be emitted.
// MetricsInclude has higher priority than MetricsExclude.
MetricsExclude []filter.Config `mapstructure:"metrics_exclude"`
// Experimental: EventsInclude defines a list of filters for attribute values.
// If the list is not empty, only events with matching resource attribute values will be emitted.
EventsInclude []filter.Config `mapstructure:"events_include"`
// Experimental: EventsExclude defines a list of filters for attribute values.
// If the list is not empty, events with matching resource attribute values will not be emitted.
// EventsInclude has higher priority than EventsExclude.
EventsExclude []filter.Config `mapstructure:"events_exclude"`
// contains filtered or unexported fields
}
HostNameResourceAttributeConfig provides config for the host.name resource attribute.
type LogBuilderOption ¶ added in v0.131.0
type LogBuilderOption interface {
// contains filtered or unexported methods
}
LogBuilderOption applies changes to default logs builder.
type LogsBuilder ¶ added in v0.131.0
type LogsBuilder struct {
// contains filtered or unexported fields
}
LogsBuilder provides an interface for scrapers to report logs while taking care of all the transformations required to produce log representation defined in metadata and user config.
func NewLogsBuilder ¶ added in v0.131.0
func NewLogsBuilder(lbc LogsBuilderConfig, settings receiver.Settings) *LogsBuilder
func (*LogsBuilder) AppendLogRecord ¶ added in v0.131.0
func (lb *LogsBuilder) AppendLogRecord(lr plog.LogRecord)
AppendLogRecord adds a log record to the logs builder.
func (*LogsBuilder) Emit ¶ added in v0.131.0
func (lb *LogsBuilder) Emit(options ...ResourceLogsOption) plog.Logs
Emit returns all the logs accumulated by the logs builder and updates the internal state to be ready for recording another set of logs. This function will be responsible for applying all the transformations required to produce logs representation defined in metadata and user config.
func (*LogsBuilder) EmitForResource ¶ added in v0.131.0
func (lb *LogsBuilder) EmitForResource(options ...ResourceLogsOption)
EmitForResource saves all the generated logs under a new resource and updates the internal state to be ready for recording another set of log records as part of another resource. This function can be helpful when one scraper needs to emit logs from several resources. Otherwise calling this function is not required, just `Emit` function can be called instead. Resource attributes should be provided as ResourceLogsOption arguments.
func (*LogsBuilder) NewResourceBuilder ¶ added in v0.131.0
func (lb *LogsBuilder) NewResourceBuilder() *ResourceBuilder
NewResourceBuilder returns a new resource builder that should be used to build a resource associated with for the emitted logs.
func (*LogsBuilder) RecordDbServerQuerySampleEvent ¶ added in v0.131.0
func (lb *LogsBuilder) RecordDbServerQuerySampleEvent(ctx context.Context, timestamp pcommon.Timestamp, dbQueryTextAttributeValue string, dbSystemNameAttributeValue string, userNameAttributeValue string, dbNamespaceAttributeValue string, oracleDbServiceAttributeValue string, clientAddressAttributeValue string, clientPortAttributeValue int64, networkPeerAddressAttributeValue string, networkPeerPortAttributeValue int64, oracledbPlanHashValueAttributeValue string, oracledbSQLIDAttributeValue string, oracledbChildNumberAttributeValue string, oracledbChildAddressAttributeValue string, oracledbSidAttributeValue string, oracledbSerialAttributeValue string, oracledbProcessAttributeValue string, oracledbSchemanameAttributeValue string, oracledbProgramAttributeValue string, oracledbModuleAttributeValue string, oracledbStatusAttributeValue string, oracledbStateAttributeValue string, oracledbWaitClassAttributeValue string, oracledbEventAttributeValue string, oracledbQueryWaitTimeAttributeValue float64, oracledbProcedureIDAttributeValue int64, oracledbProcedureNameAttributeValue string, oracledbProcedureTypeAttributeValue string, oracledbOsuserAttributeValue string, oracledbDurationSecAttributeValue float64, dbQueryCommentTagsAttributeValue string, oracledbQueryStartedAttributeValue string, oracledbSessionStartedAttributeValue string, oracledbSessionDurationAttributeValue float64, oracledbBlockingBlockerSidAttributeValue string, oracledbBlockingBlockerRootSidAttributeValue string, oracledbBlockingBlockerStateAttributeValue string, oracledbBlockingStartTimeAttributeValue string, oracledbBlockingWaitDurationAttributeValue int64, oracledbBlockingLockModeAttributeValue string, oracledbBlockingLockTypeAttributeValue string, oracledbBlockingObjectOwnerAttributeValue string, oracledbBlockingObjectNameAttributeValue string)
RecordDbServerQuerySampleEvent adds a log record of db.server.query_sample event.
func (*LogsBuilder) RecordDbServerSessionWaitSampleEvent ¶ added in v0.154.0
func (lb *LogsBuilder) RecordDbServerSessionWaitSampleEvent(ctx context.Context, timestamp pcommon.Timestamp, oracledbSidAttributeValue string, oracledbSerialAttributeValue string, oracledbEventAttributeValue string, oracledbWaitClassAttributeValue string, oracledbWaitCountAttributeValue int64, oracledbWaitDurationAttributeValue float64)
RecordDbServerSessionWaitSampleEvent adds a log record of db.server.session.wait_sample event.
func (*LogsBuilder) RecordDbServerTopQueryEvent ¶ added in v0.131.0
func (lb *LogsBuilder) RecordDbServerTopQueryEvent(ctx context.Context, timestamp pcommon.Timestamp, dbSystemNameAttributeValue string, dbServerNameAttributeValue string, dbNamespaceAttributeValue string, oracleDbServiceAttributeValue string, dbQueryTextAttributeValue string, oracledbQueryPlanAttributeValue string, oracledbSQLIDAttributeValue string, oracledbChildNumberAttributeValue string, oracledbChildAddressAttributeValue string, oracledbApplicationWaitTimeAttributeValue float64, oracledbBufferGetsAttributeValue int64, oracledbClusterWaitTimeAttributeValue float64, oracledbCommandTypeAttributeValue int64, oracledbConcurrencyWaitTimeAttributeValue float64, oracledbCPUTimeAttributeValue float64, oracledbDirectReadsAttributeValue int64, oracledbDirectWritesAttributeValue int64, oracledbDiskReadsAttributeValue int64, oracledbElapsedTimeAttributeValue float64, oracledbExecutionsAttributeValue int64, oracledbPhysicalReadBytesAttributeValue int64, oracledbPhysicalReadRequestsAttributeValue int64, oracledbPhysicalWriteBytesAttributeValue int64, oracledbPhysicalWriteRequestsAttributeValue int64, oracledbRowsProcessedAttributeValue int64, oracledbUserIoWaitTimeAttributeValue float64, oracledbProcedureExecutionCountAttributeValue int64, oracledbProcedureIDAttributeValue int64, oracledbProcedureNameAttributeValue string, oracledbProcedureTypeAttributeValue string, dbQueryCommentTagsAttributeValue string, oracledbPlanHashValueAttributeValue string, oracledbPlanFirstLoadAttributeValue string, oracledbPlanLastLoadAttributeValue string)
RecordDbServerTopQueryEvent adds a log record of db.server.top_query event.
type LogsBuilderConfig ¶ added in v0.131.0
type LogsBuilderConfig struct {
Events EventsConfig `mapstructure:"events"`
ResourceAttributes ResourceAttributesConfig `mapstructure:"resource_attributes"`
}
LogsBuilderConfig is a configuration for oracledb logs builder.
func DefaultLogsBuilderConfig ¶ added in v0.131.0
func DefaultLogsBuilderConfig() LogsBuilderConfig
type MetricBuilderOption ¶ added in v0.110.0
type MetricBuilderOption interface {
// contains filtered or unexported methods
}
MetricBuilderOption applies changes to default metrics builder.
func WithStartTime ¶
func WithStartTime(startTime pcommon.Timestamp) MetricBuilderOption
WithStartTime sets startTime on the metrics builder.
type MetricsBuilder ¶
type MetricsBuilder struct {
// contains filtered or unexported fields
}
MetricsBuilder provides an interface for scrapers to report metrics while taking care of all the transformations required to produce metric representation defined in metadata and user config.
func NewMetricsBuilder ¶
func NewMetricsBuilder(mbc MetricsBuilderConfig, settings receiver.Settings, options ...MetricBuilderOption) *MetricsBuilder
func (*MetricsBuilder) Emit ¶
func (mb *MetricsBuilder) Emit(options ...ResourceMetricsOption) pmetric.Metrics
Emit returns all the metrics accumulated by the metrics builder and updates the internal state to be ready for recording another set of metrics. This function will be responsible for applying all the transformations required to produce metric representation defined in metadata and user config, e.g. delta or cumulative.
func (*MetricsBuilder) EmitForResource ¶
func (mb *MetricsBuilder) EmitForResource(options ...ResourceMetricsOption)
EmitForResource saves all the generated metrics under a new resource and updates the internal state to be ready for recording another set of data points as part of another resource. This function can be helpful when one scraper needs to emit metrics from several resources. Otherwise calling this function is not required, just `Emit` function can be called instead. Resource attributes should be provided as ResourceMetricsOption arguments.
func (*MetricsBuilder) NewResourceBuilder ¶ added in v0.83.0
func (mb *MetricsBuilder) NewResourceBuilder() *ResourceBuilder
NewResourceBuilder returns a new resource builder that should be used to build a resource associated with for the emitted metrics.
func (*MetricsBuilder) RecordOracledbBufferCacheBlockChangesDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbBufferCacheBlockChangesDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbBufferCacheBlockChangesDataPoint adds a data point to oracledb.buffer_cache.block.changes metric.
func (*MetricsBuilder) RecordOracledbBufferCacheBlockGetsDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbBufferCacheBlockGetsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbBufferCacheBlockGetsDataPoint adds a data point to oracledb.buffer_cache.block.gets metric.
func (*MetricsBuilder) RecordOracledbBufferCacheUtilizationDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbBufferCacheUtilizationDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbBufferCacheUtilizationDataPoint adds a data point to oracledb.buffer_cache.utilization metric.
func (*MetricsBuilder) RecordOracledbBufferInspectedDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbBufferInspectedDataPoint(ts pcommon.Timestamp, inputVal string, oracledbBufferStateAttributeValue AttributeOracledbBufferState) error
RecordOracledbBufferInspectedDataPoint adds a data point to oracledb.buffer.inspected metric.
func (*MetricsBuilder) RecordOracledbBufferRequestsDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbBufferRequestsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbBufferRequestsDataPoint adds a data point to oracledb.buffer.requests metric.
func (*MetricsBuilder) RecordOracledbCPUTimeDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbCPUTimeDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbCPUTimeDataPoint adds a data point to oracledb.cpu_time metric.
func (*MetricsBuilder) RecordOracledbCallCountDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbCallCountDataPoint(ts pcommon.Timestamp, inputVal string, oracledbCallTypeAttributeValue AttributeOracledbCallType) error
RecordOracledbCallCountDataPoint adds a data point to oracledb.call.count metric.
func (*MetricsBuilder) RecordOracledbCallRecursiveCPUTimeDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbCallRecursiveCPUTimeDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbCallRecursiveCPUTimeDataPoint adds a data point to oracledb.call.recursive.cpu.time metric.
func (*MetricsBuilder) RecordOracledbCheckpointBuffersDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbCheckpointBuffersDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbCheckpointBuffersDataPoint adds a data point to oracledb.checkpoint.buffers metric.
func (*MetricsBuilder) RecordOracledbCheckpointCompletedDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbCheckpointCompletedDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbCheckpointCompletedDataPoint adds a data point to oracledb.checkpoint.completed metric.
func (*MetricsBuilder) RecordOracledbConsistentGetsDataPoint ¶ added in v0.78.0
func (mb *MetricsBuilder) RecordOracledbConsistentGetsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbConsistentGetsDataPoint adds a data point to oracledb.consistent_gets metric.
func (*MetricsBuilder) RecordOracledbCursorCacheHitsDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbCursorCacheHitsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbCursorCacheHitsDataPoint adds a data point to oracledb.cursor.cache.hits metric.
func (*MetricsBuilder) RecordOracledbCursorCacheSizeDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbCursorCacheSizeDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbCursorCacheSizeDataPoint adds a data point to oracledb.cursor.cache.size metric.
func (*MetricsBuilder) RecordOracledbCursorOpenDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbCursorOpenDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbCursorOpenDataPoint adds a data point to oracledb.cursor.open metric.
func (*MetricsBuilder) RecordOracledbDataDictionaryHitRatioDataPoint ¶ added in v0.153.0
func (mb *MetricsBuilder) RecordOracledbDataDictionaryHitRatioDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbDataDictionaryHitRatioDataPoint adds a data point to oracledb.data_dictionary.hit_ratio metric.
func (*MetricsBuilder) RecordOracledbDatabaseCPUUtilizationDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbDatabaseCPUUtilizationDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbDatabaseCPUUtilizationDataPoint adds a data point to oracledb.database.cpu.utilization metric.
func (*MetricsBuilder) RecordOracledbDatabaseWaitUtilizationDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbDatabaseWaitUtilizationDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbDatabaseWaitUtilizationDataPoint adds a data point to oracledb.database.wait.utilization metric.
func (*MetricsBuilder) RecordOracledbDbBlockGetsDataPoint ¶ added in v0.78.0
func (mb *MetricsBuilder) RecordOracledbDbBlockGetsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbDbBlockGetsDataPoint adds a data point to oracledb.db_block_gets metric.
func (*MetricsBuilder) RecordOracledbDbTimeDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbDbTimeDataPoint(ts pcommon.Timestamp, val float64, oracledbSessionTypeAttributeValue AttributeOracledbSessionType)
RecordOracledbDbTimeDataPoint adds a data point to oracledb.db.time metric.
func (*MetricsBuilder) RecordOracledbDdlStatementsParallelizedDataPoint ¶ added in v0.124.0
func (mb *MetricsBuilder) RecordOracledbDdlStatementsParallelizedDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbDdlStatementsParallelizedDataPoint adds a data point to oracledb.ddl_statements_parallelized metric.
func (*MetricsBuilder) RecordOracledbDmlLocksLimitDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbDmlLocksLimitDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbDmlLocksLimitDataPoint adds a data point to oracledb.dml_locks.limit metric.
func (*MetricsBuilder) RecordOracledbDmlLocksUsageDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbDmlLocksUsageDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbDmlLocksUsageDataPoint adds a data point to oracledb.dml_locks.usage metric.
func (*MetricsBuilder) RecordOracledbDmlStatementsParallelizedDataPoint ¶ added in v0.124.0
func (mb *MetricsBuilder) RecordOracledbDmlStatementsParallelizedDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbDmlStatementsParallelizedDataPoint adds a data point to oracledb.dml_statements_parallelized metric.
func (*MetricsBuilder) RecordOracledbEnqueueDeadlocksDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbEnqueueDeadlocksDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbEnqueueDeadlocksDataPoint adds a data point to oracledb.enqueue_deadlocks metric.
func (*MetricsBuilder) RecordOracledbEnqueueLocksLimitDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbEnqueueLocksLimitDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbEnqueueLocksLimitDataPoint adds a data point to oracledb.enqueue_locks.limit metric.
func (*MetricsBuilder) RecordOracledbEnqueueLocksUsageDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbEnqueueLocksUsageDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbEnqueueLocksUsageDataPoint adds a data point to oracledb.enqueue_locks.usage metric.
func (*MetricsBuilder) RecordOracledbEnqueueOperationsDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbEnqueueOperationsDataPoint(ts pcommon.Timestamp, inputVal string, oracledbEnqueueTypeAttributeValue AttributeOracledbEnqueueType) error
RecordOracledbEnqueueOperationsDataPoint adds a data point to oracledb.enqueue.operations metric.
func (*MetricsBuilder) RecordOracledbEnqueueResourcesLimitDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbEnqueueResourcesLimitDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbEnqueueResourcesLimitDataPoint adds a data point to oracledb.enqueue_resources.limit metric.
func (*MetricsBuilder) RecordOracledbEnqueueResourcesUsageDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbEnqueueResourcesUsageDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbEnqueueResourcesUsageDataPoint adds a data point to oracledb.enqueue_resources.usage metric.
func (*MetricsBuilder) RecordOracledbExchangeDeadlocksDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbExchangeDeadlocksDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbExchangeDeadlocksDataPoint adds a data point to oracledb.exchange_deadlocks metric.
func (*MetricsBuilder) RecordOracledbExecutionUtilizationDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbExecutionUtilizationDataPoint(ts pcommon.Timestamp, val float64, oracledbParseTypeAttributeValue AttributeOracledbParseType)
RecordOracledbExecutionUtilizationDataPoint adds a data point to oracledb.execution.utilization metric.
func (*MetricsBuilder) RecordOracledbExecutionsDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbExecutionsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbExecutionsDataPoint adds a data point to oracledb.executions metric.
func (*MetricsBuilder) RecordOracledbHardParsesDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbHardParsesDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbHardParsesDataPoint adds a data point to oracledb.hard_parses metric.
func (*MetricsBuilder) RecordOracledbHostCPUUtilizationDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbHostCPUUtilizationDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbHostCPUUtilizationDataPoint adds a data point to oracledb.host.cpu.utilization metric.
func (*MetricsBuilder) RecordOracledbLibraryCacheUtilizationDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbLibraryCacheUtilizationDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbLibraryCacheUtilizationDataPoint adds a data point to oracledb.library_cache.utilization metric.
func (*MetricsBuilder) RecordOracledbLobOperationsDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbLobOperationsDataPoint(ts pcommon.Timestamp, inputVal string, diskIoDirectionAttributeValue AttributeDiskIoDirection) error
RecordOracledbLobOperationsDataPoint adds a data point to oracledb.lob.operations metric.
func (*MetricsBuilder) RecordOracledbLogicalReadsDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbLogicalReadsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbLogicalReadsDataPoint adds a data point to oracledb.logical_reads metric.
func (*MetricsBuilder) RecordOracledbLogonsDataPoint ¶ added in v0.131.0
func (mb *MetricsBuilder) RecordOracledbLogonsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbLogonsDataPoint adds a data point to oracledb.logons metric.
func (*MetricsBuilder) RecordOracledbParallelOperationsDowngraded1To25PctDataPoint ¶ added in v0.124.0
func (mb *MetricsBuilder) RecordOracledbParallelOperationsDowngraded1To25PctDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbParallelOperationsDowngraded1To25PctDataPoint adds a data point to oracledb.parallel_operations_downgraded_1_to_25_pct metric.
func (*MetricsBuilder) RecordOracledbParallelOperationsDowngraded25To50PctDataPoint ¶ added in v0.124.0
func (mb *MetricsBuilder) RecordOracledbParallelOperationsDowngraded25To50PctDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbParallelOperationsDowngraded25To50PctDataPoint adds a data point to oracledb.parallel_operations_downgraded_25_to_50_pct metric.
func (*MetricsBuilder) RecordOracledbParallelOperationsDowngraded50To75PctDataPoint ¶ added in v0.124.0
func (mb *MetricsBuilder) RecordOracledbParallelOperationsDowngraded50To75PctDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbParallelOperationsDowngraded50To75PctDataPoint adds a data point to oracledb.parallel_operations_downgraded_50_to_75_pct metric.
func (*MetricsBuilder) RecordOracledbParallelOperationsDowngraded75To99PctDataPoint ¶ added in v0.124.0
func (mb *MetricsBuilder) RecordOracledbParallelOperationsDowngraded75To99PctDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbParallelOperationsDowngraded75To99PctDataPoint adds a data point to oracledb.parallel_operations_downgraded_75_to_99_pct metric.
func (*MetricsBuilder) RecordOracledbParallelOperationsDowngradedToSerialDataPoint ¶ added in v0.124.0
func (mb *MetricsBuilder) RecordOracledbParallelOperationsDowngradedToSerialDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbParallelOperationsDowngradedToSerialDataPoint adds a data point to oracledb.parallel_operations_downgraded_to_serial metric.
func (*MetricsBuilder) RecordOracledbParallelOperationsNotDowngradedDataPoint ¶ added in v0.124.0
func (mb *MetricsBuilder) RecordOracledbParallelOperationsNotDowngradedDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbParallelOperationsNotDowngradedDataPoint adds a data point to oracledb.parallel_operations_not_downgraded metric.
func (*MetricsBuilder) RecordOracledbParseCPUTimeDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbParseCPUTimeDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbParseCPUTimeDataPoint adds a data point to oracledb.parse.cpu.time metric.
func (*MetricsBuilder) RecordOracledbParseCallsDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbParseCallsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbParseCallsDataPoint adds a data point to oracledb.parse_calls metric.
func (*MetricsBuilder) RecordOracledbParseElapsedTimeDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbParseElapsedTimeDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbParseElapsedTimeDataPoint adds a data point to oracledb.parse.elapsed.time metric.
func (*MetricsBuilder) RecordOracledbParseRateDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbParseRateDataPoint(ts pcommon.Timestamp, val float64, oracledbParseResultAttributeValue AttributeOracledbParseResult)
RecordOracledbParseRateDataPoint adds a data point to oracledb.parse.rate metric.
func (*MetricsBuilder) RecordOracledbParseUtilizationDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbParseUtilizationDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbParseUtilizationDataPoint adds a data point to oracledb.parse.utilization metric.
func (*MetricsBuilder) RecordOracledbPgaMemoryDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbPgaMemoryDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbPgaMemoryDataPoint adds a data point to oracledb.pga_memory metric.
func (*MetricsBuilder) RecordOracledbPhysicalIoCacheWritesDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbPhysicalIoCacheWritesDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbPhysicalIoCacheWritesDataPoint adds a data point to oracledb.physical_io.cache_writes metric.
func (*MetricsBuilder) RecordOracledbPhysicalIoRequestsDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbPhysicalIoRequestsDataPoint(ts pcommon.Timestamp, inputVal string, diskIoDirectionAttributeValue AttributeDiskIoDirection, diskIoBlockSizeAttributeValue AttributeDiskIoBlockSize) error
RecordOracledbPhysicalIoRequestsDataPoint adds a data point to oracledb.physical_io.requests metric.
func (*MetricsBuilder) RecordOracledbPhysicalIoTransferredDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbPhysicalIoTransferredDataPoint(ts pcommon.Timestamp, inputVal string, diskIoDirectionAttributeValue AttributeDiskIoDirection, diskIoTypeAttributeValue AttributeDiskIoType) error
RecordOracledbPhysicalIoTransferredDataPoint adds a data point to oracledb.physical_io.transferred metric.
func (*MetricsBuilder) RecordOracledbPhysicalReadIoRequestsDataPoint ¶ added in v0.123.0
func (mb *MetricsBuilder) RecordOracledbPhysicalReadIoRequestsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbPhysicalReadIoRequestsDataPoint adds a data point to oracledb.physical_read_io_requests metric.
func (*MetricsBuilder) RecordOracledbPhysicalReadsDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbPhysicalReadsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbPhysicalReadsDataPoint adds a data point to oracledb.physical_reads metric.
func (*MetricsBuilder) RecordOracledbPhysicalReadsDirectDataPoint ¶ added in v0.123.0
func (mb *MetricsBuilder) RecordOracledbPhysicalReadsDirectDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbPhysicalReadsDirectDataPoint adds a data point to oracledb.physical_reads_direct metric.
func (*MetricsBuilder) RecordOracledbPhysicalWriteIoRequestsDataPoint ¶ added in v0.123.0
func (mb *MetricsBuilder) RecordOracledbPhysicalWriteIoRequestsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbPhysicalWriteIoRequestsDataPoint adds a data point to oracledb.physical_write_io_requests metric.
func (*MetricsBuilder) RecordOracledbPhysicalWritesDataPoint ¶ added in v0.123.0
func (mb *MetricsBuilder) RecordOracledbPhysicalWritesDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbPhysicalWritesDataPoint adds a data point to oracledb.physical_writes metric.
func (*MetricsBuilder) RecordOracledbPhysicalWritesDirectDataPoint ¶ added in v0.123.0
func (mb *MetricsBuilder) RecordOracledbPhysicalWritesDirectDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbPhysicalWritesDirectDataPoint adds a data point to oracledb.physical_writes_direct metric.
func (*MetricsBuilder) RecordOracledbProcessesLimitDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbProcessesLimitDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbProcessesLimitDataPoint adds a data point to oracledb.processes.limit metric.
func (*MetricsBuilder) RecordOracledbProcessesUsageDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbProcessesUsageDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbProcessesUsageDataPoint adds a data point to oracledb.processes.usage metric.
func (*MetricsBuilder) RecordOracledbQueriesParallelizedDataPoint ¶ added in v0.124.0
func (mb *MetricsBuilder) RecordOracledbQueriesParallelizedDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbQueriesParallelizedDataPoint adds a data point to oracledb.queries_parallelized metric.
func (*MetricsBuilder) RecordOracledbRecycleBinLimitDataPoint ¶ added in v0.153.0
func (mb *MetricsBuilder) RecordOracledbRecycleBinLimitDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbRecycleBinLimitDataPoint adds a data point to oracledb.recycle_bin.limit metric.
func (*MetricsBuilder) RecordOracledbRedoAllocationUtilizationDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbRedoAllocationUtilizationDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbRedoAllocationUtilizationDataPoint adds a data point to oracledb.redo_allocation.utilization metric.
func (*MetricsBuilder) RecordOracledbRedoBlocksDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbRedoBlocksDataPoint(ts pcommon.Timestamp, inputVal string, diskIoDirectionAttributeValue AttributeDiskIoDirection) error
RecordOracledbRedoBlocksDataPoint adds a data point to oracledb.redo.blocks metric.
func (*MetricsBuilder) RecordOracledbRedoOperationsDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbRedoOperationsDataPoint(ts pcommon.Timestamp, inputVal string, diskIoDirectionAttributeValue AttributeDiskIoDirection) error
RecordOracledbRedoOperationsDataPoint adds a data point to oracledb.redo.operations metric.
func (*MetricsBuilder) RecordOracledbRedoRequestsDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbRedoRequestsDataPoint(ts pcommon.Timestamp, inputVal string, oracledbRedoRequestTypeAttributeValue AttributeOracledbRedoRequestType) error
RecordOracledbRedoRequestsDataPoint adds a data point to oracledb.redo.requests metric.
func (*MetricsBuilder) RecordOracledbRedoRetriesDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbRedoRetriesDataPoint(ts pcommon.Timestamp, inputVal string, oracledbRedoRetryTypeAttributeValue AttributeOracledbRedoRetryType) error
RecordOracledbRedoRetriesDataPoint adds a data point to oracledb.redo.retries metric.
func (*MetricsBuilder) RecordOracledbRedoSizeDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbRedoSizeDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbRedoSizeDataPoint adds a data point to oracledb.redo.size metric.
func (*MetricsBuilder) RecordOracledbRedoTimeDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbRedoTimeDataPoint(ts pcommon.Timestamp, val float64, oracledbRedoTypeAttributeValue AttributeOracledbRedoType)
RecordOracledbRedoTimeDataPoint adds a data point to oracledb.redo.time metric.
func (*MetricsBuilder) RecordOracledbSQLServiceResponseDurationDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbSQLServiceResponseDurationDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbSQLServiceResponseDurationDataPoint adds a data point to oracledb.sql_service.response.duration metric.
func (*MetricsBuilder) RecordOracledbScanCountDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbScanCountDataPoint(ts pcommon.Timestamp, inputVal string, oracledbScanTypeAttributeValue AttributeOracledbScanType, oracledbScanModeAttributeValue AttributeOracledbScanMode) error
RecordOracledbScanCountDataPoint adds a data point to oracledb.scan.count metric.
func (*MetricsBuilder) RecordOracledbScanTableRowsDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbScanTableRowsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbScanTableRowsDataPoint adds a data point to oracledb.scan.table.rows metric.
func (*MetricsBuilder) RecordOracledbSessionsLimitDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbSessionsLimitDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbSessionsLimitDataPoint adds a data point to oracledb.sessions.limit metric.
func (*MetricsBuilder) RecordOracledbSessionsUsageDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbSessionsUsageDataPoint(ts pcommon.Timestamp, inputVal string, sessionTypeAttributeValue string, sessionStatusAttributeValue string) error
RecordOracledbSessionsUsageDataPoint adds a data point to oracledb.sessions.usage metric.
func (*MetricsBuilder) RecordOracledbSharedPoolUtilizationDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbSharedPoolUtilizationDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbSharedPoolUtilizationDataPoint adds a data point to oracledb.shared_pool.utilization metric.
func (*MetricsBuilder) RecordOracledbSortOperationsDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbSortOperationsDataPoint(ts pcommon.Timestamp, inputVal string, oracledbSortTypeAttributeValue AttributeOracledbSortType) error
RecordOracledbSortOperationsDataPoint adds a data point to oracledb.sort.operations metric.
func (*MetricsBuilder) RecordOracledbSortRatioDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbSortRatioDataPoint(ts pcommon.Timestamp, val float64, oracledbSortTypeAttributeValue AttributeOracledbSortType)
RecordOracledbSortRatioDataPoint adds a data point to oracledb.sort.ratio metric.
func (*MetricsBuilder) RecordOracledbSortRowsDataPoint ¶ added in v0.156.0
func (mb *MetricsBuilder) RecordOracledbSortRowsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbSortRowsDataPoint adds a data point to oracledb.sort.rows metric.
func (*MetricsBuilder) RecordOracledbSqlnetIoTransferredDataPoint ¶ added in v0.154.0
func (mb *MetricsBuilder) RecordOracledbSqlnetIoTransferredDataPoint(ts pcommon.Timestamp, inputVal string, networkIoDirectionAttributeValue AttributeNetworkIoDirection, destinationTypeAttributeValue AttributeDestinationType) error
RecordOracledbSqlnetIoTransferredDataPoint adds a data point to oracledb.sqlnet.io.transferred metric.
func (*MetricsBuilder) RecordOracledbStorageUsageDataPoint ¶ added in v0.153.0
func (mb *MetricsBuilder) RecordOracledbStorageUsageDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbStorageUsageDataPoint adds a data point to oracledb.storage.usage metric.
func (*MetricsBuilder) RecordOracledbStorageUtilizationDataPoint ¶ added in v0.153.0
func (mb *MetricsBuilder) RecordOracledbStorageUtilizationDataPoint(ts pcommon.Timestamp, val float64)
RecordOracledbStorageUtilizationDataPoint adds a data point to oracledb.storage.utilization metric.
func (*MetricsBuilder) RecordOracledbTablespaceSizeLimitDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbTablespaceSizeLimitDataPoint(ts pcommon.Timestamp, val int64, tablespaceNameAttributeValue string)
RecordOracledbTablespaceSizeLimitDataPoint adds a data point to oracledb.tablespace_size.limit metric.
func (*MetricsBuilder) RecordOracledbTablespaceSizeUsageDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbTablespaceSizeUsageDataPoint(ts pcommon.Timestamp, val int64, tablespaceNameAttributeValue string)
RecordOracledbTablespaceSizeUsageDataPoint adds a data point to oracledb.tablespace_size.usage metric.
func (*MetricsBuilder) RecordOracledbTransactionsLimitDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbTransactionsLimitDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbTransactionsLimitDataPoint adds a data point to oracledb.transactions.limit metric.
func (*MetricsBuilder) RecordOracledbTransactionsUsageDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbTransactionsUsageDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbTransactionsUsageDataPoint adds a data point to oracledb.transactions.usage metric.
func (*MetricsBuilder) RecordOracledbUserCommitsDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbUserCommitsDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbUserCommitsDataPoint adds a data point to oracledb.user_commits metric.
func (*MetricsBuilder) RecordOracledbUserRollbacksDataPoint ¶
func (mb *MetricsBuilder) RecordOracledbUserRollbacksDataPoint(ts pcommon.Timestamp, inputVal string) error
RecordOracledbUserRollbacksDataPoint adds a data point to oracledb.user_rollbacks metric.
func (*MetricsBuilder) Reset ¶
func (mb *MetricsBuilder) Reset(options ...MetricBuilderOption)
Reset resets metrics builder to its initial state. It should be used when external metrics source is restarted, and metrics builder should update its startTime and reset it's internal state accordingly.
type MetricsBuilderConfig ¶ added in v0.73.0
type MetricsBuilderConfig struct {
Metrics MetricsConfig `mapstructure:"metrics"`
ResourceAttributes ResourceAttributesConfig `mapstructure:"resource_attributes"`
}
MetricsBuilderConfig is a configuration for oracledb metrics builder.
func DefaultMetricsBuilderConfig
deprecated
added in
v0.73.0
func DefaultMetricsBuilderConfig() MetricsBuilderConfig
Deprecated: Use NewDefaultMetricsBuilderConfig.
func NewDefaultMetricsBuilderConfig ¶ added in v0.151.0
func NewDefaultMetricsBuilderConfig() MetricsBuilderConfig
type MetricsConfig ¶ added in v0.77.0
type MetricsConfig struct {
OracledbBufferInspected OracledbBufferInspectedMetricConfig `mapstructure:"oracledb.buffer.inspected"`
OracledbBufferRequests OracledbBufferRequestsMetricConfig `mapstructure:"oracledb.buffer.requests"`
OracledbBufferCacheBlockChanges OracledbBufferCacheBlockChangesMetricConfig `mapstructure:"oracledb.buffer_cache.block.changes"`
OracledbBufferCacheBlockGets OracledbBufferCacheBlockGetsMetricConfig `mapstructure:"oracledb.buffer_cache.block.gets"`
OracledbBufferCacheUtilization OracledbBufferCacheUtilizationMetricConfig `mapstructure:"oracledb.buffer_cache.utilization"`
OracledbCallCount OracledbCallCountMetricConfig `mapstructure:"oracledb.call.count"`
OracledbCallRecursiveCPUTime OracledbCallRecursiveCPUTimeMetricConfig `mapstructure:"oracledb.call.recursive.cpu.time"`
OracledbCheckpointBuffers OracledbCheckpointBuffersMetricConfig `mapstructure:"oracledb.checkpoint.buffers"`
OracledbCheckpointCompleted OracledbCheckpointCompletedMetricConfig `mapstructure:"oracledb.checkpoint.completed"`
OracledbConsistentGets OracledbConsistentGetsMetricConfig `mapstructure:"oracledb.consistent_gets"`
OracledbCPUTime OracledbCPUTimeMetricConfig `mapstructure:"oracledb.cpu_time"`
OracledbCursorCacheHits OracledbCursorCacheHitsMetricConfig `mapstructure:"oracledb.cursor.cache.hits"`
OracledbCursorCacheSize OracledbCursorCacheSizeMetricConfig `mapstructure:"oracledb.cursor.cache.size"`
OracledbCursorOpen OracledbCursorOpenMetricConfig `mapstructure:"oracledb.cursor.open"`
OracledbDataDictionaryHitRatio OracledbDataDictionaryHitRatioMetricConfig `mapstructure:"oracledb.data_dictionary.hit_ratio"`
OracledbDatabaseCPUUtilization OracledbDatabaseCPUUtilizationMetricConfig `mapstructure:"oracledb.database.cpu.utilization"`
OracledbDatabaseWaitUtilization OracledbDatabaseWaitUtilizationMetricConfig `mapstructure:"oracledb.database.wait.utilization"`
OracledbDbTime OracledbDbTimeMetricConfig `mapstructure:"oracledb.db.time"`
OracledbDbBlockGets OracledbDbBlockGetsMetricConfig `mapstructure:"oracledb.db_block_gets"`
OracledbDdlStatementsParallelized OracledbDdlStatementsParallelizedMetricConfig `mapstructure:"oracledb.ddl_statements_parallelized"`
OracledbDmlLocksLimit OracledbDmlLocksLimitMetricConfig `mapstructure:"oracledb.dml_locks.limit"`
OracledbDmlLocksUsage OracledbDmlLocksUsageMetricConfig `mapstructure:"oracledb.dml_locks.usage"`
OracledbDmlStatementsParallelized OracledbDmlStatementsParallelizedMetricConfig `mapstructure:"oracledb.dml_statements_parallelized"`
OracledbEnqueueOperations OracledbEnqueueOperationsMetricConfig `mapstructure:"oracledb.enqueue.operations"`
OracledbEnqueueDeadlocks OracledbEnqueueDeadlocksMetricConfig `mapstructure:"oracledb.enqueue_deadlocks"`
OracledbEnqueueLocksLimit OracledbEnqueueLocksLimitMetricConfig `mapstructure:"oracledb.enqueue_locks.limit"`
OracledbEnqueueLocksUsage OracledbEnqueueLocksUsageMetricConfig `mapstructure:"oracledb.enqueue_locks.usage"`
OracledbEnqueueResourcesLimit OracledbEnqueueResourcesLimitMetricConfig `mapstructure:"oracledb.enqueue_resources.limit"`
OracledbEnqueueResourcesUsage OracledbEnqueueResourcesUsageMetricConfig `mapstructure:"oracledb.enqueue_resources.usage"`
OracledbExchangeDeadlocks OracledbExchangeDeadlocksMetricConfig `mapstructure:"oracledb.exchange_deadlocks"`
OracledbExecutionUtilization OracledbExecutionUtilizationMetricConfig `mapstructure:"oracledb.execution.utilization"`
OracledbExecutions OracledbExecutionsMetricConfig `mapstructure:"oracledb.executions"`
OracledbHardParses OracledbHardParsesMetricConfig `mapstructure:"oracledb.hard_parses"`
OracledbHostCPUUtilization OracledbHostCPUUtilizationMetricConfig `mapstructure:"oracledb.host.cpu.utilization"`
OracledbLibraryCacheUtilization OracledbLibraryCacheUtilizationMetricConfig `mapstructure:"oracledb.library_cache.utilization"`
OracledbLobOperations OracledbLobOperationsMetricConfig `mapstructure:"oracledb.lob.operations"`
OracledbLogicalReads OracledbLogicalReadsMetricConfig `mapstructure:"oracledb.logical_reads"`
OracledbLogons OracledbLogonsMetricConfig `mapstructure:"oracledb.logons"`
OracledbParallelOperationsDowngraded1To25Pct OracledbParallelOperationsDowngraded1To25PctMetricConfig `mapstructure:"oracledb.parallel_operations_downgraded_1_to_25_pct"`
OracledbParallelOperationsDowngraded25To50Pct OracledbParallelOperationsDowngraded25To50PctMetricConfig `mapstructure:"oracledb.parallel_operations_downgraded_25_to_50_pct"`
OracledbParallelOperationsDowngraded50To75Pct OracledbParallelOperationsDowngraded50To75PctMetricConfig `mapstructure:"oracledb.parallel_operations_downgraded_50_to_75_pct"`
OracledbParallelOperationsDowngraded75To99Pct OracledbParallelOperationsDowngraded75To99PctMetricConfig `mapstructure:"oracledb.parallel_operations_downgraded_75_to_99_pct"`
OracledbParallelOperationsDowngradedToSerial OracledbParallelOperationsDowngradedToSerialMetricConfig `mapstructure:"oracledb.parallel_operations_downgraded_to_serial"`
OracledbParallelOperationsNotDowngraded OracledbParallelOperationsNotDowngradedMetricConfig `mapstructure:"oracledb.parallel_operations_not_downgraded"`
OracledbParseCPUTime OracledbParseCPUTimeMetricConfig `mapstructure:"oracledb.parse.cpu.time"`
OracledbParseElapsedTime OracledbParseElapsedTimeMetricConfig `mapstructure:"oracledb.parse.elapsed.time"`
OracledbParseRate OracledbParseRateMetricConfig `mapstructure:"oracledb.parse.rate"`
OracledbParseUtilization OracledbParseUtilizationMetricConfig `mapstructure:"oracledb.parse.utilization"`
OracledbParseCalls OracledbParseCallsMetricConfig `mapstructure:"oracledb.parse_calls"`
OracledbPgaMemory OracledbPgaMemoryMetricConfig `mapstructure:"oracledb.pga_memory"`
OracledbPhysicalIoCacheWrites OracledbPhysicalIoCacheWritesMetricConfig `mapstructure:"oracledb.physical_io.cache_writes"`
OracledbPhysicalIoRequests OracledbPhysicalIoRequestsMetricConfig `mapstructure:"oracledb.physical_io.requests"`
OracledbPhysicalIoTransferred OracledbPhysicalIoTransferredMetricConfig `mapstructure:"oracledb.physical_io.transferred"`
OracledbPhysicalReadIoRequests OracledbPhysicalReadIoRequestsMetricConfig `mapstructure:"oracledb.physical_read_io_requests"`
OracledbPhysicalReads OracledbPhysicalReadsMetricConfig `mapstructure:"oracledb.physical_reads"`
OracledbPhysicalReadsDirect OracledbPhysicalReadsDirectMetricConfig `mapstructure:"oracledb.physical_reads_direct"`
OracledbPhysicalWriteIoRequests OracledbPhysicalWriteIoRequestsMetricConfig `mapstructure:"oracledb.physical_write_io_requests"`
OracledbPhysicalWrites OracledbPhysicalWritesMetricConfig `mapstructure:"oracledb.physical_writes"`
OracledbPhysicalWritesDirect OracledbPhysicalWritesDirectMetricConfig `mapstructure:"oracledb.physical_writes_direct"`
OracledbProcessesLimit OracledbProcessesLimitMetricConfig `mapstructure:"oracledb.processes.limit"`
OracledbProcessesUsage OracledbProcessesUsageMetricConfig `mapstructure:"oracledb.processes.usage"`
OracledbQueriesParallelized OracledbQueriesParallelizedMetricConfig `mapstructure:"oracledb.queries_parallelized"`
OracledbRecycleBinLimit OracledbRecycleBinLimitMetricConfig `mapstructure:"oracledb.recycle_bin.limit"`
OracledbRedoBlocks OracledbRedoBlocksMetricConfig `mapstructure:"oracledb.redo.blocks"`
OracledbRedoOperations OracledbRedoOperationsMetricConfig `mapstructure:"oracledb.redo.operations"`
OracledbRedoRequests OracledbRedoRequestsMetricConfig `mapstructure:"oracledb.redo.requests"`
OracledbRedoRetries OracledbRedoRetriesMetricConfig `mapstructure:"oracledb.redo.retries"`
OracledbRedoSize OracledbRedoSizeMetricConfig `mapstructure:"oracledb.redo.size"`
OracledbRedoTime OracledbRedoTimeMetricConfig `mapstructure:"oracledb.redo.time"`
OracledbRedoAllocationUtilization OracledbRedoAllocationUtilizationMetricConfig `mapstructure:"oracledb.redo_allocation.utilization"`
OracledbScanCount OracledbScanCountMetricConfig `mapstructure:"oracledb.scan.count"`
OracledbScanTableRows OracledbScanTableRowsMetricConfig `mapstructure:"oracledb.scan.table.rows"`
OracledbSessionsLimit OracledbSessionsLimitMetricConfig `mapstructure:"oracledb.sessions.limit"`
OracledbSessionsUsage OracledbSessionsUsageMetricConfig `mapstructure:"oracledb.sessions.usage"`
OracledbSortOperations OracledbSortOperationsMetricConfig `mapstructure:"oracledb.sort.operations"`
OracledbSortRatio OracledbSortRatioMetricConfig `mapstructure:"oracledb.sort.ratio"`
OracledbSortRows OracledbSortRowsMetricConfig `mapstructure:"oracledb.sort.rows"`
OracledbSQLServiceResponseDuration OracledbSQLServiceResponseDurationMetricConfig `mapstructure:"oracledb.sql_service.response.duration"`
OracledbSqlnetIoTransferred OracledbSqlnetIoTransferredMetricConfig `mapstructure:"oracledb.sqlnet.io.transferred"`
OracledbStorageUsage OracledbStorageUsageMetricConfig `mapstructure:"oracledb.storage.usage"`
OracledbStorageUtilization OracledbStorageUtilizationMetricConfig `mapstructure:"oracledb.storage.utilization"`
OracledbTablespaceSizeLimit OracledbTablespaceSizeLimitMetricConfig `mapstructure:"oracledb.tablespace_size.limit"`
OracledbTablespaceSizeUsage OracledbTablespaceSizeUsageMetricConfig `mapstructure:"oracledb.tablespace_size.usage"`
OracledbTransactionsLimit OracledbTransactionsLimitMetricConfig `mapstructure:"oracledb.transactions.limit"`
OracledbTransactionsUsage OracledbTransactionsUsageMetricConfig `mapstructure:"oracledb.transactions.usage"`
OracledbUserCommits OracledbUserCommitsMetricConfig `mapstructure:"oracledb.user_commits"`
OracledbUserRollbacks OracledbUserRollbacksMetricConfig `mapstructure:"oracledb.user_rollbacks"`
}
MetricsConfig provides config for oracledb metrics.
func DefaultMetricsConfig ¶ added in v0.77.0
func DefaultMetricsConfig() MetricsConfig
type OracleDbHostingTypeResourceAttributeConfig ¶ added in v0.156.0
type OracleDbHostingTypeResourceAttributeConfig struct {
Enabled bool `mapstructure:"enabled"`
// OverrideValue allows users to override the value of this resource attribute.
OverrideValue *string `mapstructure:"override_value"`
// Experimental: MetricsInclude defines a list of filters for attribute values.
// If the list is not empty, only metrics with matching resource attribute values will be emitted.
MetricsInclude []filter.Config `mapstructure:"metrics_include"`
// Experimental: MetricsExclude defines a list of filters for attribute values.
// If the list is not empty, metrics with matching resource attribute values will not be emitted.
// MetricsInclude has higher priority than MetricsExclude.
MetricsExclude []filter.Config `mapstructure:"metrics_exclude"`
// Experimental: EventsInclude defines a list of filters for attribute values.
// If the list is not empty, only events with matching resource attribute values will be emitted.
EventsInclude []filter.Config `mapstructure:"events_include"`
// Experimental: EventsExclude defines a list of filters for attribute values.
// If the list is not empty, events with matching resource attribute values will not be emitted.
// EventsInclude has higher priority than EventsExclude.
EventsExclude []filter.Config `mapstructure:"events_exclude"`
// contains filtered or unexported fields
}
OracleDbHostingTypeResourceAttributeConfig provides config for the oracle.db.hosting_type resource attribute.
type OracleDbOpenModeResourceAttributeConfig ¶ added in v0.156.0
type OracleDbOpenModeResourceAttributeConfig struct {
Enabled bool `mapstructure:"enabled"`
// OverrideValue allows users to override the value of this resource attribute.
OverrideValue *string `mapstructure:"override_value"`
// Experimental: MetricsInclude defines a list of filters for attribute values.
// If the list is not empty, only metrics with matching resource attribute values will be emitted.
MetricsInclude []filter.Config `mapstructure:"metrics_include"`
// Experimental: MetricsExclude defines a list of filters for attribute values.
// If the list is not empty, metrics with matching resource attribute values will not be emitted.
// MetricsInclude has higher priority than MetricsExclude.
MetricsExclude []filter.Config `mapstructure:"metrics_exclude"`
// Experimental: EventsInclude defines a list of filters for attribute values.
// If the list is not empty, only events with matching resource attribute values will be emitted.
EventsInclude []filter.Config `mapstructure:"events_include"`
// Experimental: EventsExclude defines a list of filters for attribute values.
// If the list is not empty, events with matching resource attribute values will not be emitted.
// EventsInclude has higher priority than EventsExclude.
EventsExclude []filter.Config `mapstructure:"events_exclude"`
// contains filtered or unexported fields
}
OracleDbOpenModeResourceAttributeConfig provides config for the oracle.db.open_mode resource attribute.
type OracleDbPdbResourceAttributeConfig ¶ added in v0.156.0
type OracleDbPdbResourceAttributeConfig struct {
Enabled bool `mapstructure:"enabled"`
// OverrideValue allows users to override the value of this resource attribute.
OverrideValue *string `mapstructure:"override_value"`
// Experimental: MetricsInclude defines a list of filters for attribute values.
// If the list is not empty, only metrics with matching resource attribute values will be emitted.
MetricsInclude []filter.Config `mapstructure:"metrics_include"`
// Experimental: MetricsExclude defines a list of filters for attribute values.
// If the list is not empty, metrics with matching resource attribute values will not be emitted.
// MetricsInclude has higher priority than MetricsExclude.
MetricsExclude []filter.Config `mapstructure:"metrics_exclude"`
// Experimental: EventsInclude defines a list of filters for attribute values.
// If the list is not empty, only events with matching resource attribute values will be emitted.
EventsInclude []filter.Config `mapstructure:"events_include"`
// Experimental: EventsExclude defines a list of filters for attribute values.
// If the list is not empty, events with matching resource attribute values will not be emitted.
// EventsInclude has higher priority than EventsExclude.
EventsExclude []filter.Config `mapstructure:"events_exclude"`
// contains filtered or unexported fields
}
OracleDbPdbResourceAttributeConfig provides config for the oracle.db.pdb resource attribute.
type OracleDbRoleResourceAttributeConfig ¶ added in v0.156.0
type OracleDbRoleResourceAttributeConfig struct {
Enabled bool `mapstructure:"enabled"`
// OverrideValue allows users to override the value of this resource attribute.
OverrideValue *string `mapstructure:"override_value"`
// Experimental: MetricsInclude defines a list of filters for attribute values.
// If the list is not empty, only metrics with matching resource attribute values will be emitted.
MetricsInclude []filter.Config `mapstructure:"metrics_include"`
// Experimental: MetricsExclude defines a list of filters for attribute values.
// If the list is not empty, metrics with matching resource attribute values will not be emitted.
// MetricsInclude has higher priority than MetricsExclude.
MetricsExclude []filter.Config `mapstructure:"metrics_exclude"`
// Experimental: EventsInclude defines a list of filters for attribute values.
// If the list is not empty, only events with matching resource attribute values will be emitted.
EventsInclude []filter.Config `mapstructure:"events_include"`
// Experimental: EventsExclude defines a list of filters for attribute values.
// If the list is not empty, events with matching resource attribute values will not be emitted.
// EventsInclude has higher priority than EventsExclude.
EventsExclude []filter.Config `mapstructure:"events_exclude"`
// contains filtered or unexported fields
}
OracleDbRoleResourceAttributeConfig provides config for the oracle.db.role resource attribute.
type OracleDbVersionResourceAttributeConfig ¶ added in v0.156.0
type OracleDbVersionResourceAttributeConfig struct {
Enabled bool `mapstructure:"enabled"`
// OverrideValue allows users to override the value of this resource attribute.
OverrideValue *string `mapstructure:"override_value"`
// Experimental: MetricsInclude defines a list of filters for attribute values.
// If the list is not empty, only metrics with matching resource attribute values will be emitted.
MetricsInclude []filter.Config `mapstructure:"metrics_include"`
// Experimental: MetricsExclude defines a list of filters for attribute values.
// If the list is not empty, metrics with matching resource attribute values will not be emitted.
// MetricsInclude has higher priority than MetricsExclude.
MetricsExclude []filter.Config `mapstructure:"metrics_exclude"`
// Experimental: EventsInclude defines a list of filters for attribute values.
// If the list is not empty, only events with matching resource attribute values will be emitted.
EventsInclude []filter.Config `mapstructure:"events_include"`
// Experimental: EventsExclude defines a list of filters for attribute values.
// If the list is not empty, events with matching resource attribute values will not be emitted.
// EventsInclude has higher priority than EventsExclude.
EventsExclude []filter.Config `mapstructure:"events_exclude"`
// contains filtered or unexported fields
}
OracleDbVersionResourceAttributeConfig provides config for the oracle.db.version resource attribute.
type OracledbBufferCacheBlockChangesMetricConfig ¶ added in v0.156.0
type OracledbBufferCacheBlockChangesMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbBufferCacheBlockChangesMetricConfig provides config for the oracledb.buffer_cache.block.changes metric.
type OracledbBufferCacheBlockGetsMetricConfig ¶ added in v0.156.0
type OracledbBufferCacheBlockGetsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbBufferCacheBlockGetsMetricConfig provides config for the oracledb.buffer_cache.block.gets metric.
type OracledbBufferCacheUtilizationMetricConfig ¶ added in v0.154.0
type OracledbBufferCacheUtilizationMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbBufferCacheUtilizationMetricConfig provides config for the oracledb.buffer_cache.utilization metric.
type OracledbBufferInspectedMetricAttributeKey ¶ added in v0.156.0
type OracledbBufferInspectedMetricAttributeKey string
OracledbBufferInspectedMetricAttributeKey specifies the key of an attribute for the oracledb.buffer.inspected metric.
const (
OracledbBufferInspectedMetricAttributeKeyOracledbBufferState OracledbBufferInspectedMetricAttributeKey = "oracledb.buffer.state"
)
type OracledbBufferInspectedMetricConfig ¶ added in v0.156.0
type OracledbBufferInspectedMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbBufferInspectedMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbBufferInspectedMetricConfig provides config for the oracledb.buffer.inspected metric.
func (*OracledbBufferInspectedMetricConfig) Unmarshal ¶ added in v0.156.0
func (ms *OracledbBufferInspectedMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbBufferInspectedMetricConfig) Validate ¶ added in v0.156.0
func (ms *OracledbBufferInspectedMetricConfig) Validate() error
type OracledbBufferRequestsMetricConfig ¶ added in v0.156.0
type OracledbBufferRequestsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbBufferRequestsMetricConfig provides config for the oracledb.buffer.requests metric.
type OracledbCPUTimeMetricConfig ¶ added in v0.148.0
type OracledbCPUTimeMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbCPUTimeMetricConfig provides config for the oracledb.cpu_time metric.
type OracledbCallCountMetricAttributeKey ¶ added in v0.156.0
type OracledbCallCountMetricAttributeKey string
OracledbCallCountMetricAttributeKey specifies the key of an attribute for the oracledb.call.count metric.
const (
OracledbCallCountMetricAttributeKeyOracledbCallType OracledbCallCountMetricAttributeKey = "oracledb.call.type"
)
type OracledbCallCountMetricConfig ¶ added in v0.156.0
type OracledbCallCountMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbCallCountMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbCallCountMetricConfig provides config for the oracledb.call.count metric.
func (*OracledbCallCountMetricConfig) Unmarshal ¶ added in v0.156.0
func (ms *OracledbCallCountMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbCallCountMetricConfig) Validate ¶ added in v0.156.0
func (ms *OracledbCallCountMetricConfig) Validate() error
type OracledbCallRecursiveCPUTimeMetricConfig ¶ added in v0.156.0
type OracledbCallRecursiveCPUTimeMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbCallRecursiveCPUTimeMetricConfig provides config for the oracledb.call.recursive.cpu.time metric.
type OracledbCheckpointBuffersMetricConfig ¶ added in v0.156.0
type OracledbCheckpointBuffersMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbCheckpointBuffersMetricConfig provides config for the oracledb.checkpoint.buffers metric.
type OracledbCheckpointCompletedMetricConfig ¶ added in v0.156.0
type OracledbCheckpointCompletedMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbCheckpointCompletedMetricConfig provides config for the oracledb.checkpoint.completed metric.
type OracledbConsistentGetsMetricConfig ¶ added in v0.148.0
type OracledbConsistentGetsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbConsistentGetsMetricConfig provides config for the oracledb.consistent_gets metric.
type OracledbCursorCacheHitsMetricConfig ¶ added in v0.156.0
type OracledbCursorCacheHitsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbCursorCacheHitsMetricConfig provides config for the oracledb.cursor.cache.hits metric.
type OracledbCursorCacheSizeMetricConfig ¶ added in v0.156.0
type OracledbCursorCacheSizeMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbCursorCacheSizeMetricConfig provides config for the oracledb.cursor.cache.size metric.
type OracledbCursorOpenMetricConfig ¶ added in v0.156.0
type OracledbCursorOpenMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbCursorOpenMetricConfig provides config for the oracledb.cursor.open metric.
type OracledbDataDictionaryHitRatioMetricConfig ¶ added in v0.153.0
type OracledbDataDictionaryHitRatioMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbDataDictionaryHitRatioMetricConfig provides config for the oracledb.data_dictionary.hit_ratio metric.
type OracledbDatabaseCPUUtilizationMetricConfig ¶ added in v0.154.0
type OracledbDatabaseCPUUtilizationMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbDatabaseCPUUtilizationMetricConfig provides config for the oracledb.database.cpu.utilization metric.
type OracledbDatabaseWaitUtilizationMetricConfig ¶ added in v0.154.0
type OracledbDatabaseWaitUtilizationMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbDatabaseWaitUtilizationMetricConfig provides config for the oracledb.database.wait.utilization metric.
type OracledbDbBlockGetsMetricConfig ¶ added in v0.148.0
type OracledbDbBlockGetsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbDbBlockGetsMetricConfig provides config for the oracledb.db_block_gets metric.
type OracledbDbTimeMetricAttributeKey ¶ added in v0.156.0
type OracledbDbTimeMetricAttributeKey string
OracledbDbTimeMetricAttributeKey specifies the key of an attribute for the oracledb.db.time metric.
const (
OracledbDbTimeMetricAttributeKeyOracledbSessionType OracledbDbTimeMetricAttributeKey = "oracledb.session.type"
)
type OracledbDbTimeMetricConfig ¶ added in v0.156.0
type OracledbDbTimeMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbDbTimeMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbDbTimeMetricConfig provides config for the oracledb.db.time metric.
func (*OracledbDbTimeMetricConfig) Unmarshal ¶ added in v0.156.0
func (ms *OracledbDbTimeMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbDbTimeMetricConfig) Validate ¶ added in v0.156.0
func (ms *OracledbDbTimeMetricConfig) Validate() error
type OracledbDdlStatementsParallelizedMetricConfig ¶ added in v0.148.0
type OracledbDdlStatementsParallelizedMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbDdlStatementsParallelizedMetricConfig provides config for the oracledb.ddl_statements_parallelized metric.
type OracledbDmlLocksLimitMetricConfig ¶ added in v0.148.0
type OracledbDmlLocksLimitMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbDmlLocksLimitMetricConfig provides config for the oracledb.dml_locks.limit metric.
type OracledbDmlLocksUsageMetricConfig ¶ added in v0.148.0
type OracledbDmlLocksUsageMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbDmlLocksUsageMetricConfig provides config for the oracledb.dml_locks.usage metric.
type OracledbDmlStatementsParallelizedMetricConfig ¶ added in v0.148.0
type OracledbDmlStatementsParallelizedMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbDmlStatementsParallelizedMetricConfig provides config for the oracledb.dml_statements_parallelized metric.
type OracledbEnqueueDeadlocksMetricConfig ¶ added in v0.148.0
type OracledbEnqueueDeadlocksMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbEnqueueDeadlocksMetricConfig provides config for the oracledb.enqueue_deadlocks metric.
type OracledbEnqueueLocksLimitMetricConfig ¶ added in v0.148.0
type OracledbEnqueueLocksLimitMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbEnqueueLocksLimitMetricConfig provides config for the oracledb.enqueue_locks.limit metric.
type OracledbEnqueueLocksUsageMetricConfig ¶ added in v0.148.0
type OracledbEnqueueLocksUsageMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbEnqueueLocksUsageMetricConfig provides config for the oracledb.enqueue_locks.usage metric.
type OracledbEnqueueOperationsMetricAttributeKey ¶ added in v0.156.0
type OracledbEnqueueOperationsMetricAttributeKey string
OracledbEnqueueOperationsMetricAttributeKey specifies the key of an attribute for the oracledb.enqueue.operations metric.
const (
OracledbEnqueueOperationsMetricAttributeKeyOracledbEnqueueType OracledbEnqueueOperationsMetricAttributeKey = "oracledb.enqueue.type"
)
type OracledbEnqueueOperationsMetricConfig ¶ added in v0.156.0
type OracledbEnqueueOperationsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbEnqueueOperationsMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbEnqueueOperationsMetricConfig provides config for the oracledb.enqueue.operations metric.
func (*OracledbEnqueueOperationsMetricConfig) Unmarshal ¶ added in v0.156.0
func (ms *OracledbEnqueueOperationsMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbEnqueueOperationsMetricConfig) Validate ¶ added in v0.156.0
func (ms *OracledbEnqueueOperationsMetricConfig) Validate() error
type OracledbEnqueueResourcesLimitMetricConfig ¶ added in v0.148.0
type OracledbEnqueueResourcesLimitMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbEnqueueResourcesLimitMetricConfig provides config for the oracledb.enqueue_resources.limit metric.
type OracledbEnqueueResourcesUsageMetricConfig ¶ added in v0.148.0
type OracledbEnqueueResourcesUsageMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbEnqueueResourcesUsageMetricConfig provides config for the oracledb.enqueue_resources.usage metric.
type OracledbExchangeDeadlocksMetricConfig ¶ added in v0.148.0
type OracledbExchangeDeadlocksMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbExchangeDeadlocksMetricConfig provides config for the oracledb.exchange_deadlocks metric.
type OracledbExecutionUtilizationMetricAttributeKey ¶ added in v0.154.0
type OracledbExecutionUtilizationMetricAttributeKey string
OracledbExecutionUtilizationMetricAttributeKey specifies the key of an attribute for the oracledb.execution.utilization metric.
const (
OracledbExecutionUtilizationMetricAttributeKeyOracledbParseType OracledbExecutionUtilizationMetricAttributeKey = "oracledb.parse.type"
)
type OracledbExecutionUtilizationMetricConfig ¶ added in v0.154.0
type OracledbExecutionUtilizationMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbExecutionUtilizationMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbExecutionUtilizationMetricConfig provides config for the oracledb.execution.utilization metric.
func (*OracledbExecutionUtilizationMetricConfig) Unmarshal ¶ added in v0.154.0
func (ms *OracledbExecutionUtilizationMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbExecutionUtilizationMetricConfig) Validate ¶ added in v0.154.0
func (ms *OracledbExecutionUtilizationMetricConfig) Validate() error
type OracledbExecutionsMetricConfig ¶ added in v0.148.0
type OracledbExecutionsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbExecutionsMetricConfig provides config for the oracledb.executions metric.
type OracledbHardParsesMetricConfig ¶ added in v0.148.0
type OracledbHardParsesMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbHardParsesMetricConfig provides config for the oracledb.hard_parses metric.
type OracledbHostCPUUtilizationMetricConfig ¶ added in v0.154.0
type OracledbHostCPUUtilizationMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbHostCPUUtilizationMetricConfig provides config for the oracledb.host.cpu.utilization metric.
type OracledbInstanceNameResourceAttributeConfig ¶ added in v0.156.0
type OracledbInstanceNameResourceAttributeConfig struct {
Enabled bool `mapstructure:"enabled"`
// OverrideValue allows users to override the value of this resource attribute.
OverrideValue *string `mapstructure:"override_value"`
// Experimental: MetricsInclude defines a list of filters for attribute values.
// If the list is not empty, only metrics with matching resource attribute values will be emitted.
MetricsInclude []filter.Config `mapstructure:"metrics_include"`
// Experimental: MetricsExclude defines a list of filters for attribute values.
// If the list is not empty, metrics with matching resource attribute values will not be emitted.
// MetricsInclude has higher priority than MetricsExclude.
MetricsExclude []filter.Config `mapstructure:"metrics_exclude"`
// Experimental: EventsInclude defines a list of filters for attribute values.
// If the list is not empty, only events with matching resource attribute values will be emitted.
EventsInclude []filter.Config `mapstructure:"events_include"`
// Experimental: EventsExclude defines a list of filters for attribute values.
// If the list is not empty, events with matching resource attribute values will not be emitted.
// EventsInclude has higher priority than EventsExclude.
EventsExclude []filter.Config `mapstructure:"events_exclude"`
// contains filtered or unexported fields
}
OracledbInstanceNameResourceAttributeConfig provides config for the oracledb.instance.name resource attribute.
type OracledbLibraryCacheUtilizationMetricConfig ¶ added in v0.154.0
type OracledbLibraryCacheUtilizationMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbLibraryCacheUtilizationMetricConfig provides config for the oracledb.library_cache.utilization metric.
type OracledbLobOperationsMetricAttributeKey ¶ added in v0.156.0
type OracledbLobOperationsMetricAttributeKey string
OracledbLobOperationsMetricAttributeKey specifies the key of an attribute for the oracledb.lob.operations metric.
const (
OracledbLobOperationsMetricAttributeKeyDiskIoDirection OracledbLobOperationsMetricAttributeKey = "disk.io.direction"
)
type OracledbLobOperationsMetricConfig ¶ added in v0.156.0
type OracledbLobOperationsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbLobOperationsMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbLobOperationsMetricConfig provides config for the oracledb.lob.operations metric.
func (*OracledbLobOperationsMetricConfig) Unmarshal ¶ added in v0.156.0
func (ms *OracledbLobOperationsMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbLobOperationsMetricConfig) Validate ¶ added in v0.156.0
func (ms *OracledbLobOperationsMetricConfig) Validate() error
type OracledbLogicalReadsMetricConfig ¶ added in v0.148.0
type OracledbLogicalReadsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbLogicalReadsMetricConfig provides config for the oracledb.logical_reads metric.
type OracledbLogonsMetricConfig ¶ added in v0.148.0
type OracledbLogonsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbLogonsMetricConfig provides config for the oracledb.logons metric.
type OracledbParallelOperationsDowngraded1To25PctMetricConfig ¶ added in v0.148.0
type OracledbParallelOperationsDowngraded1To25PctMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbParallelOperationsDowngraded1To25PctMetricConfig provides config for the oracledb.parallel_operations_downgraded_1_to_25_pct metric.
type OracledbParallelOperationsDowngraded25To50PctMetricConfig ¶ added in v0.148.0
type OracledbParallelOperationsDowngraded25To50PctMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbParallelOperationsDowngraded25To50PctMetricConfig provides config for the oracledb.parallel_operations_downgraded_25_to_50_pct metric.
type OracledbParallelOperationsDowngraded50To75PctMetricConfig ¶ added in v0.148.0
type OracledbParallelOperationsDowngraded50To75PctMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbParallelOperationsDowngraded50To75PctMetricConfig provides config for the oracledb.parallel_operations_downgraded_50_to_75_pct metric.
type OracledbParallelOperationsDowngraded75To99PctMetricConfig ¶ added in v0.148.0
type OracledbParallelOperationsDowngraded75To99PctMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbParallelOperationsDowngraded75To99PctMetricConfig provides config for the oracledb.parallel_operations_downgraded_75_to_99_pct metric.
type OracledbParallelOperationsDowngradedToSerialMetricConfig ¶ added in v0.148.0
type OracledbParallelOperationsDowngradedToSerialMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbParallelOperationsDowngradedToSerialMetricConfig provides config for the oracledb.parallel_operations_downgraded_to_serial metric.
type OracledbParallelOperationsNotDowngradedMetricConfig ¶ added in v0.148.0
type OracledbParallelOperationsNotDowngradedMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbParallelOperationsNotDowngradedMetricConfig provides config for the oracledb.parallel_operations_not_downgraded metric.
type OracledbParseCPUTimeMetricConfig ¶ added in v0.156.0
type OracledbParseCPUTimeMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbParseCPUTimeMetricConfig provides config for the oracledb.parse.cpu.time metric.
type OracledbParseCallsMetricConfig ¶ added in v0.148.0
type OracledbParseCallsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbParseCallsMetricConfig provides config for the oracledb.parse_calls metric.
type OracledbParseElapsedTimeMetricConfig ¶ added in v0.156.0
type OracledbParseElapsedTimeMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbParseElapsedTimeMetricConfig provides config for the oracledb.parse.elapsed.time metric.
type OracledbParseRateMetricAttributeKey ¶ added in v0.154.0
type OracledbParseRateMetricAttributeKey string
OracledbParseRateMetricAttributeKey specifies the key of an attribute for the oracledb.parse.rate metric.
const (
OracledbParseRateMetricAttributeKeyOracledbParseResult OracledbParseRateMetricAttributeKey = "oracledb.parse.result"
)
type OracledbParseRateMetricConfig ¶ added in v0.154.0
type OracledbParseRateMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbParseRateMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbParseRateMetricConfig provides config for the oracledb.parse.rate metric.
func (*OracledbParseRateMetricConfig) Unmarshal ¶ added in v0.154.0
func (ms *OracledbParseRateMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbParseRateMetricConfig) Validate ¶ added in v0.154.0
func (ms *OracledbParseRateMetricConfig) Validate() error
type OracledbParseUtilizationMetricConfig ¶ added in v0.154.0
type OracledbParseUtilizationMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbParseUtilizationMetricConfig provides config for the oracledb.parse.utilization metric.
type OracledbPgaMemoryMetricConfig ¶ added in v0.148.0
type OracledbPgaMemoryMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbPgaMemoryMetricConfig provides config for the oracledb.pga_memory metric.
type OracledbPhysicalIoCacheWritesMetricConfig ¶ added in v0.154.0
type OracledbPhysicalIoCacheWritesMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbPhysicalIoCacheWritesMetricConfig provides config for the oracledb.physical_io.cache_writes metric.
type OracledbPhysicalIoRequestsMetricAttributeKey ¶ added in v0.154.0
type OracledbPhysicalIoRequestsMetricAttributeKey string
OracledbPhysicalIoRequestsMetricAttributeKey specifies the key of an attribute for the oracledb.physical_io.requests metric.
const ( OracledbPhysicalIoRequestsMetricAttributeKeyDiskIoDirection OracledbPhysicalIoRequestsMetricAttributeKey = "disk.io.direction" OracledbPhysicalIoRequestsMetricAttributeKeyDiskIoBlockSize OracledbPhysicalIoRequestsMetricAttributeKey = "disk.io.block_size" )
type OracledbPhysicalIoRequestsMetricConfig ¶ added in v0.154.0
type OracledbPhysicalIoRequestsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbPhysicalIoRequestsMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbPhysicalIoRequestsMetricConfig provides config for the oracledb.physical_io.requests metric.
func (*OracledbPhysicalIoRequestsMetricConfig) Unmarshal ¶ added in v0.154.0
func (ms *OracledbPhysicalIoRequestsMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbPhysicalIoRequestsMetricConfig) Validate ¶ added in v0.154.0
func (ms *OracledbPhysicalIoRequestsMetricConfig) Validate() error
type OracledbPhysicalIoTransferredMetricAttributeKey ¶ added in v0.154.0
type OracledbPhysicalIoTransferredMetricAttributeKey string
OracledbPhysicalIoTransferredMetricAttributeKey specifies the key of an attribute for the oracledb.physical_io.transferred metric.
const ( OracledbPhysicalIoTransferredMetricAttributeKeyDiskIoDirection OracledbPhysicalIoTransferredMetricAttributeKey = "disk.io.direction" OracledbPhysicalIoTransferredMetricAttributeKeyDiskIoType OracledbPhysicalIoTransferredMetricAttributeKey = "disk.io.type" )
type OracledbPhysicalIoTransferredMetricConfig ¶ added in v0.154.0
type OracledbPhysicalIoTransferredMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbPhysicalIoTransferredMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbPhysicalIoTransferredMetricConfig provides config for the oracledb.physical_io.transferred metric.
func (*OracledbPhysicalIoTransferredMetricConfig) Unmarshal ¶ added in v0.154.0
func (ms *OracledbPhysicalIoTransferredMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbPhysicalIoTransferredMetricConfig) Validate ¶ added in v0.154.0
func (ms *OracledbPhysicalIoTransferredMetricConfig) Validate() error
type OracledbPhysicalReadIoRequestsMetricConfig ¶ added in v0.148.0
type OracledbPhysicalReadIoRequestsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbPhysicalReadIoRequestsMetricConfig provides config for the oracledb.physical_read_io_requests metric.
type OracledbPhysicalReadsDirectMetricConfig ¶ added in v0.148.0
type OracledbPhysicalReadsDirectMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbPhysicalReadsDirectMetricConfig provides config for the oracledb.physical_reads_direct metric.
type OracledbPhysicalReadsMetricConfig ¶ added in v0.148.0
type OracledbPhysicalReadsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbPhysicalReadsMetricConfig provides config for the oracledb.physical_reads metric.
type OracledbPhysicalWriteIoRequestsMetricConfig ¶ added in v0.148.0
type OracledbPhysicalWriteIoRequestsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbPhysicalWriteIoRequestsMetricConfig provides config for the oracledb.physical_write_io_requests metric.
type OracledbPhysicalWritesDirectMetricConfig ¶ added in v0.148.0
type OracledbPhysicalWritesDirectMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbPhysicalWritesDirectMetricConfig provides config for the oracledb.physical_writes_direct metric.
type OracledbPhysicalWritesMetricConfig ¶ added in v0.148.0
type OracledbPhysicalWritesMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbPhysicalWritesMetricConfig provides config for the oracledb.physical_writes metric.
type OracledbProcessesLimitMetricConfig ¶ added in v0.148.0
type OracledbProcessesLimitMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbProcessesLimitMetricConfig provides config for the oracledb.processes.limit metric.
type OracledbProcessesUsageMetricConfig ¶ added in v0.148.0
type OracledbProcessesUsageMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbProcessesUsageMetricConfig provides config for the oracledb.processes.usage metric.
type OracledbQueriesParallelizedMetricConfig ¶ added in v0.148.0
type OracledbQueriesParallelizedMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbQueriesParallelizedMetricConfig provides config for the oracledb.queries_parallelized metric.
type OracledbRecycleBinLimitMetricConfig ¶ added in v0.153.0
type OracledbRecycleBinLimitMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbRecycleBinLimitMetricConfig provides config for the oracledb.recycle_bin.limit metric.
type OracledbRedoAllocationUtilizationMetricConfig ¶ added in v0.154.0
type OracledbRedoAllocationUtilizationMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbRedoAllocationUtilizationMetricConfig provides config for the oracledb.redo_allocation.utilization metric.
type OracledbRedoBlocksMetricAttributeKey ¶ added in v0.156.0
type OracledbRedoBlocksMetricAttributeKey string
OracledbRedoBlocksMetricAttributeKey specifies the key of an attribute for the oracledb.redo.blocks metric.
const (
OracledbRedoBlocksMetricAttributeKeyDiskIoDirection OracledbRedoBlocksMetricAttributeKey = "disk.io.direction"
)
type OracledbRedoBlocksMetricConfig ¶ added in v0.156.0
type OracledbRedoBlocksMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbRedoBlocksMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbRedoBlocksMetricConfig provides config for the oracledb.redo.blocks metric.
func (*OracledbRedoBlocksMetricConfig) Unmarshal ¶ added in v0.156.0
func (ms *OracledbRedoBlocksMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbRedoBlocksMetricConfig) Validate ¶ added in v0.156.0
func (ms *OracledbRedoBlocksMetricConfig) Validate() error
type OracledbRedoOperationsMetricAttributeKey ¶ added in v0.156.0
type OracledbRedoOperationsMetricAttributeKey string
OracledbRedoOperationsMetricAttributeKey specifies the key of an attribute for the oracledb.redo.operations metric.
const (
OracledbRedoOperationsMetricAttributeKeyDiskIoDirection OracledbRedoOperationsMetricAttributeKey = "disk.io.direction"
)
type OracledbRedoOperationsMetricConfig ¶ added in v0.156.0
type OracledbRedoOperationsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbRedoOperationsMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbRedoOperationsMetricConfig provides config for the oracledb.redo.operations metric.
func (*OracledbRedoOperationsMetricConfig) Unmarshal ¶ added in v0.156.0
func (ms *OracledbRedoOperationsMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbRedoOperationsMetricConfig) Validate ¶ added in v0.156.0
func (ms *OracledbRedoOperationsMetricConfig) Validate() error
type OracledbRedoRequestsMetricAttributeKey ¶ added in v0.156.0
type OracledbRedoRequestsMetricAttributeKey string
OracledbRedoRequestsMetricAttributeKey specifies the key of an attribute for the oracledb.redo.requests metric.
const (
OracledbRedoRequestsMetricAttributeKeyOracledbRedoRequestType OracledbRedoRequestsMetricAttributeKey = "oracledb.redo.request.type"
)
type OracledbRedoRequestsMetricConfig ¶ added in v0.156.0
type OracledbRedoRequestsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbRedoRequestsMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbRedoRequestsMetricConfig provides config for the oracledb.redo.requests metric.
func (*OracledbRedoRequestsMetricConfig) Unmarshal ¶ added in v0.156.0
func (ms *OracledbRedoRequestsMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbRedoRequestsMetricConfig) Validate ¶ added in v0.156.0
func (ms *OracledbRedoRequestsMetricConfig) Validate() error
type OracledbRedoRetriesMetricAttributeKey ¶ added in v0.156.0
type OracledbRedoRetriesMetricAttributeKey string
OracledbRedoRetriesMetricAttributeKey specifies the key of an attribute for the oracledb.redo.retries metric.
const (
OracledbRedoRetriesMetricAttributeKeyOracledbRedoRetryType OracledbRedoRetriesMetricAttributeKey = "oracledb.redo.retry.type"
)
type OracledbRedoRetriesMetricConfig ¶ added in v0.156.0
type OracledbRedoRetriesMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbRedoRetriesMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbRedoRetriesMetricConfig provides config for the oracledb.redo.retries metric.
func (*OracledbRedoRetriesMetricConfig) Unmarshal ¶ added in v0.156.0
func (ms *OracledbRedoRetriesMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbRedoRetriesMetricConfig) Validate ¶ added in v0.156.0
func (ms *OracledbRedoRetriesMetricConfig) Validate() error
type OracledbRedoSizeMetricConfig ¶ added in v0.156.0
type OracledbRedoSizeMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbRedoSizeMetricConfig provides config for the oracledb.redo.size metric.
type OracledbRedoTimeMetricAttributeKey ¶ added in v0.156.0
type OracledbRedoTimeMetricAttributeKey string
OracledbRedoTimeMetricAttributeKey specifies the key of an attribute for the oracledb.redo.time metric.
const (
OracledbRedoTimeMetricAttributeKeyOracledbRedoType OracledbRedoTimeMetricAttributeKey = "oracledb.redo.type"
)
type OracledbRedoTimeMetricConfig ¶ added in v0.156.0
type OracledbRedoTimeMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbRedoTimeMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbRedoTimeMetricConfig provides config for the oracledb.redo.time metric.
func (*OracledbRedoTimeMetricConfig) Unmarshal ¶ added in v0.156.0
func (ms *OracledbRedoTimeMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbRedoTimeMetricConfig) Validate ¶ added in v0.156.0
func (ms *OracledbRedoTimeMetricConfig) Validate() error
type OracledbSQLServiceResponseDurationMetricConfig ¶ added in v0.154.0
type OracledbSQLServiceResponseDurationMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbSQLServiceResponseDurationMetricConfig provides config for the oracledb.sql_service.response.duration metric.
type OracledbScanCountMetricAttributeKey ¶ added in v0.156.0
type OracledbScanCountMetricAttributeKey string
OracledbScanCountMetricAttributeKey specifies the key of an attribute for the oracledb.scan.count metric.
const ( OracledbScanCountMetricAttributeKeyOracledbScanType OracledbScanCountMetricAttributeKey = "oracledb.scan.type" OracledbScanCountMetricAttributeKeyOracledbScanMode OracledbScanCountMetricAttributeKey = "oracledb.scan.mode" )
type OracledbScanCountMetricConfig ¶ added in v0.156.0
type OracledbScanCountMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbScanCountMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbScanCountMetricConfig provides config for the oracledb.scan.count metric.
func (*OracledbScanCountMetricConfig) Unmarshal ¶ added in v0.156.0
func (ms *OracledbScanCountMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbScanCountMetricConfig) Validate ¶ added in v0.156.0
func (ms *OracledbScanCountMetricConfig) Validate() error
type OracledbScanTableRowsMetricConfig ¶ added in v0.156.0
type OracledbScanTableRowsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbScanTableRowsMetricConfig provides config for the oracledb.scan.table.rows metric.
type OracledbSessionsLimitMetricConfig ¶ added in v0.148.0
type OracledbSessionsLimitMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbSessionsLimitMetricConfig provides config for the oracledb.sessions.limit metric.
type OracledbSessionsUsageMetricAttributeKey ¶ added in v0.148.0
type OracledbSessionsUsageMetricAttributeKey string
OracledbSessionsUsageMetricAttributeKey specifies the key of an attribute for the oracledb.sessions.usage metric.
const ( OracledbSessionsUsageMetricAttributeKeySessionType OracledbSessionsUsageMetricAttributeKey = "session_type" OracledbSessionsUsageMetricAttributeKeySessionStatus OracledbSessionsUsageMetricAttributeKey = "session_status" )
type OracledbSessionsUsageMetricConfig ¶ added in v0.148.0
type OracledbSessionsUsageMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbSessionsUsageMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbSessionsUsageMetricConfig provides config for the oracledb.sessions.usage metric.
func (*OracledbSessionsUsageMetricConfig) Unmarshal ¶ added in v0.148.0
func (ms *OracledbSessionsUsageMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbSessionsUsageMetricConfig) Validate ¶ added in v0.148.0
func (ms *OracledbSessionsUsageMetricConfig) Validate() error
type OracledbSharedPoolUtilizationMetricConfig ¶ added in v0.154.0
type OracledbSharedPoolUtilizationMetricConfig struct {
// contains filtered or unexported fields
}
OracledbSharedPoolUtilizationMetricConfig provides config for the oracledb.shared_pool.utilization metric.
type OracledbSortOperationsMetricAttributeKey ¶ added in v0.156.0
type OracledbSortOperationsMetricAttributeKey string
OracledbSortOperationsMetricAttributeKey specifies the key of an attribute for the oracledb.sort.operations metric.
const (
OracledbSortOperationsMetricAttributeKeyOracledbSortType OracledbSortOperationsMetricAttributeKey = "oracledb.sort.type"
)
type OracledbSortOperationsMetricConfig ¶ added in v0.156.0
type OracledbSortOperationsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbSortOperationsMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbSortOperationsMetricConfig provides config for the oracledb.sort.operations metric.
func (*OracledbSortOperationsMetricConfig) Unmarshal ¶ added in v0.156.0
func (ms *OracledbSortOperationsMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbSortOperationsMetricConfig) Validate ¶ added in v0.156.0
func (ms *OracledbSortOperationsMetricConfig) Validate() error
type OracledbSortRatioMetricAttributeKey ¶ added in v0.154.0
type OracledbSortRatioMetricAttributeKey string
OracledbSortRatioMetricAttributeKey specifies the key of an attribute for the oracledb.sort.ratio metric.
const (
OracledbSortRatioMetricAttributeKeyOracledbSortType OracledbSortRatioMetricAttributeKey = "oracledb.sort.type"
)
type OracledbSortRatioMetricConfig ¶ added in v0.154.0
type OracledbSortRatioMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbSortRatioMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbSortRatioMetricConfig provides config for the oracledb.sort.ratio metric.
func (*OracledbSortRatioMetricConfig) Unmarshal ¶ added in v0.154.0
func (ms *OracledbSortRatioMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbSortRatioMetricConfig) Validate ¶ added in v0.154.0
func (ms *OracledbSortRatioMetricConfig) Validate() error
type OracledbSortRowsMetricConfig ¶ added in v0.156.0
type OracledbSortRowsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbSortRowsMetricConfig provides config for the oracledb.sort.rows metric.
type OracledbSqlnetIoTransferredMetricAttributeKey ¶ added in v0.154.0
type OracledbSqlnetIoTransferredMetricAttributeKey string
OracledbSqlnetIoTransferredMetricAttributeKey specifies the key of an attribute for the oracledb.sqlnet.io.transferred metric.
const ( OracledbSqlnetIoTransferredMetricAttributeKeyNetworkIoDirection OracledbSqlnetIoTransferredMetricAttributeKey = "network.io.direction" OracledbSqlnetIoTransferredMetricAttributeKeyDestinationType OracledbSqlnetIoTransferredMetricAttributeKey = "destination.type" )
type OracledbSqlnetIoTransferredMetricConfig ¶ added in v0.154.0
type OracledbSqlnetIoTransferredMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbSqlnetIoTransferredMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbSqlnetIoTransferredMetricConfig provides config for the oracledb.sqlnet.io.transferred metric.
func (*OracledbSqlnetIoTransferredMetricConfig) Unmarshal ¶ added in v0.154.0
func (ms *OracledbSqlnetIoTransferredMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbSqlnetIoTransferredMetricConfig) Validate ¶ added in v0.154.0
func (ms *OracledbSqlnetIoTransferredMetricConfig) Validate() error
type OracledbStorageUsageMetricConfig ¶ added in v0.153.0
type OracledbStorageUsageMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbStorageUsageMetricConfig provides config for the oracledb.storage.usage metric.
type OracledbStorageUtilizationMetricConfig ¶ added in v0.153.0
type OracledbStorageUtilizationMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbStorageUtilizationMetricConfig provides config for the oracledb.storage.utilization metric.
type OracledbTablespaceSizeLimitMetricAttributeKey ¶ added in v0.148.0
type OracledbTablespaceSizeLimitMetricAttributeKey string
OracledbTablespaceSizeLimitMetricAttributeKey specifies the key of an attribute for the oracledb.tablespace_size.limit metric.
const (
OracledbTablespaceSizeLimitMetricAttributeKeyTablespaceName OracledbTablespaceSizeLimitMetricAttributeKey = "tablespace_name"
)
type OracledbTablespaceSizeLimitMetricConfig ¶ added in v0.148.0
type OracledbTablespaceSizeLimitMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbTablespaceSizeLimitMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbTablespaceSizeLimitMetricConfig provides config for the oracledb.tablespace_size.limit metric.
func (*OracledbTablespaceSizeLimitMetricConfig) Unmarshal ¶ added in v0.148.0
func (ms *OracledbTablespaceSizeLimitMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbTablespaceSizeLimitMetricConfig) Validate ¶ added in v0.148.0
func (ms *OracledbTablespaceSizeLimitMetricConfig) Validate() error
type OracledbTablespaceSizeUsageMetricAttributeKey ¶ added in v0.148.0
type OracledbTablespaceSizeUsageMetricAttributeKey string
OracledbTablespaceSizeUsageMetricAttributeKey specifies the key of an attribute for the oracledb.tablespace_size.usage metric.
const (
OracledbTablespaceSizeUsageMetricAttributeKeyTablespaceName OracledbTablespaceSizeUsageMetricAttributeKey = "tablespace_name"
)
type OracledbTablespaceSizeUsageMetricConfig ¶ added in v0.148.0
type OracledbTablespaceSizeUsageMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
AggregationStrategy string `mapstructure:"aggregation_strategy"`
EnabledAttributes []OracledbTablespaceSizeUsageMetricAttributeKey `mapstructure:"attributes"`
// contains filtered or unexported fields
}
OracledbTablespaceSizeUsageMetricConfig provides config for the oracledb.tablespace_size.usage metric.
func (*OracledbTablespaceSizeUsageMetricConfig) Unmarshal ¶ added in v0.148.0
func (ms *OracledbTablespaceSizeUsageMetricConfig) Unmarshal(parser *confmap.Conf) error
func (*OracledbTablespaceSizeUsageMetricConfig) Validate ¶ added in v0.148.0
func (ms *OracledbTablespaceSizeUsageMetricConfig) Validate() error
type OracledbTransactionsLimitMetricConfig ¶ added in v0.148.0
type OracledbTransactionsLimitMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbTransactionsLimitMetricConfig provides config for the oracledb.transactions.limit metric.
type OracledbTransactionsUsageMetricConfig ¶ added in v0.148.0
type OracledbTransactionsUsageMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbTransactionsUsageMetricConfig provides config for the oracledb.transactions.usage metric.
type OracledbUserCommitsMetricConfig ¶ added in v0.148.0
type OracledbUserCommitsMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbUserCommitsMetricConfig provides config for the oracledb.user_commits metric.
type OracledbUserRollbacksMetricConfig ¶ added in v0.148.0
type OracledbUserRollbacksMetricConfig struct {
Enabled bool `mapstructure:"enabled"`
// contains filtered or unexported fields
}
OracledbUserRollbacksMetricConfig provides config for the oracledb.user_rollbacks metric.
type ResourceAttributesConfig ¶ added in v0.77.0
type ResourceAttributesConfig struct {
HostName HostNameResourceAttributeConfig `mapstructure:"host.name"`
OracleDbHostingType OracleDbHostingTypeResourceAttributeConfig `mapstructure:"oracle.db.hosting_type"`
OracleDbOpenMode OracleDbOpenModeResourceAttributeConfig `mapstructure:"oracle.db.open_mode"`
OracleDbPdb OracleDbPdbResourceAttributeConfig `mapstructure:"oracle.db.pdb"`
OracleDbRole OracleDbRoleResourceAttributeConfig `mapstructure:"oracle.db.role"`
OracleDbVersion OracleDbVersionResourceAttributeConfig `mapstructure:"oracle.db.version"`
OracledbInstanceName OracledbInstanceNameResourceAttributeConfig `mapstructure:"oracledb.instance.name"`
ServiceInstanceID ServiceInstanceIDResourceAttributeConfig `mapstructure:"service.instance.id"`
ServiceName ServiceNameResourceAttributeConfig `mapstructure:"service.name"`
ServiceNamespace ServiceNamespaceResourceAttributeConfig `mapstructure:"service.namespace"`
}
ResourceAttributesConfig provides config for oracledb resource attributes.
func DefaultResourceAttributesConfig ¶ added in v0.77.0
func DefaultResourceAttributesConfig() ResourceAttributesConfig
type ResourceBuilder ¶ added in v0.82.0
type ResourceBuilder struct {
// contains filtered or unexported fields
}
ResourceBuilder is a helper struct to build resources predefined in metadata.yaml. The ResourceBuilder is not thread-safe and must not to be used in multiple goroutines.
func NewResourceBuilder ¶ added in v0.82.0
func NewResourceBuilder(rac ResourceAttributesConfig) *ResourceBuilder
NewResourceBuilder creates a new ResourceBuilder. This method should be called on the start of the application.
func (*ResourceBuilder) Emit ¶ added in v0.82.0
func (rb *ResourceBuilder) Emit() pcommon.Resource
Emit returns the built resource and resets the internal builder state.
func (*ResourceBuilder) SetHostName ¶ added in v0.131.0
func (rb *ResourceBuilder) SetHostName(val string)
SetHostName sets provided value as "host.name" attribute.
func (*ResourceBuilder) SetOracleDbHostingType ¶ added in v0.154.0
func (rb *ResourceBuilder) SetOracleDbHostingType(val string)
SetOracleDbHostingType sets provided value as "oracle.db.hosting_type" attribute.
func (*ResourceBuilder) SetOracleDbOpenMode ¶ added in v0.154.0
func (rb *ResourceBuilder) SetOracleDbOpenMode(val string)
SetOracleDbOpenMode sets provided value as "oracle.db.open_mode" attribute.
func (*ResourceBuilder) SetOracleDbPdb ¶ added in v0.154.0
func (rb *ResourceBuilder) SetOracleDbPdb(val string)
SetOracleDbPdb sets provided value as "oracle.db.pdb" attribute.
func (*ResourceBuilder) SetOracleDbRole ¶ added in v0.154.0
func (rb *ResourceBuilder) SetOracleDbRole(val string)
SetOracleDbRole sets provided value as "oracle.db.role" attribute.
func (*ResourceBuilder) SetOracleDbVersion ¶ added in v0.154.0
func (rb *ResourceBuilder) SetOracleDbVersion(val string)
SetOracleDbVersion sets provided value as "oracle.db.version" attribute.
func (*ResourceBuilder) SetOracledbInstanceName ¶ added in v0.82.0
func (rb *ResourceBuilder) SetOracledbInstanceName(val string)
SetOracledbInstanceName sets provided value as "oracledb.instance.name" attribute.
func (*ResourceBuilder) SetServiceInstanceID ¶ added in v0.137.0
func (rb *ResourceBuilder) SetServiceInstanceID(val string)
SetServiceInstanceID sets provided value as "service.instance.id" attribute.
func (*ResourceBuilder) SetServiceName ¶ added in v0.156.0
func (rb *ResourceBuilder) SetServiceName(val string)
SetServiceName sets provided value as "service.name" attribute.
func (*ResourceBuilder) SetServiceNamespace ¶ added in v0.156.0
func (rb *ResourceBuilder) SetServiceNamespace(val string)
SetServiceNamespace sets provided value as "service.namespace" attribute.
type ResourceLogsOption ¶ added in v0.131.0
type ResourceLogsOption interface {
// contains filtered or unexported methods
}
ResourceLogsOption applies changes to provided resource logs.
func WithLogsResource ¶ added in v0.131.0
func WithLogsResource(res pcommon.Resource) ResourceLogsOption
WithLogsResource sets the provided resource on the emitted ResourceLogs. It's recommended to use ResourceBuilder to create the resource.
type ResourceMetricsOption ¶
type ResourceMetricsOption interface {
// contains filtered or unexported methods
}
ResourceMetricsOption applies changes to provided resource metrics.
func WithResource ¶ added in v0.82.0
func WithResource(res pcommon.Resource) ResourceMetricsOption
WithResource sets the provided resource on the emitted ResourceMetrics. It's recommended to use ResourceBuilder to create the resource.
func WithStartTimeOverride ¶
func WithStartTimeOverride(start pcommon.Timestamp) ResourceMetricsOption
WithStartTimeOverride overrides start time for all the resource metrics data points. This option should be only used if different start time has to be set on metrics coming from different resources.
type ServiceInstanceIDResourceAttributeConfig ¶ added in v0.156.0
type ServiceInstanceIDResourceAttributeConfig struct {
Enabled bool `mapstructure:"enabled"`
// OverrideValue allows users to override the value of this resource attribute.
OverrideValue *string `mapstructure:"override_value"`
// Experimental: MetricsInclude defines a list of filters for attribute values.
// If the list is not empty, only metrics with matching resource attribute values will be emitted.
MetricsInclude []filter.Config `mapstructure:"metrics_include"`
// Experimental: MetricsExclude defines a list of filters for attribute values.
// If the list is not empty, metrics with matching resource attribute values will not be emitted.
// MetricsInclude has higher priority than MetricsExclude.
MetricsExclude []filter.Config `mapstructure:"metrics_exclude"`
// Experimental: EventsInclude defines a list of filters for attribute values.
// If the list is not empty, only events with matching resource attribute values will be emitted.
EventsInclude []filter.Config `mapstructure:"events_include"`
// Experimental: EventsExclude defines a list of filters for attribute values.
// If the list is not empty, events with matching resource attribute values will not be emitted.
// EventsInclude has higher priority than EventsExclude.
EventsExclude []filter.Config `mapstructure:"events_exclude"`
// contains filtered or unexported fields
}
ServiceInstanceIDResourceAttributeConfig provides config for the service.instance.id resource attribute.
type ServiceNameResourceAttributeConfig ¶ added in v0.156.0
type ServiceNameResourceAttributeConfig struct {
Enabled bool `mapstructure:"enabled"`
// OverrideValue allows users to override the value of this resource attribute.
OverrideValue *string `mapstructure:"override_value"`
// Experimental: MetricsInclude defines a list of filters for attribute values.
// If the list is not empty, only metrics with matching resource attribute values will be emitted.
MetricsInclude []filter.Config `mapstructure:"metrics_include"`
// Experimental: MetricsExclude defines a list of filters for attribute values.
// If the list is not empty, metrics with matching resource attribute values will not be emitted.
// MetricsInclude has higher priority than MetricsExclude.
MetricsExclude []filter.Config `mapstructure:"metrics_exclude"`
// Experimental: EventsInclude defines a list of filters for attribute values.
// If the list is not empty, only events with matching resource attribute values will be emitted.
EventsInclude []filter.Config `mapstructure:"events_include"`
// Experimental: EventsExclude defines a list of filters for attribute values.
// If the list is not empty, events with matching resource attribute values will not be emitted.
// EventsInclude has higher priority than EventsExclude.
EventsExclude []filter.Config `mapstructure:"events_exclude"`
// contains filtered or unexported fields
}
ServiceNameResourceAttributeConfig provides config for the service.name resource attribute.
type ServiceNamespaceResourceAttributeConfig ¶ added in v0.156.0
type ServiceNamespaceResourceAttributeConfig struct {
Enabled bool `mapstructure:"enabled"`
// OverrideValue allows users to override the value of this resource attribute.
OverrideValue *string `mapstructure:"override_value"`
// Experimental: MetricsInclude defines a list of filters for attribute values.
// If the list is not empty, only metrics with matching resource attribute values will be emitted.
MetricsInclude []filter.Config `mapstructure:"metrics_include"`
// Experimental: MetricsExclude defines a list of filters for attribute values.
// If the list is not empty, metrics with matching resource attribute values will not be emitted.
// MetricsInclude has higher priority than MetricsExclude.
MetricsExclude []filter.Config `mapstructure:"metrics_exclude"`
// Experimental: EventsInclude defines a list of filters for attribute values.
// If the list is not empty, only events with matching resource attribute values will be emitted.
EventsInclude []filter.Config `mapstructure:"events_include"`
// Experimental: EventsExclude defines a list of filters for attribute values.
// If the list is not empty, events with matching resource attribute values will not be emitted.
// EventsInclude has higher priority than EventsExclude.
EventsExclude []filter.Config `mapstructure:"events_exclude"`
// contains filtered or unexported fields
}
ServiceNamespaceResourceAttributeConfig provides config for the service.namespace resource attribute.