Single Instance
Bindplane server's default architecture is monolithic. In this mode, Bindplane depends only on a PostgreSQL database. All other components are bundled with the Bindplane server installation.
Bindplane manages several sub-processes:
- Prometheus: For recording collector throughput metrics
- Transform Agent: For Live Preview
The Prometheus and Transform Agent software are included with the Bindplane server installation and do not require configuration by the user.
Installing Bindplane on Linux is as simple as running the installation script and following the initialization prompts.
Read more by checking out the Quick Start Guide.
Event Bus
Local
The Local event bus is the default event bus used by Bindplane. Unless operating Bindplane in high availability mode, the Local event bus is sufficient.
The configuration will look like this by default:
Store
PostgreSQL
PostgreSQL is the storage backend used for all Bindplane installations. When operating Bindplane as a single instance, it is safe to install PostgreSQL on the same server as Bindplane.
Follow the PostgreSQL installation instructions to install PostgreSQL.
You can avoid using username and password credentials by configuring PostgreSQL to allow processes
owned by the bindplane
user to connect to the database over localhost without a password. Update
your pg_hba.conf
configuration with the following entries:
Prometheus
All Bindplane installations include a bundled version of Prometheus. Bindplane will use the bundled Prometheus as its default measurement metrics storage backend.
It is unnecessary to configure Prometheus when using the bundled option. This documentation can be used as a reference for the default Prometheus installation.
Configuration
The configuration file at /etc/bindplane/config.yaml
will contain the following prometheus
block after the installation is configured.
Directory Structure
Once Bindplane is started, the /var/lib/bindplane/prometheus
directory structure will look like this:
Prometheus's configuration and storage are located at /var/lib/bindplane/prometheus
.
Process
Bindplane manages the Prometheus process directly as a subprocess. When viewing the process list
with ps
, you will notice the following:
The Prometheus process is executed with the following flags:
--config.file prometheus.yml
: The main Prometheus configuration file, managed by Bindplane.--web.config.file web.yml
: The Prometheus web configuration file, managed by Bindplane.--storage.tsdb.retention.time 2d
: The retention time, managed by Bindplane. Bindplane uses rollup metrics for tracking collector measurements over time and does not require Prometheus to store data for longer than two days.--web.listen-address localhost:9090
: Listen address, managed by Bindplane. Prometheus is not reachable outside of the Bindplane system.--web.enable-remote-write-receiver
: Bindplane uses remote write to push metrics to Prometheus.