Monitor the Openflow Connector for Salesforce Bulk API¶
Note
This connector is subject to the Snowflake Connector Terms.
The connector writes information about completed Salesforce Bulk API jobs to logs in the event table. You can query these logs to track the objects and number of records replicated to Snowflake.
The examples on this page query OPENFLOW.TELEMETRY.EVENTS. If your Openflow deployment sends telemetry to a different event table, replace the table name in the examples. Adjust the 30-minute time range as needed.
Query replication activity¶
By default, the connector logs the Salesforce object type, number of records processed, bulk job ID, and system modification timestamp. Use the following query when Enable Merge Metrics is set to false:
Query merge metrics¶
Set Enable Merge Metrics to true to include detailed record counts in the logs. The connector runs an additional query before each incremental merge to calculate the counts. This query uses the warehouse configured in Snowflake Warehouse.
Merge metrics are available only for Salesforce objects that include the IsDeleted field. Use the following query to retrieve the replication activity and merge metrics:
The metrics have the following meanings:
| Metric | Initial load | Incremental load |
|---|---|---|
ROWS_ADDED | Records loaded that aren’t marked as deleted. | Active source records that don’t exist in the destination table. |
ROWS_ADDED_DELETED | Records loaded that are already marked as deleted. | Source records marked as deleted that don’t exist in the destination table. |
ROWS_UPDATED | 0 | Active source records that match active records in the destination table. |
ROWS_DELETED | 0 | Source records marked as deleted that match active records in the destination table. |
ROWS_RESTORED | 0 | Active source records that match records marked as deleted in the destination table. |
ROWS_UPDATED counts active source records that match active destination records. It doesn’t compare individual field values and doesn’t indicate whether a field value changed.
The merge metric columns in the query return NULL when the log doesn’t contain merge metrics. This occurs when Enable Merge Metrics is set to false, the Salesforce object doesn’t include the IsDeleted field, or the log was generated by an earlier connector version that didn’t support merge metrics.