protected internal virtual void reportMetrics() { foreach (var metricName in metricsRegistry.Meters.Keys) { //mark random occurence long occurence = rand.Next(MAX_OCCURENCE - MIN_OCCURENCE + 1) + MIN_OCCURENCE; metricsRegistry.MarkOccurrence(metricName, occurence); } //report logged metrics processEngineConfiguration.DbMetricsReporter.ReportNow(); }