PostgreSQL Vector source
Get more insights into the operation of your PostgreSQL databases with our Vector PostgreSQL integration.
Vector has a PostgreSQL source that collects metrics from PostgreSQL databases. When these PostgreSQL metrics are sent to AppSignal, the metrics from this Vector source will be shown in our PostgreSQL automatic dashboard. This dashboard will tell you more about:
- how many records were selected, inserted, updated and deleted.
- how many transactions were committed and rolled back.
- how many deadlocks were detected.
- how many temporary files were written during the operation of the database.
Configuration
To send Vector PostgreSQL data to AppSignal you need to configure the PostgreSQL source and AppSignal sink in your Vector configuration. We'll be using the TOML configuration file as an example.
- Add a new source of the
postgresql_metrics
source type to your configuration file. The name of the source is the part following the dot insources.postgresql
, not thepostgresql_metrics
type. - Configure the source's
endpoints
option with the PostgreSQL connection string for your database. Replace the variables ($VARIABLE_NAME
) with the values for your database, or pass them as environment variables. - Update
inputs
in theappsignal
sink to include the name of thepostgresql_metrics
source:
Shown below is an example vector.toml
configuration file. Your Vector configuration method may be different.