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 | Built-in Victoria Metrics with query CLI |
| Datadog | Native integration with Datadog |
| Splunk | Native integration with Splunk |
| New Relic | Native integration with New Relic |
| StatsD | 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:
# 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 destinationsDefault 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:
sfp config set server-url http://your-sfp-server:3029
sfp config set server-email your-email@example.com
sfp server auth loginOnce 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