Search with Google Cloud Run
Caution
The Tempo serverless feature is now deprecated and will be removed in an upcoming release.
This document walks you through setting up a Google Cloud Run for serverless backend search. For more guidance on configuration options for full backend search check here.
Build the docker image:
cd ./cmd/tempo-serverless && make build-docker-gcr
This will create the Docker container image to be deployed to Google Cloud Run. The docker image will be named:
tempo-serverless:latest
andtempo-serverless:<branch>-<commit hash>
. Here is an example of that name:$ docker images | grep tempo-serverless tempo-serverless cloud-run-3be4efa 146c9d9fa63c 58 seconds ago 47.9MB tempo-serverless latest 146c9d9fa63c 58 seconds ago 47.9MB
Push the image to a Google Container Registry repo.
Provision the Google Cloud Run service. This example uses Terraform. Configuration values should be adjusted to meet the needs of your installation.
Add the newly-created cloud run service as external endpoints in your querier configuration. The endpoint can be retrieved from the Details tab in Google Cloud Run:
querier: search: external_endpoints: - <trigger url from console>