go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

feat(prometheus): added and impl metrics pusher to push metrics to `prometheus pushgateway`

Open Suyghur opened this issue 1 year ago • 3 comments
trafficstars

help me to code review, plz~ @kevwan

Suyghur avatar May 10 '24 06:05 Suyghur

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.08%. Comparing base (8690859) to head (b4641be). Report is 49 commits behind head on master.

Additional details and impacted files

see 255 files with indirect coverage changes

codecov[bot] avatar May 10 '24 06:05 codecov[bot]

What's the purpose of this PR?

kevwan avatar May 12 '24 06:05 kevwan

What's the purpose of this PR?

  • In some scenarios, it is not convenient for the app to directly connect with the Prometheus server.
  • Some jobs have a short life cycle and do not have enough time to wait for Prometheus Server pull data. So you can push the data to Pushgateway first, and then let Prometheus Server pull it.

image

Suyghur avatar May 12 '24 16:05 Suyghur