# Configuring Collectors

sfp supports multiple metrics collectors to send build, deploy, validate, and release metrics to your observability platform of choice.

## Available Collectors

| Collector                                                             | Description                                |
| --------------------------------------------------------------------- | ------------------------------------------ |
| [sfp Server](/flxbl/sfp/metrics/configuring-collectors/sfp-server.md) | Built-in Victoria Metrics with query CLI   |
| [Datadog](/flxbl/sfp/metrics/configuring-collectors/datadog.md)       | Native integration with Datadog            |
| [Splunk](/flxbl/sfp/metrics/configuring-collectors/splunk.md)         | Native integration with Splunk             |
| [New Relic](/flxbl/sfp/metrics/configuring-collectors/new-relic.md)   | Native integration with New Relic          |
| [StatsD](/flxbl/sfp/metrics/configuring-collectors/statsd.md)         | Forward to any StatsD-compatible collector |

## Multiple Collectors

sfp can send metrics to multiple collectors simultaneously. Simply configure the environment variables for each collector you want to use:

```bash
# Send metrics to both sfp server and Datadog
export SFP_SERVER_URL=http://your-sfp-server:3029
export SFPOWERSCRIPTS_DATADOG=true
export SFPOWERSCRIPTS_DATADOG_API_KEY=your-api-key

sfp build  # Metrics sent to both destinations
```

## Default Behavior

### sfp Server (Default)

When `SFP_SERVER_URL` is configured, all sfp commands automatically emit metrics to the sfp server. No additional configuration is required - simply set the server URL and authenticate:

```bash
sfp config set server-url http://your-sfp-server:3029
sfp config set server-email your-email@example.com
sfp server auth login
```

Once configured, any command (`build`, `deploy`, `release`, `validate`, etc.) will automatically send metrics to the server.

### External Collectors (Datadog, Splunk, New Relic, StatsD)

Use external collectors when you need to:

* Integrate with an existing observability platform
* Correlate sfp metrics with other system metrics
* Use advanced alerting and dashboard features
* Meet compliance requirements for specific platforms


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flxbl.io/flxbl/sfp/metrics/configuring-collectors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
