Skip to content

Commit

Permalink
feat: Trigger stale group cleanup check on service initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Dec 28, 2024
1 parent 9328606 commit 91f8763
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/promster/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,11 @@ func run(ctx context.Context, cmd *cli.Command) error {
if err := updatePrometheusConfig(configFile, serviceGroups); err != nil {
return fmt.Errorf("failed to update initial prometheus config: %w", err)
}

// Perform initial stale group check
if err := checkStaleGroups(ctx, registry); err != nil {
logrus.WithError(err).Error("Failed to perform initial stale group check")
}
// Create error channels
errChan := make(chan error, 100)
defer close(errChan)
Expand Down

0 comments on commit 91f8763

Please sign in to comment.