Add integration tests for the metrics system

Description

Add integration tests to verify metrics collection.

Environment

None

Assignee

Unassigned

Reporter

Calvin Jia

Labels

None

Affects versions

Priority

Major