> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appsignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Vector

> Send metrics and logs from Vector to AppSignal and view them in Intelligence dashboards. Traces collected by Vector are not supported.

AppSignal supports receiving metrics and logs from [Vector](https://vector.dev/).

## Configuration

First set up your [Vector installation](https://vector.dev/docs/setup/quickstart/), with sources that receive input from other systems. Vector supports a multitude of data sources, such as Kubernetes, PostgreSQL, MongoDB and many more. See the [Vector source documentation](https://vector.dev/docs/reference/configuration/sources/) for more information on available sources.

To send data from Vector sources to AppSignal, configure the AppSignal Vector sink in your Vector configuration.

Add a new Vector sink with the type `appsignal`, configure the sources (inputs) from which to collect data, and include your [app-level Push API key](https://docs.appsignal.com/appsignal/terminology.md#push-api-key). The app-level Push API key can be found in your app's [Push & Deploy settings](https://appsignal.com/redirect-to/app?to=api_keys\&key_tab=app).

```toml TOML theme={null}
# vector.toml

# Add this AppSignal sink section
[sinks.appsignal]
type = "appsignal"
inputs = [ ... ] # Reference Vector sources or transforms here
push_api_key = "Your app-level Push API key"
```

To send data to a different AppSignal application depending on its source, you can configure more than one AppSignal sink. Each sink can have different input sources and a different app-level push API key.

You can read more about how to configure the AppSignal Vector Sink on the [Vector AppSignal sink documentation website](https://vector.dev/docs/reference/configuration/sinks/appsignal/).

## Metrics

Metrics received from the AppSignal Vector Sink will be available in the [custom metrics](https://docs.appsignal.com/metrics/custom.md) feature.

AppSignal currently only supports the following [Vector metric event types](https://vector.dev/docs/about/under-the-hood/architecture/data-model/metric/):

* Gauge
* Counter
* Distribution

If a source sends other metrics types than listed below, those metrics are ignored.

Custom metrics will require some manual setup. [Create a new dashboard](https://docs.appsignal.com/metrics/dashboards.md) and add a graph using metrics received from Vector.

Tags on metrics are converted into AppSignal metric tags and can be used to filter the metrics displayed in the graphs.

An additional `vector_namespace` tag will be added, with the Vector metric's namespace as its value. See [Vector's documentation](https://vector.dev/docs/reference/configuration/sources/) for more information on each source's default value.

Specified timestamps on metrics are currently ignored and the metric is reported for the time it was received.

### Intelligence dashboards

AppSignal will automatically create dashboards when it detects metrics from the following Vector sources:

* [PostgreSQL Intelligence dashboard](https://docs.appsignal.com/vector/postgresql.md)
* [MongoDB Intelligence dashboards](https://docs.appsignal.com/vector/mongodb.md)

## Logs

[AppSignal Logging](https://docs.appsignal.com/logging.md) supports Vector [log events](https://vector.dev/docs/about/under-the-hood/architecture/data-model/log/).

To view logs from Vector in our logging feature, first [create a new source](https://appsignal.com/redirect-to/app?to=logs/sources\&overlay=logSourceFormOverlay), for the platform "Vector", with the name `vector`.

With every log line, Vector includes the `source_type` attribute. This is based on the name of the Vector log source. The `source_type` will be used to group tags in AppSignal logging, making it easier to find all logs from the same source.

## Tracing

AppSignal does not support traces collected by Vector at this time. Please use one of our [language integrations](https://docs.appsignal.com/index.md#languages).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.