host = $host; $this->service = $service; } protected function filterGraphiteQuery(GraphiteQuery $query) { return $query ->where('hostname', $this->host) ->where('service', $this->service); } protected function includeTemplate(GraphTemplate $template) { return strpos($template->getFilterString(), '$service') !== false; } }