Add a target for waiting until PLC mirror catches up

This commit is contained in:
Max Ignatenko 2024-04-13 19:42:36 +01:00
parent c6fe0c2350
commit c5f3a55ac8
4 changed files with 32 additions and 1 deletions

View file

@ -72,6 +72,7 @@ func runMain(ctx context.Context) error {
return fmt.Errorf("failed to create server: %w", err)
}
http.Handle("/", server)
http.HandleFunc("/ready", server.Ready)
log.Info().Msgf("Starting HTTP listener on %q...", config.MetricsPort)
http.Handle("/metrics", promhttp.Handler())