Report usage, not price
Your application reports what happened. AgentMeter prices it later from the dashboard.TypeScript
Python
Good metric names
Choose metric names that match the vendor unit you pay for.| Vendor category | Example metric | Example step |
|---|---|---|
| Search API | search_requests | retrieve_context |
| Text to speech | characters | speak_answer |
| Speech to text | audio_seconds | transcribe_call |
| Vector database | vector_queries | retrieve_context |
| Workflow runner | executions | run_tool |
Pricing workflow
- The SDK sends a metric event.
- AgentMeter records the source and flags missing pricing if needed.
- You configure a dashboard pricing rule for the metric.
- Future events are priced automatically.
- Historical gaps can be backfilled when pricing is available.
Best practices
- Keep metric names stable.
- Use one unit per metric.
- Avoid embedding vendor names into
customer_idorstep_name. - Do not send raw user content in metadata.