Getting started
Speculare Server is the core of the infrastructure. It is where all clients will send their metrics and where the dashboard will ask for historical data.
Setup
As of now Speculare Server does not provide easy setup solution such as a one-line installer (but it's planned). The current recommanded way to install Speculare Server is to build it from source. But don't be afraid, it's easy and straightforwards.
Build the binary
You can build the binary using:
The resulting binary will be located in ./target/release/server
.
Configuration files
The server binary depends on a server.config
file whose path will be passed as arguments to the binary (default location is XXX).
You can create your server.config
from the server.example.config
given in the source code.
Apply setup migration to construct database
For this step you will have to methods:
This is the easiest solution... Just do nothing and the migrations will be applied automatically. Once you launch the binary, it will check if all the lastest migrations has been applied, and will applied them if not.
You might, however need to create the DATABASE inside TimescaleDB.
Install as a service
Here is a sample speculare-server.service
for systemd:
The above service will start after postgres, this is important. The server cannot start before postgresql.
Last updated