====== SAP HANA Replication Secondary DB Statistics Monitoring ====== This monitor targets SAP HANA secondary replication service entries and lets you scope monitoring by host/service. It provides alarm/metric configuration hooks per surveillance row. **This monitor is currently work in progress** ===== What Can Be Monitored ===== You can configure monitoring scope by: * Primary host filter * Service (port) filter * Per-row activation, alarm enablement, and metric enablement **Current implementation note:** this monitor runner currently has no threshold evaluation logic, so no concrete secondary-statistics alarm rule is executed yet. ===== Monitored Data ===== The monitor input job requests replication status data (from HANA replication service views), including: * Host and service identity * Primary/secondary replication context * Replication status/mode metadata * Related replication statistics fields available in the shared replication result set ===== Configuration Hints ===== * One surveillance row defines one host/service selection scope. * Wildcards are supported in **Host** and **Service** (for example `*`). * **Auto clear** controls whether generated alarms are clearable. * **Alarm** and **Metrics** flags enable corresponding output paths for that row. ===== Configuration ===== ==== Monitoring Parameters ==== ^ Parameter ^ Type ^ Required ^ Default ^ Description ^ | (none) | - | - | - | This monitor has no global parameters; configuration is done in the surveillance table. | ==== Surveillance Table ==== ^ Field ^ Required ^ Default ^ Description ^ | Active | Yes | `true` | Enables/disables this surveillance row. | | Host | Yes | `*` | Primary host selector (supports wildcard matching). | | Service | Yes | `*` | Service/port selector (supports wildcard matching). | | Auto clear | Yes | `true` | Alarms generated by this row are clearable when enabled. | | Severity | Yes | `Critical` | Default alarm severity for this row (`5 => Critical`). | | Alarm tag | No | (empty) | Optional custom alarm tag/prefix. | | Alarm | No | `true` | Enables/disables alarm generation for this row. | | Metrics | No | `false` | Enables/disables metric generation for this row. | ===== Alarm Conditions ===== In the current implementation, no explicit threshold/condition checks are implemented in this monitor runner. As a result, there are no active built-in alarm trigger conditions yet. ===== Generated Metrics ===== In the current implementation, no metrics are emitted by this monitor runner. ===== Generated Alarms ===== In the current implementation, no alarms are emitted by this monitor runner. ===== Example ===== ^ Active ^ Host ^ Service ^ Auto clear ^ Severity ^ Alarm tag ^ Alarm ^ Metrics ^ | true | `*` | `*` | true | Critical | `HANA,REPLICATION,SECONDARY` | true | false | | true | `hana-prd-*` | `3*` | true | Major | `HANA,SECONDARY,PRD` | true | true |