livepeer / go-livepeer

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

feat(ai): add AI gateway metrics #3087

Closed rickstaa closed 2 months ago

rickstaa commented 3 months ago

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

This pull request introduces new Gateway AI metrics to the ai-video branch:

Specific updates (required)

How did you test each of these updates (required)

I set up both an on-chain and off-chain gateway to validate the metrics. I verified their visibility at http://localhost:5935/metrics and ensured they were correctly visualized in Grafana.

Does this pull request close any open issues?

This implements the functionality outlined in https://livepeer-ai.productlane.com/roadmap?id=58c9cd5d-1c64-4fb3-b8d0-a7e20b7865a2.

Checklist:

How to test

  1. Check out this pull request.
  2. Spin up an on-chain gateway with attached orchestrators.
  3. Clone the repository https://github.com/rickstaa/livepeer-monitor-test.
  4. Execute the Dockerfile in that repository to launch Prometheus and Grafana servers.
  5. Navigate to http://localhost:5935/metrics to view the new AI Gateway metrics.
  6. Visit http://localhost:3000 to inspect these metrics in Grafana.
pwilczynskiclearcode commented 6 days ago

https://github.com/livepeer/go-livepeer/issues/3185