mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-02 20:23:50 +00:00
parent
a02de81c8e
commit
5cc089e216
1 changed files with 2 additions and 2 deletions
|
@ -122,6 +122,8 @@ func run(ctx context.Context, c *cli.Command) error {
|
||||||
|
|
||||||
log.Info().Msgf("starting Woodpecker server with version '%s'", version.String())
|
log.Info().Msgf("starting Woodpecker server with version '%s'", version.String())
|
||||||
|
|
||||||
|
startMetricsCollector(ctx, _store)
|
||||||
|
|
||||||
serviceWaitingGroup.Go(func() error {
|
serviceWaitingGroup.Go(func() error {
|
||||||
log.Info().Msg("starting cron service ...")
|
log.Info().Msg("starting cron service ...")
|
||||||
if err := cron.Run(ctx, _store); err != nil {
|
if err := cron.Run(ctx, _store); err != nil {
|
||||||
|
@ -269,8 +271,6 @@ func run(ctx context.Context, c *cli.Command) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if metricsServerAddr := c.String("metrics-server-addr"); metricsServerAddr != "" {
|
if metricsServerAddr := c.String("metrics-server-addr"); metricsServerAddr != "" {
|
||||||
startMetricsCollector(ctx, _store)
|
|
||||||
|
|
||||||
serviceWaitingGroup.Go(func() error {
|
serviceWaitingGroup.Go(func() error {
|
||||||
metricsRouter := gin.New()
|
metricsRouter := gin.New()
|
||||||
metricsRouter.GET("/metrics", gin.WrapH(prometheus_http.Handler()))
|
metricsRouter.GET("/metrics", gin.WrapH(prometheus_http.Handler()))
|
||||||
|
|
Loading…
Reference in a new issue