Skip to main content

IBM DB2

Plugin: ibm.d.plugin Module: db2

Overview

Monitors IBM DB2 databases using system catalog views and MON_GET_* table functions to expose connections, locking, buffer pool efficiency, tablespace capacity, and workload performance metrics.

Detailed charts are opt-in per object family through include/exclude lists. Defaults focus on engine activity (system connections, core buffer pools, catalog tablespaces). Matching uses glob patterns that can target schema or application names, with include rules taking precedence over excludes.

When the number of matching objects exceeds the configured max_* limits, the collector publishes deterministic top-N per-instance charts, aggregates the remainder under group="__other__", and logs a throttled warning so you can refine selectors before cardinality runs away. Group charts (by schema, application prefix, or buffer pool family) are always emitted so high-level visibility is preserved even when individual instances are trimmed.

The collector connects to IBM DB2 and collects metrics via its monitoring interface.

This collector is supported on all platforms.

This collector supports collecting metrics from multiple instances of this integration, including remote instances.

Default Behavior

Auto-Detection

This integration doesn't support auto-detection.

Limits

The default configuration for this integration does not impose any limits on data collection.

Performance Impact

The default configuration for this integration is not expected to impose a significant performance impact on the system.

Setup

Prerequisites

Enable monitoring interface

Ensure the IBM DB2 monitoring interface is accessible.

Configuration

Options

Configuration options for the db2 collector.

Config options
OptionDescriptionDefaultRequired
update_everyData collection frequency.1no
endpointConnection endpoint.dummy://localhostno

via File

The configuration file name for this integration is ibm.d/db2.conf.

You can edit the configuration file using the edit-config script from the Netdata config directory.

cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
sudo ./edit-config ibm.d/db2.conf
Examples
Basic

Basic configuration example.

Config
jobs:
- name: local
endpoint: dummy://localhost

Alerts

There are no alerts configured by default for this integration.

Metrics

Metrics grouped by scope.

The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.

Per bufferpool

These metrics refer to bufferpool instances.

Labels:

LabelDescription
bufferpoolBufferpool identifier
page_sizePage_size identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.bufferpool_instance_hit_ratioBuffer Pool Hit Ratiooverallpercentage
db2.bufferpool_instance_detailed_hit_ratioBuffer Pool Detailed Hit Ratiosdata, index, xda, columnpercentage
db2.bufferpool_instance_readsBuffer Pool Readslogical, physicalreads/s
db2.bufferpool_instance_data_readsBuffer Pool Data Page Readslogical, physicalreads/s
db2.bufferpool_instance_index_readsBuffer Pool Index Page Readslogical, physicalreads/s
db2.bufferpool_instance_pagesBuffer Pool Pagesused, totalpages
db2.bufferpool_instance_writesBuffer Pool Writeswriteswrites/s

Per bufferpoolgroup

These metrics refer to bufferpoolgroup instances.

Labels:

LabelDescription
groupGroup identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.bufferpool_group_hit_ratioBuffer Pool Group Hit Ratiooverallpercentage
db2.bufferpool_group_detailed_hit_ratioBuffer Pool Group Detailed Hit Ratiosdata, index, xda, columnpercentage
db2.bufferpool_group_readsBuffer Pool Group Readslogical, physicalreads/s
db2.bufferpool_group_data_readsBuffer Pool Group Data Readslogical, physicalreads/s
db2.bufferpool_group_index_readsBuffer Pool Group Index Readslogical, physicalreads/s
db2.bufferpool_group_pagesBuffer Pool Group Pagesused, totalpages
db2.bufferpool_group_writesBuffer Pool Group Writeswriteswrites/s

Per connection

These metrics refer to connection instances.

Labels:

LabelDescription
application_idApplication_id identifier
application_nameApplication_name identifier
client_hostnameClient_hostname identifier
client_ipClient_ip identifier
client_userClient_user identifier
stateState identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.connection_stateConnection Statestatestate
db2.connection_activityConnection Row Activityread, writtenrows/s
db2.connection_wait_timeConnection Wait Timelock, log_disk, log_buffer, pool_read, pool_write, direct_read, direct_write, fcm_recv, fcm_sendmilliseconds
db2.connection_processing_timeConnection Processing Timeroutine, compile, section, commit, rollbackmilliseconds

Per connectiongroup

These metrics refer to connectiongroup instances.

Labels:

LabelDescription
groupGroup identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.connection_group.countConnection Group Countcountconnections
db2.connection_group.stateConnection Group State Sumstatestate
db2.connection_group.activityConnection Group Row Activityread, writtenrows/s
db2.connection_group.wait_timeConnection Group Wait Timelock, log_disk, log_buffer, pool_read, pool_write, direct_read, direct_write, fcm_recv, fcm_sendmilliseconds
db2.connection_group.processing_timeConnection Group Processing Timeroutine, compile, section, commit, rollbackmilliseconds

Per database

These metrics refer to database instances.

Labels:

LabelDescription
databaseDatabase identifier
statusStatus identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.database_instance_statusDatabase Statusstatusstatus
db2.database_applicationsDatabase Applicationsapplicationsapplications

Per index

These metrics refer to index instances.

Labels:

LabelDescription
indexIndex identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.index_usageIndex Usageindex, fullscans/s

Per indexgroup

These metrics refer to indexgroup instances.

Labels:

LabelDescription
groupGroup identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.index_group_usageIndex Group Usageindex, fullscans/s

Per memorypool

These metrics refer to memorypool instances.

Labels:

LabelDescription
pool_typePool_type identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.memory_pool_usageMemory Pool Usageusedbytes
db2.memory_pool_hwmMemory Pool High Water Markhwmbytes

Per memoryset

These metrics refer to memoryset instances.

Labels:

LabelDescription
hostHost identifier
databaseDatabase identifier
set_typeSet_type identifier
memberMember identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.memory_set_usageMemory Set Usageusedbytes
db2.memory_set_committedMemory Set Committedcommittedbytes
db2.memory_set_high_water_markMemory Set High Water Markhwmbytes
db2.memory_set_additional_committedMemory Set Additional Committedadditionalbytes
db2.memory_set_percent_used_hwmMemory Set Percent Used vs HWMused_hwmpercentage

Per prefetcher

These metrics refer to prefetcher instances.

Labels:

LabelDescription
bufferpoolBufferpool identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.prefetcher_prefetch_ratioPrefetcher Prefetch Ratioratiopercentage
db2.prefetcher_cleaner_ratioPrefetcher Cleaner Ratioratiopercentage
db2.prefetcher_physical_readsPrefetcher Physical Readsreadsreads/s
db2.prefetcher_async_readsPrefetcher Asynchronous Readsreadsreads/s
db2.prefetcher_wait_timePrefetcher Wait Timewait_timemilliseconds
db2.prefetcher_unread_pagesPrefetcher Unread Pagesunreadpages/s

Per IBM DB2 instance

These metrics refer to the entire monitored instance.

This scope has no labels.

Metrics:

MetricDescriptionDimensionsUnit
db2.service_healthService Health Statusconnection, databasestatus
db2.connectionsDatabase Connectionstotal, active, executing, idle, max_allowedconnections
db2.lockingDatabase Lockingwaits, timeouts, escalationsevents/s
db2.deadlocksDatabase Deadlocksdeadlocksdeadlocks/s
db2.lock_detailsLock Detailsactive, waiting_agents, memory_pageslocks
db2.lock_wait_timeAverage Lock Wait Timewait_timemilliseconds
db2.sortingDatabase Sortingsorts, overflowssorts/s
db2.row_activityRow Activityread, returned, modifiedrows/s
db2.bufferpool_hit_ratioBuffer Pool Hit Ratiohits, missespercentage
db2.bufferpool_data_hit_ratioBuffer Pool Data Page Hit Ratiohits, missespercentage
db2.bufferpool_index_hit_ratioBuffer Pool Index Page Hit Ratiohits, missespercentage
db2.bufferpool_xda_hit_ratioBuffer Pool XDA Page Hit Ratiohits, missespercentage
db2.bufferpool_column_hit_ratioBuffer Pool Column Page Hit Ratiohits, missespercentage
db2.bufferpool_readsBuffer Pool Readslogical, physicalreads/s
db2.bufferpool_data_readsBuffer Pool Data Page Readslogical, physicalreads/s
db2.bufferpool_index_readsBuffer Pool Index Page Readslogical, physicalreads/s
db2.bufferpool_xda_readsBuffer Pool XDA Page Readslogical, physicalreads/s
db2.bufferpool_column_readsBuffer Pool Column Page Readslogical, physicalreads/s
db2.bufferpool_writesBuffer Pool Writeswriteswrites/s
db2.log_spaceLog Space Usageused, availablebytes
db2.log_utilizationLog Space Utilizationutilizationpercentage
db2.log_ioLog I/O Operationsreads, writesoperations/s
db2.log_operationsLog Operationscommits, rollbacks, reads, writesoperations/s
db2.log_timingLog Operation Timesavg_commit, avg_read, avg_writemilliseconds
db2.log_buffer_eventsLog Buffer Full Eventsbuffer_fullevents/s
db2.long_running_queriesLong Running Queriestotal, warning, criticalqueries
db2.backup_statusLast Backup Statusstatusstatus
db2.backup_ageTime Since Last Backupfull, incrementalhours
db2.federation_connectionsFederated Connectionsactive, idleconnections
db2.federation_operationsFederated Operationsrows_read, selects, waitsoperations/s
db2.database_statusCurrent Database Statusactive, inactivestatus
db2.database_countDatabase Countactive, inactivedatabases
db2.cpu_usageCPU Usage (100% = 1 CPU core)user, system, idle, iowaitpercentage
db2.active_connectionsActive Connectionsactive, totalconnections
db2.memory_usageMemory Usagedatabase, instance, bufferpool, shared_sortMiB
db2.sql_statementsSQL Statementsselects, modificationsstatements/s
db2.transaction_activityTransaction Activitycommitted, abortedtransactions/s
db2.time_spentAverage Operation Timesdirect_read, direct_write, pool_read, pool_writemilliseconds

Per table

These metrics refer to table instances.

Labels:

LabelDescription
tableTable identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.table_sizeTable Sizedata, index, long_objbytes
db2.table_activityTable Activityread, writtenrows/s

Per tablegroup

These metrics refer to tablegroup instances.

Labels:

LabelDescription
groupGroup identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.table_group_sizeTable Group Sizedata, index, long_objbytes
db2.table_group_activityTable Group Activityread, writtenrows/s

Per tableio

These metrics refer to tableio instances.

Labels:

LabelDescription
tableTable identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.table_io_scansTable Scansscansscans/s
db2.table_io_rowsTable Row Operationsreadrows/s
db2.table_io_activityTable DML Activityinserts, updates, deletesoperations/s
db2.table_io_overflowTable Overflow Accessesoverflowaccesses/s

Per tablespace

These metrics refer to tablespace instances.

Labels:

LabelDescription
tablespaceTablespace identifier
typeType identifier
content_typeContent_type identifier
stateState identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.tablespace_usageTablespace Usageusedpercentage
db2.tablespace_sizeTablespace Sizeused, freebytes
db2.tablespace_usable_sizeTablespace Usable Sizetotal, usablebytes
db2.tablespace_stateTablespace Statestatestate

Per tablespacegroup

These metrics refer to tablespacegroup instances.

Labels:

LabelDescription
groupGroup identifier

Metrics:

MetricDescriptionDimensionsUnit
db2.tablespace_group_usageTablespace Group Usageusedpercentage
db2.tablespace_group_sizeTablespace Group Sizeused, freebytes
db2.tablespace_group_usable_sizeTablespace Group Usable Sizetotal, usablebytes
db2.tablespace_group_stateTablespace Group Statestatestate

Do you have any feedback for this page? If so, you can open a new issue on our netdata/learn repository.