Configuration
To send MongoDB data to AppSignal using Vector, you will need to configure the MongoDB 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
mongodb_metricssource type to your configuration file. The name of the source is the part following the dot insources.mongodb, not themongodb_metricstype.
- Configure the source’s
endpointsoption with the MongoDB URL for your database. Replace the variables ($VARIABLE_NAME) with the values for your database, or pass them as environment variables. If running a database cluster, you should specify each member of the cluster as an endpoint.
- Update
inputsin theappsignalsink to include the name of themongodb_metricssource:
vector.toml configuration file. Your Vector configuration method may be different.