console: add visualize tab

Currently, there is no controls available.
This commit is contained in:
Vincent Bernat
2022-05-10 09:29:53 +02:00
parent 24848e029e
commit 2319262340
17 changed files with 1509 additions and 27 deletions

View File

@@ -81,6 +81,7 @@ func (c *Component) Start() error {
c.d.HTTP.GinRouter.GET("/api/v0/console/widget/exporters", c.widgetExportersHandlerFunc)
c.d.HTTP.GinRouter.GET("/api/v0/console/widget/top/:name", c.widgetTopHandlerFunc)
c.d.HTTP.GinRouter.GET("/api/v0/console/widget/graph", c.widgetGraphHandlerFunc)
c.d.HTTP.GinRouter.POST("/api/v0/console/graph", c.graphHandlerFunc)
c.t.Go(func() error {
ticker := time.NewTicker(10 * time.Second)