Skip to content

Switchyard lets LLM applications route traffic across models and providers while preserving native OpenAI and Anthropic API compatibility - enabling flexible model selection, benchmarking, and cost/performance optimization.

Rust
988 B
Raw Blame
# Example Prometheus scrape configuration for Switchyard.
#
# Merge the `scrape_configs:` entry below into your existing
# prometheus.yml. The `/metrics` endpoint is plain HTTP, no auth, and
# uses the Prometheus text exposition format 0.0.4.
#
# See docs/internal/metrics_reference.md for the full metric catalog and
# examples/prometheus/switchyard.rules.yaml for ready-to-load alert
# rules.

global:
  scrape_interval: 15s
  evaluation_interval: 15s

scrape_configs:
  - job_name: switchyard
    metrics_path: /metrics
    scheme: http
    scrape_interval: 15s
    static_configs:
      # Replace with your Switchyard host(s) and port(s). Swap this
      # static_configs block for kubernetes_sd_configs in a
      # cluster-native deployment.
      - targets:
          - switchyard.example.internal:4100

# Reference the alert rule file shipped alongside this scrape config.
# Adjust the path to wherever your Prometheus loads rule files from.
rule_files:
  - switchyard.rules.yaml