mirror of
https://github.com/bolucat/Archive.git
synced 2025-10-06 00:27:31 +08:00
Update On Fri Sep 6 20:35:08 CEST 2024
This commit is contained in:
@@ -165,15 +165,22 @@ func setupRoutes(s *Server) {
|
||||
e.GET(metricsPath, echo.WrapHandler(promhttp.Handler()))
|
||||
e.GET("/debug/pprof/*", echo.WrapHandler(http.DefaultServeMux))
|
||||
|
||||
// web pages
|
||||
e.GET(indexPath, s.index)
|
||||
e.GET(connectionsPath, s.ListConnections)
|
||||
e.GET(rulesPath, s.ListRules)
|
||||
e.GET("/rule_metrics/", s.RuleMetrics)
|
||||
e.GET("/logs/", s.LogsPage)
|
||||
|
||||
api := e.Group(apiPrefix)
|
||||
api.GET("/config/", s.CurrentConfig)
|
||||
api.POST("/config/reload/", s.HandleReload)
|
||||
api.GET("/health_check/", s.HandleHealthCheck)
|
||||
api.GET("/node_metrics/", s.GetNodeMetrics)
|
||||
api.GET("/rule_metrics/", s.GetRuleMetrics)
|
||||
|
||||
// ws
|
||||
e.GET("/ws/logs", s.handleWebSocketLogs)
|
||||
}
|
||||
|
||||
func (s *Server) Start() error {
|
||||
|
Reference in New Issue
Block a user