Install the proxy with Docker, Compose or Helm
Get the proxy running in your network with Docker, Docker Compose or Helm, check that it connects to Tellagen and your Grafana, and upgrade it later.
Start on the proxy's page in Tellagen, at Settings → AI diagnosis → Cloud. It shows the proxy token once and prints each command below with your Grafana address and the current version filled in. You also need the Grafana token. Make it first.
The image is ghcr.io/tellagen/tellagen-proxy and the chart is oci://ghcr.io/tellagen/charts/tellagen-proxy. Use the version that the page shows in place of <version>. Point GRAFANA_URL (grafana.url in Helm) at Grafana's inside address, such as http://grafana.monitoring.svc:3000, not its public name. A public name behind a VPN or Cloudflare Zero Trust asks the proxy to sign in, and it can't. The proxy only connects out to connect.tellagen.com on port 443 and needs nothing opened inbound. Run the doctor to check that it reaches Grafana.
Steps
Docker
Save the two tokens
In an empty folder, save the proxy token as
tellagen-proxy-tokenand the Grafana token asgrafana-token. Each file holds only the token.Run the container
Run this in that folder. Replace the Grafana address with the one the container can reach. Inside a container, localhost is the container itself.
Docker run command
docker run -d --name tellagen-proxy --restart unless-stopped --read-only \ --user "$(id -u):$(id -g)" \ -v "$PWD/tellagen-proxy-token:/run/secrets/tellagen-proxy-token:ro" \ -v "$PWD/grafana-token:/run/secrets/grafana-token:ro" \ -e TELLAGEN_PROXY_TOKEN_FILE=/run/secrets/tellagen-proxy-token \ -e GRAFANA_SERVICE_ACCOUNT_TOKEN_FILE=/run/secrets/grafana-token \ -e TELLAGEN_INSTALL_METHOD=docker \ -e GRAFANA_URL='https://grafana.example.com' \ ghcr.io/tellagen/tellagen-proxy:<version>Check the proxy
Run
docker exec tellagen-proxy /tellagen-proxy doctor. If something is wrong, read the first line marked[fail].Upgrade the proxy
When a newer version is out, the proxy's page in Tellagen prints the upgrade. Run
docker pullwith the new image, thendocker rm -f tellagen-proxy, then the same run command with the new version.
Docker Compose
Save the two tokens
In an empty folder, save the proxy token as
tellagen-proxy-tokenand the Grafana token asgrafana-token. The container runs as user 65532, so give it the files withsudo chown 65532 tellagen-proxy-token grafana-token.Save the file and start it
Save this as
compose.yamlin that folder, then rundocker compose up -d.Compose file
services: tellagen-proxy: image: ghcr.io/tellagen/tellagen-proxy:<version> restart: unless-stopped read_only: true environment: TELLAGEN_PROXY_TOKEN_FILE: /run/secrets/tellagen_proxy_token GRAFANA_SERVICE_ACCOUNT_TOKEN_FILE: /run/secrets/grafana_token TELLAGEN_INSTALL_METHOD: compose GRAFANA_URL: "https://grafana.example.com" secrets: [tellagen_proxy_token, grafana_token] secrets: tellagen_proxy_token: { file: ./tellagen-proxy-token } grafana_token: { file: ./grafana-token }Check the proxy
Run
docker compose exec tellagen-proxy /tellagen-proxy doctor. If something is wrong, read the first line marked[fail].Upgrade the proxy
Change the version in the image line, or save over the file with the new
compose.yamlthat the proxy's page prints. Then rundocker compose pull && docker compose up -d.
Helm
Make the Secret
The chart reads both tokens from a Kubernetes Secret. Run this first. It puts the tokens in your shell history. To avoid that, use another way to make the Secret.
Kubernetes Secret
kubectl create namespace tellagen kubectl -n tellagen create secret generic tellagen-proxy \ --from-literal=tellagen-proxy-token='<paste the proxy token>' \ --from-literal=grafana-service-account-token='<paste your Grafana token>'Install the chart
Run this second. Use the address of Grafana as the proxy sees it, often a service address such as http://grafana.monitoring.svc:3000.
Helm install
helm install tellagen-proxy oci://ghcr.io/tellagen/charts/tellagen-proxy \ --version <version> -n tellagen --create-namespace \ --set-string grafana.url='https://grafana.example.com' \ --set existingSecret=tellagen-proxyCheck the proxy
Run
helm test tellagen-proxy -n tellagen. For the full report, runkubectl -n tellagen exec deploy/tellagen-proxy -- /tellagen-proxy doctor, and read the first line marked[fail].Upgrade the proxy
When a newer version is out, the proxy's page in Tellagen prints this command. It needs Helm 3.14 or newer, which keeps your settings with
--reset-then-reuse-values.Helm upgrade
helm upgrade tellagen-proxy oci://ghcr.io/tellagen/charts/tellagen-proxy \ --version <new version> -n tellagen --reset-then-reuse-values
What happens next
- The checks on the proxy's page pass one by one. You can finish the setup once the first four pass. See Set up Cloud diagnosis.
- The proxy shows as Online in the Cloud tab.
- The proxy connects out only to connect.tellagen.com on port 443 and to your Grafana. It listens on port 8080 for its own health checks.
FAQs
The container stops and the doctor says a token file “cannot be read by user”. What now?
The container user can't read the token file. With Docker Compose, run the
chownline from the first step. With Docker, run the command as the user who owns the files. See Read the proxy doctor output.The doctor says “GRAFANA_URL points to localhost”. What do I use?
Inside a container, localhost is the container itself. With Docker, use the host's address, such as host.docker.internal. In Kubernetes, use the Grafana service name.
Helm says “tellagen.token and existingSecret are both set. Set only one.” Why?
The chart takes the tokens from one place. Set the Secret name with
existingSecretand leavetellagen.tokenandgrafana.tokenout of your values.I lost the proxy token. How do I get a new one?
Select Get a new token on the proxy's setup page, or Rotate token on a proxy that already runs. Tellagen shows the new token once. Put it in place of the old one.
My network needs a web proxy or a company certificate. What do I change?
Both are settings of the proxy. See Connect the proxy through a corporate network.
Related guides
Did this help?
Updated . Something out of date? Write to [email protected]. Open Markdown version