> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://mezmo.ferndocs.com/ai-guides-event-to-metric-processor/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://mezmo.ferndocs.com/_mcp/server. # Event to Metric Processor ## Event to Metric Processor **Purpose:** Converts log events into structured metric events (e.g., counters, gauges) for monitoring and analysis. **Key Features:** * **Metric Types:** Choose between incremental (counter) or absolute (gauge) metrics. * **Field References:** Use field values as metric data points or tags. **Steps to Add:** 1. Edit the pipeline and click **Add Processor**. 2. Select **Event to Metric** and configure: * Title/Description for clarity. * Metric name (e.g., `error_count`). * Metric type (sum, counter, gauge). * Optional tag fields and values for metadata. **Note:** If you need to retain the original log, duplicate it before routing to this processor.