refactor: make codebase more modular and use a single index for all services, tools and metics
This commit is contained in:
parent
25dffecb43
commit
491eeaabd7
8 changed files with 343 additions and 130 deletions
3
main.go
3
main.go
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue