chore: sync local updates

This commit is contained in:
2026-05-16 19:03:34 +08:00
parent 9c086c3301
commit 80cf54a201
89 changed files with 10622 additions and 2443 deletions

View File

@@ -0,0 +1,17 @@
package main
import (
"log"
"os"
)
func main() {
addr := os.Getenv("CENTRAL_GRPC")
serverID := os.Getenv("SERVER_ID")
key := os.Getenv("AGENT_KEY")
if addr == "" || serverID == "" || key == "" {
log.Fatal("mengyamonitor agent requires CENTRAL_GRPC, SERVER_ID, and AGENT_KEY")
}
log.Printf("agent reporting via gRPC to %s (server_id=%s)", addr, serverID)
runGRPCLoop(addr, serverID, key)
}