Learn how to monitor performance and LLM/TTS usage with Pipecat.
enable_metrics=True
in PipelineParams
when creating a task:
Metric | Description |
---|---|
TTFB | Time To First Byte in seconds |
Processing Time | Time taken by the service to respond in seconds |
report_only_initial_ttfb=True
in PipelineParams
:
Note: enable_metrics=True
is required for this setting to have an
effect.
enable_usage_metrics=True
in PipelineParams when creating a task:
Metric | Description |
---|---|
LLM Usage | Number of prompt and completion tokens used |
TTS Usage | Number of characters processed |
Note: Usage metrics are recorded per interaction and do not represent running totals.