'cpu', 'rss' ) { $result->{ $metric } = $rrd->find_rrds( $dir ); } $self->render( json => $result ); }; app->start; # each route can perform overrides from the defaults with this met