package
0.0.0-20240410075615-8156aba33d49
Repository: https://github.com/starismoon/study_geek.git
Documentation: pkg.go.dev

# README

第八次作业

  • 使用Gauge作为指标来监控kafka消息处理,因为Gauge指标可增可减,出现错误时将值加1,正常处理时置为0,则可以统计出来连续出现的错误次数
  • 在实践中,我会让此监控错误次数超过10次时,可以通过短信服务或者企业微信、飞书之类带有三方接口可以发短信的APP来通知我

代码在handler.go中修改

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author