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.

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:

MetricDimensionsUnit
db2.bufferpool_instance_hit_ratiooverallpercentage
db2.bufferpool_instance_detailed_hit_ratiodata, index, xda, columnpercentage
db2.bufferpool_instance_readslogical, physicalreads/s
db2.bufferpool_instance_data_readslogical, physicalreads/s
db2.bufferpool_instance_index_readslogical, physicalreads/s
db2.bufferpool_instance_pagesused, totalpages
db2.bufferpool_instance_writeswriteswrites/s

Per bufferpoolgroup

These metrics refer to bufferpoolgroup instances.

Labels:

LabelDescription
groupGroup identifier

Metrics:

MetricDimensionsUnit
db2.bufferpool_group_hit_ratiooverallpercentage
db2.bufferpool_group_detailed_hit_ratiodata, index, xda, columnpercentage
db2.bufferpool_group_readslogical, physicalreads/s
db2.bufferpool_group_data_readslogical, physicalreads/s
db2.bufferpool_group_index_readslogical, physicalreads/s
db2.bufferpool_group_pagesused, totalpages
db2.bufferpool_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:

MetricDimensionsUnit
db2.connection_statestatestate
db2.connection_activityread, writtenrows/s
db2.connection_wait_timelock, log_disk, log_buffer, pool_read, pool_write, direct_read, direct_write, fcm_recv, fcm_sendmilliseconds
db2.connection_processing_timeroutine, compile, section, commit, rollbackmilliseconds

Per connectiongroup

These metrics refer to connectiongroup instances.

Labels:

LabelDescription
groupGroup identifier

Metrics:

MetricDimensionsUnit
db2.connection_group.countcountconnections
db2.connection_group.statestatestate
db2.connection_group.activityread, writtenrows/s
db2.connection_group.wait_timelock, log_disk, log_buffer, pool_read, pool_write, direct_read, direct_write, fcm_recv, fcm_sendmilliseconds
db2.connection_group.processing_timeroutine, compile, section, commit, rollbackmilliseconds

Per database

These metrics refer to database instances.

Labels:

LabelDescription
databaseDatabase identifier
statusStatus identifier

Metrics:

MetricDimensionsUnit
db2.database_instance_statusstatusstatus
db2.database_applicationsapplicationsapplications

Per index

These metrics refer to index instances.

Labels:

LabelDescription
indexIndex identifier

Metrics:

MetricDimensionsUnit
db2.index_usageindex, fullscans/s

Per indexgroup

These metrics refer to indexgroup instances.

Labels:

LabelDescription
groupGroup identifier

Metrics:

MetricDimensionsUnit
db2.index_group_usageindex, fullscans/s

Per memorypool

These metrics refer to memorypool instances.

Labels:

LabelDescription
pool_typePool_type identifier

Metrics:

MetricDimensionsUnit
db2.memory_pool_usageusedbytes
db2.memory_pool_hwmhwmbytes

Per memoryset

These metrics refer to memoryset instances.

Labels:

LabelDescription
hostHost identifier
databaseDatabase identifier
set_typeSet_type identifier
memberMember identifier

Metrics:

MetricDimensionsUnit
db2.memory_set_usageusedbytes
db2.memory_set_committedcommittedbytes
db2.memory_set_high_water_markhwmbytes
db2.memory_set_additional_committedadditionalbytes
db2.memory_set_percent_used_hwmused_hwmpercentage

Per prefetcher

These metrics refer to prefetcher instances.

Labels:

LabelDescription
bufferpoolBufferpool identifier

Metrics:

MetricDimensionsUnit
db2.prefetcher_prefetch_ratioratiopercentage
db2.prefetcher_cleaner_ratioratiopercentage
db2.prefetcher_physical_readsreadsreads/s
db2.prefetcher_async_readsreadsreads/s
db2.prefetcher_wait_timewait_timemilliseconds
db2.prefetcher_unread_pagesunreadpages/s

Per IBM DB2 instance

These metrics refer to the entire monitored instance.

This scope has no labels.

Metrics:

MetricDimensionsUnit
db2.service_healthconnection, databasestatus
db2.connectionstotal, active, executing, idle, max_allowedconnections
db2.lockingwaits, timeouts, escalationsevents/s
db2.deadlocksdeadlocksdeadlocks/s
db2.lock_detailsactive, waiting_agents, memory_pageslocks
db2.lock_wait_timewait_timemilliseconds
db2.sortingsorts, overflowssorts/s
db2.row_activityread, returned, modifiedrows/s
db2.bufferpool_hit_ratiohits, missespercentage
db2.bufferpool_data_hit_ratiohits, missespercentage
db2.bufferpool_index_hit_ratiohits, missespercentage
db2.bufferpool_xda_hit_ratiohits, missespercentage
db2.bufferpool_column_hit_ratiohits, missespercentage
db2.bufferpool_readslogical, physicalreads/s
db2.bufferpool_data_readslogical, physicalreads/s
db2.bufferpool_index_readslogical, physicalreads/s
db2.bufferpool_xda_readslogical, physicalreads/s
db2.bufferpool_column_readslogical, physicalreads/s
db2.bufferpool_writeswriteswrites/s
db2.log_spaceused, availablebytes
db2.log_utilizationutilizationpercentage
db2.log_ioreads, writesoperations/s
db2.log_operationscommits, rollbacks, reads, writesoperations/s
db2.log_timingavg_commit, avg_read, avg_writemilliseconds
db2.log_buffer_eventsbuffer_fullevents/s
db2.long_running_queriestotal, warning, criticalqueries
db2.backup_statusstatusstatus
db2.backup_agefull, incrementalhours
db2.federation_connectionsactive, idleconnections
db2.federation_operationsrows_read, selects, waitsoperations/s
db2.database_statusactive, inactivestatus
db2.database_countactive, inactivedatabases
db2.cpu_usageuser, system, idle, iowaitpercentage
db2.active_connectionsactive, totalconnections
db2.memory_usagedatabase, instance, bufferpool, shared_sortMiB
db2.sql_statementsselects, modificationsstatements/s
db2.transaction_activitycommitted, abortedtransactions/s
db2.time_spentdirect_read, direct_write, pool_read, pool_writemilliseconds

Per table

These metrics refer to table instances.

Labels:

LabelDescription
tableTable identifier

Metrics:

MetricDimensionsUnit
db2.table_sizedata, index, long_objbytes
db2.table_activityread, writtenrows/s

Per tablegroup

These metrics refer to tablegroup instances.

Labels:

LabelDescription
groupGroup identifier

Metrics:

MetricDimensionsUnit
db2.table_group_sizedata, index, long_objbytes
db2.table_group_activityread, writtenrows/s

Per tableio

These metrics refer to tableio instances.

Labels:

LabelDescription
tableTable identifier

Metrics:

MetricDimensionsUnit
db2.table_io_scansscansscans/s
db2.table_io_rowsreadrows/s
db2.table_io_activityinserts, updates, deletesoperations/s
db2.table_io_overflowoverflowaccesses/s

Per tablespace

These metrics refer to tablespace instances.

Labels:

LabelDescription
tablespaceTablespace identifier
typeType identifier
content_typeContent_type identifier
stateState identifier

Metrics:

MetricDimensionsUnit
db2.tablespace_usageusedpercentage
db2.tablespace_sizeused, freebytes
db2.tablespace_usable_sizetotal, usablebytes
db2.tablespace_statestatestate

Per tablespacegroup

These metrics refer to tablespacegroup instances.

Labels:

LabelDescription
groupGroup identifier

Metrics:

MetricDimensionsUnit
db2.tablespace_group_usageusedpercentage
db2.tablespace_group_sizeused, freebytes
db2.tablespace_group_usable_sizetotal, usablebytes
db2.tablespace_group_statestatestate

Alerts

There are no alerts configured by default for this integration.

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


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