feat Prometheus

This commit is contained in:
2026-01-16 22:36:32 +08:00
parent b81b7f4e13
commit e9d82d9831
3 changed files with 27 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ func (p *Program) Init(_ svc.Environment) error {
p.moduleList = append(p.moduleList, base)
p.moduleList = append(p.moduleList, (&module.DB{}).Bind(config.Get().DB))
p.moduleList = append(p.moduleList, &ModuleGrpcServer{})
p.moduleList = append(p.moduleList, (&module.Prometheus{}).Bind(config.Get().Metric))
p.moduleList = append(p.moduleList, (&module.Tracer{}).Bind(config.Get().Metric, common.KeyDiscoverServiceNameUser))
for i, m := range p.moduleList {