Grafana Setup

Perform the steps described below in the /bioterm/bioterm/server/grafana/ directory.

Run the init.sh script. After completion, extract the authentik client ID and client secret for the grafana provider and manually insert them in the created .env file.

Optionally, add the following lines for SMTP setup to the .env file:

GF_SMTP_ENABLED: true
GF_SMTP_HOST:
GF_SMTP_USER:
GF_SMTP_PASSWORD:
GF_SMTP_FROM_ADDRESS:

Manually create the bind mount on the host and change the owner to user ‘472’:

$ sudo mkdir -p /srv/docker/grafana
$ sudo chown 472 /srv/docker/grafana

Then run

$ sudo docker compose up -d

to start the container.

By default, the local login (user: admin, pw: see generated password in .env) can not login because the docker-compose.yml sets GF_AUTH_OAUTH_AUTO_LOGIN: "true".

Note

Continue here, after finishing the setup of the backend and frontend.

Data Sources

PostgreSQL

Name

PostgreSQL

Default

Enabled

Host

timescaledb:5432

Database

mydatabase

User

$POSTGRES_USER

Password

$POSTGRES_PASSWORD

TLS/SSL Mode

disable

Version

12

TimescaleDB

Enabled

Min time interval

1s

Loki

Name

Loki

Default

Disabled

Host

http://loki:3100

Prometheus

Name

Prometheus

Default

Disabled

Host

http://prometheus:9090