Oracle Data Guard Log Apply Gap Metric

This custom metric measures the number of redo log files that have been archived in the primary database minus the log files that have been applied in the standby. If you want to get alerted on this, configure a Resource metric alert on top of this custom metric.

Note: when running this against an Oracle database that is not part of a Data Guard configuration, it will always return 0.

To create this metric in DPA, make it look similar to this: