Prometheus 抓取配置
Prometheus 抓取配置
scrape_configs:
- job_name: vllm
metrics_path: /metrics
static_configs:
- targets: ["127.0.0.1:8000"]先看再写表达式
先看再写表达式
curl -s http://127.0.0.1:8000/metrics | grep -E 'num_requests|ttft|tpot' | head指标名随版本有微调(vllm: 前缀):以本机实际输出为准再写告警表达式。