java.lang.Object
org.eclipse.microprofile.telemetry.metrics.tck.jvm.MetricsReader

public class MetricsReader extends Object
  • Constructor Details

    • MetricsReader

      public MetricsReader()
  • Method Details

    • assertLogMessage

      public static void assertLogMessage(String metricName, String metricDescription, String metricUnit, String metricType)
      This method asserts that a log line matching the following format "name=, description=, unit=, type=" Can be found in the log file pointed to by the system property mptelemetry.tck.log.file.path. It will wait for up to fifteen seconds for the log to appear.
      Parameters:
      metricName - The name of the metric we expect to find in the logs
      metricDescription - The description of the metric we expect to find in the logs
      metricUnit - The unit of the metric we expect to find in the logs
      metricType - The type of the metric we expect to find in the logs