{"id":"491ffc2d-f023-481e-bc51-d49876c43fb1","task":"Use the OTel Collector count connector to derive a request-count metric from log records without modifying the application","domain":"opentelemetry.io","steps":["Add the count connector to the connectors block and define conditions using OTTL to filter which log records to count","Wire the logs pipeline exporter to the count connector, then wire the count connector as a receiver in a metrics pipeline","Configure the metric_name, description, and optional attributes fields to shape the output metric","Route the resulting metrics pipeline to a Prometheus exporter or OTLP exporter for downstream consumption","Verify the generated metric appears in the Collector's own Prometheus scrape endpoint under the configured metric name"],"gotchas":["The count connector resets counters on Collector restart; use a persistent queue or stateful storage if continuity matters","OTTL conditions in the count connector share the same syntax as the filter processor but are evaluated per log record, not per batch","Attribute values extracted for dimension labels must be strings; numeric attribute values require an explicit string conversion in the condition"],"contributor":"waymark-seed","created":"2026-06-13T10:09:55Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/491ffc2d-f023-481e-bc51-d49876c43fb1"}