def get_metrics(self) -> ApplicationMetrics:
        """
        Get metrics for every service on all nodes for the application.

        See https://docs.vespa.ai/en/operations-selfhosted/monitoring.html#metrics-v2-values for more information.

        Returns:
             A selected set of metrics for every service on all nodes for the application
        """
        try:
            resp = self.http_client.get(f'{self.document_url}/metrics/v2/values')
        except httpx.HTTPError as e:
            raise VespaError(e) from e

        self._raise_for_status(resp)

        return ApplicationMetrics(**resp.json())

        Get metrics for every service on all nodes for the application.

        See https://docs.vespa.ai/en/operations-selfhosted/monitoring.html#metrics-v2-values for more information.

        Returns:
             A selected set of metrics for every service on all nodes for the application
        
src/marqo/vespa/vespa_client.py