We launched a public API to enable Gateway introspection. Users of the API
will be able to review the activity inside the Livepeer Gateway nodes and
understand the selection algorithms used to assign work to Orchestrator nodes.This is the initial release of the API, and only a few log lines have been
enabled in the public logs. Orchestrators are encouraged to open pull requests
to enable additional logs, which will be closely reviewed by the Livepeer team.
Additionally, the core Livepeer team will publish more logs from Livepeer
Gateways that may aid in understanding the selection algorithms.This API uses Grafana’s Loki for log aggregation. Examples of API usage are
provided below. For more guidance, refer to
this page.
Public logs from Livepeer Gateways are available through the public Loki
instance.
Example queries:
Copy
Ask AI
# logs from all regions:curl -G -s https://loki.livepeer.report/loki/api/v1/query \ --data-urlencode "query={region=~\".+\"}" | jq# logs from all regions between two timestamps (UNIX epoch nanoseconds)curl -G -s https://loki.livepeer.report/loki/api/v1/query_range \ --data-urlencode "query={region=~\".+\"}" --data 'start=1727335380000000000' --data 'end=1727635380000000000' | jq# logs from a specific region (e.g. NYC):curl -G -s https://loki.livepeer.report/loki/api/v1/query \ --data-urlencode "query={region=~\"nyc\"}" | jq# logs related to a specific orchestrator IP-address:curl -G -s https://loki.livepeer.report/loki/api/v1/query \ --data-urlencode "query={region=~\".+\"} |= \"clientIP=121.127.46.156\"" | jq# list of all possible regions:curl -G -s https://loki.livepeer.report/loki/api/v1/label/region/values | jq '.data'