refactor: make codebase more modular and use a single index for all services, tools and metics

This commit is contained in:
Patryk Hegenberg 2025-09-23 08:36:46 +02:00
parent 25dffecb43
commit 491eeaabd7
8 changed files with 343 additions and 130 deletions

View file

@ -26,6 +26,7 @@ func main() {
slog.Error("error loading configuration", "error", err)
os.Exit(1)
}
slog.Info("TIXEL System Monitor started")
es, err := NewElasticsearchClient(cfg.Elasticsearch)
if err != nil {
@ -38,7 +39,7 @@ func main() {
os.Exit(1)
}
slog.Info("TIXEL System Monitor started - Elasticsearch connection successful")
slog.Info("Elasticsearch connection successful")
logChan := make(chan LogEntry, 1000)
ctx, cancel := context.WithCancel(context.Background())