Implement target selection, autodiscovery via aggregator, implement listTargets

This commit is contained in:
2026-03-15 05:04:46 +01:00
parent afa65a2b29
commit 7f93466645
16 changed files with 507 additions and 57 deletions

View File

@@ -11,6 +11,7 @@ Usage:
logtail-cli topn [flags] ranked label → count list
logtail-cli trend [flags] per-minute time series
logtail-cli stream [flags] live snapshot feed
logtail-cli targets [flags] list targets known to the queried endpoint
Subcommand flags (all subcommands):
--target host:port[,host:port,...] endpoints to query (default: localhost:9090)
@@ -43,6 +44,8 @@ func main() {
runTrend(os.Args[2:])
case "stream":
runStream(os.Args[2:])
case "targets":
runTargets(os.Args[2:])
case "-h", "--help", "help":
fmt.Print(usage)
default: