Skip to content

Commit 35d6f32

Browse files
authored
add labels tools (#10)
1 parent d6099d6 commit 35d6f32

File tree

2 files changed

+475
-0
lines changed

2 files changed

+475
-0
lines changed

cmd/server/main.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ func main() {
3030
lokiQueryTool := handlers.NewLokiQueryTool()
3131
s.AddTool(lokiQueryTool, handlers.HandleLokiQuery)
3232

33+
// Add Loki label names tool
34+
lokiLabelNamesTool := handlers.NewLokiLabelNamesTool()
35+
s.AddTool(lokiLabelNamesTool, handlers.HandleLokiLabelNames)
36+
37+
// Add Loki label values tool
38+
lokiLabelValuesTool := handlers.NewLokiLabelValuesTool()
39+
s.AddTool(lokiLabelValuesTool, handlers.HandleLokiLabelValues)
40+
3341
// Get port from environment variable or use default
3442
port := os.Getenv("PORT")
3543
if port == "" {

0 commit comments

Comments
 (0)