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.

What you need
An admin must have added the proxy in Tellagen. You need permission to run containers or Helm charts where the proxy will run.

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

  1. Save the two tokens

    In an empty folder, save the proxy token as tellagen-proxy-token and the Grafana token as grafana-token. Each file holds only the token.

  2. 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>
  3. Check the proxy

    Run docker exec tellagen-proxy /tellagen-proxy doctor. If something is wrong, read the first line marked [fail].

  4. Upgrade the proxy

    When a newer version is out, the proxy's page in Tellagen prints the upgrade. Run docker pull with the new image, then docker rm -f tellagen-proxy, then the same run command with the new version.

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 chown line 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 existingSecret and leave tellagen.token and grafana.token out 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

Updated . Something out of date? Write to [email protected]. Open Markdown version