Skip to main content

IBM DB2 metrics

Database metrics are a comprehensive collection of database workloads and resource usages. The WhaTap monitoring service continuously collects metrics to identify bottlenecks in the database and provides data to help identify the root causes of performance issues.

For more information about other metrics, see the link.

agent_status_summary

This category collects metrics related to agent status every 10 seconds.

Fields

FieldTypeUnitDescription
inActTime-Millisecond(ms)Amount of time the agent remains inactive
isActiveBoolean-Whether the agent is active or not
isRestartBoolean-Whether the agent was restarted recently (true / false)
lastActTime-Millisecond(ms)Last time when the agent was activated (0: Disabled)
oid--Unique IDs for each agent in the project
startTime-Millisecond(ms)Timestamp when the agent was started.

db_db2_counter

  • Collection interval: 5 seconds

  • Statistical data: 5 minutes, 1 hour

Tags

The following lists the tags that are collected in the db_db2_counter category.

TagDescriptionRemarks
dbTypeDatabase type.-
dbVersionVersion of the database in use.-
onameAgent nameUnique value

Field

The following lists the fields that are collected in the db_db2_counter category.

MetricsDescription
active_sessionsNumber of active sessions
col_hit_ratioHit ratio of the column cache
col_logical_readsNumber of logical reads for columns
col_physical_readsNumber of physical reads for columns
col_reads_totalTotal number of reads for columns
connect_errorNumber of database connection errors
cpu_coresNumber of CPU cores in use
cpu_usage_totalTotal CPU usage (%)
data_hit_ratioData cache hit ratio
data_logical_readsNumber of logical reads for data
data_physical_readsNumber of physical reads for data
data_reads_totalTotal number of reads for data
direct_readNumber of direct reads
direct_readtimeDirect reading time
direct_writeNumber of direct writes
direct_writetimeDirect writing time
fatalNumber of fatal errors
countTotal number of specific events or items
gbp_column_hit_ratioHit ratio of the GBP column cache
gbp_data_hit_ratioHit ratio of the GBP data cache
gbp_index_hit_ratioHit ratio of the GBP index cache
gbp_index_logical_readsNumber of GBP index logical reads
gbp_index_physical_readsNumber of GBP index physical reads
gbp_logical_readsNumber of GBP data logical reads
gbp_physical_readsNumber of GBP data physical reads
gbp_total_hit_ratioHit ratio of the GBP total cache
gbp_xda_hit_ratioHit ratio of the GBP XDA cache
gbp_xda_logical_readsNumber of GBP XDA logical reads
gbp_xda_physical_readsNumber of GBP XDA physical reads
index_hit_ratioHit ratio of the index cache
index_logical_readsNumber of index logical reads
index_physical_readsNumber of index physical reads
index_reads_totalNumber of all index reads
lock_wait_sessionsNumber of lock waiting sessions
log_readsNumber of log reads
log_writesNumber of log writes
max_applsMaximum application count
max_connectionsMaximum connection count
memMemory usage
memory_freeAvailable memory size (GB)
memory_swap_freeAvailable swap memory size (GB)
memory_swap_totalTotal swap memory size (GB)
memory_totalTotal memory size (GB)
reads_totalNumber of all reads
rows_deletedNumber of deleted rows
rows_insertedNumber of inserted rows
rows_modifiedNumber of modified rows
rows_readNumber of read rows
rows_returnedNumber of returned rows
rows_updatedNumber of updated rows
total_commit_countNumber of all commits
total_hit_ratioTotal cache hit ratio
total_log_availableAvailable total log capacity (GB)
total_log_usedAvailable total log capacity (GB)
total_log_used_percentUsed total log ratio (%)
total_rollback_countNumber of all rollbacks
total_rollback_timeTotal rollback time (ms)
total_runstats_timeTotal statistics execution time
total_sessionsNumber of all sessions
warningNumber of warnings occurred
xda_hit_ratioXDA cache hit ratio
xda_logical_readsNumber of XDA logical reads
xda_physical_readsNumber of XDA physical reads
xda_reads_totalNumber of all XDA reads

XOS-related metrics

The following describes the metrics collected from the XOS agent.

MetricUnitDescription
cpu(xos)pctCPU utilization
cpu_user + cpu_sys + cpu_iowait
cpu_idle(xos)pctCPU idle time
cpu_iowait(xos)pctCPU's I/O waiting time
cpu_sys(xos)pctCPU's kernel code execution time
cpu_user(xos)pctCPU's user code execution time
disk_read_bytes(xos)byteNumber of data blocks read from disk
disk_reads(xos)blockNumber of buffers read from disk
disk_write_bytes(xos)byteNumber of pages written to disk
disk_writes(xos)blockNumber of buffers written to disk
mem(xos)pctMemory utilization
mem_available(xos)MBShared memory size
mem_buffcache(xos)MBAmount of memory used by the buff/cache
mem_free(xos)MBMemory not in use
mem_swapfree(xos)MBUnused swap space size
Because swap uses disk space, it may cause performance degradation.
mem_swaptotal(xos)MBTotal swap size
It is used when physical memory is insufficient.
mem_total(xos)MBTotal memory size
mem_used(xos)MBMemory size in use
net_recv_bytes(xos)byteAmount of data transmitted over the network
net_recv_packets(xos)countNumber of data packets transmitted over the network
net_send_bytes(xos)byteAmount of data transmitted over the network
net_send_packets(xos)countNumber of data packets transmitted over the network