livepeer / go-livepeer

Official Go implementation of the Livepeer protocol
http://livepeer.org
MIT License
537 stars 165 forks source link

Add gateway metrics #3066

Closed eliteprox closed 2 weeks ago

eliteprox commented 1 month ago

What does this pull request do? Explain your changes. (required)

This change adds roundtrip time metrics for all pipelines, logging the specific pipeline, model and roundtrip time.

You can visualize this with a timeseries chart using the following query:

rate(livepeer_ai_roundtrip_time_seconds_sum[1m]) / rate(livepeer_ai_roundtrip_time_seconds_count[1m])

Use the following variable for the Legend: {{pipeline}}, {{model_name}}

Result: image

Specific updates (required)

How did you test each of these updates (required)

Does this pull request close any open issues?

Checklist:

rickstaa commented 2 weeks ago

Replaced by https://github.com/livepeer/go-livepeer/pull/3087.