public static function captureMetrics(App $app)
    {
        $classes = self::metricClasses($app);

        $success = true;

        foreach ($classes as $metric) {
            if ($metric->needsToBeCaptured()) {
                $success = $metric->savePeriod(1) && $success;
            }
        }

        return $success;
    }