Configuring the Tracetest Server
Tracetest requires a very minimal configuration to be launched, needing just the connection information to connect with the PostgreSQL database which is installed as part of the server install. There are a couple of ways to provide this database connection information.
For Docker-based installs, the server configuration file is placed in the ./tracetest/tracetest.yaml
file by default when you run the tracetest server install
command and select the Using Docker Compose
option. The configuration file is mounted to /app/config.yaml
within the Tracetest Docker container. When Tracetest is run with a docker compose -f tracetest/docker-compose.yaml up -d
command, the server will use the contents of this file to connect to the Postgres database. All other configuration data is stored in the Postgres instance.
This is an example of a tracetest.yaml
file:
postgres:
host: postgres
user: postgres
password: postgres
port: 5432
dbname: postgres
params: sslmode=disable
telemetry:
exporters:
collector:
serviceName: tracetest
sampling: 100 # 100%
exporter:
type: collector
collector:
endpoint: otel-collector:4317
server:
httpPort: 11633
pathPrefix: /
telemetry:
exporter: collector
applicationExporter: collector
Alternatively, we support setting a series of environment variables which can contain the connection information for the Postgres instance. If these environment variables are set, they will be used by the Tracetest server to connect to the database.
The list of environment variables and example values is:
TRACETEST_POSTGRES_HOST: "postgres"
TRACETEST_POSTGRES_PORT: "5432"
TRACETEST_POSTGRES_DBNAME: "postgres"
TRACETEST_POSTGRES_USER: "postgres"
TRACETEST_POSTGRES_PASSWORD: "postgres"
TRACETEST_POSTGRES_PARAMS: ""
You can also change the defaults for the Tracetest server, altering the port and path you access the dashboard from. For a Docker-based install done locally, this URL is typically http://localhost:11633/
. You can alter it by setting either of the environment variables or using the server
object in the server configuration file:
TRACETEST_SERVER_HTTPPORT=11633
TRACETEST_SERVER_PATHPREFIX="/"
You can also initialize the server with a number of resources the first time it is launched by using provisioning.