livepeer/go-livepeer

add a few simple prometheus metrics

Open

#1,369 opened on Feb 10, 2020

 (2 comments) (0 reactions) (0 assignees)Go (223 forks)auto 404
area: metricsgood first issuehelp wanted

Repository metrics

Stars
 (583 stars)
PR merge metrics
 (PR metrics pending)

Description

Please let me know if any of these already exist or if there are better ways to handle some of these situations.

  • livepeer_broadcaster_count1 if running with -broadcaster, 0 otherwise
  • livepeer_orchestrator_count1 if running with -orchestrator, 0 otherwise
  • livepeer_transcoder_count1 if running with -transcoder, 0 otherwise

These will let us sum the currently running counts of Bs, Os, and Ts without resorting to building the numbers from the local Kubernetes environment.

  • livepeer_gpu_count — If running as a -transcoder with GPUs, how many GPUs are we running with?
  • livepeer_gpu_nvidia_count — How many -nvidia GPUs are we using?
  • livepeer_gpu_vaapi_count — How many VAAPI GPUs are we using?

Contributor guide