agents icon indicating copy to clipboard operation
agents copied to clipboard

Feature Request: Expose Native Prometheus Metrics Endpoint in LiveKit Agent SDK

Open Otoru opened this issue 11 months ago • 3 comments

Context

Currently, the LiveKit Agent SDK does not expose a native metrics endpoint in Prometheus format, requiring users to implement this functionality manually. This adds unnecessary complexity for those who need to monitor agents in production.

Request

Add an HTTP /metrics endpoint to the LiveKit Agent SDK that exposes all existing agent metrics in a Prometheus-compatible format.

Benefits

  • Enables seamless integration with Prometheus without requiring manual instrumentation.
  • Makes the agent more Kubernetes-friendly by allowing metrics to be directly consumed by a Prometheus Operator ServiceMonitor.
  • Reduces operational overhead for gaining visibility into the agent in distributed environments.

Otoru avatar Feb 27 '25 13:02 Otoru

we definitely would like to implement this one. it's on the roadmap!

davidzhao avatar Mar 04 '25 02:03 davidzhao

Any deadline.. when this feature will be rolled out ? We also need this functionality to export agent related metrics

Shahini20 avatar Apr 22 '25 04:04 Shahini20

Any deadline.. when this feature will be rolled out ? We also need this functionality to export agent related metrics

Also wondering the same. Would be super nice to have this feature.

olivernaaris avatar May 07 '25 02:05 olivernaaris

plus one! or any community best-practice to implement monitoring stack with Livekit agents, e.g. I want to see if delete room requests succeeded across the fleet

peter-assort avatar Jun 18 '25 16:06 peter-assort

@davidzhao Any idea when can we expect this implemented ?

royatanu94 avatar Jun 19 '25 05:06 royatanu94

@davidzhao any update here?

rafallezanko avatar Jul 10 '25 11:07 rafallezanko

Also interested!

Ansh714 avatar Aug 04 '25 16:08 Ansh714