Exporting metrics is in beta mode.
The Baseten metrics endpoint can be integrated with OpenTelemetry Collector by configuring a Prometheus receiver that scrapes the endpoint. This allows Baseten metrics to be pushed to a variety of popular exporters—see the OpenTelemetry registry for a full list.
Using OpenTelemetry Collector to push to Datadog
receivers:
# Configure a Prometheus receiver to scrape the Baseten metrics endpoint.
prometheus:
config:
scrape_configs:
- job_name: 'baseten'
scrape_interval: 60s
metrics_path: '/metrics'
scheme: https
authorization:
type: "Api-Key"
credentials: "{BASETEN_API_KEY}"
static_configs:
- targets: ['app.baseten.co']
processors:
batch:
exporters:
# Configure a Datadog exporter.
datadog:
api:
key: "{DATADOG_API_KEY}"
service:
pipelines:
metrics:
receivers: [prometheus]
processors: [batch]
exporters: [datadog]