console/frontend: add a graph on the homepage

This commit is contained in:
Vincent Bernat
2022-04-21 16:07:01 +02:00
parent e8c3790379
commit 370cd6f961
6 changed files with 185 additions and 2 deletions

View File

@@ -59,6 +59,7 @@ func (c *Component) Start() error {
c.d.HTTP.GinRouter.GET("/api/v0/console/widget/flow-rate", c.widgetFlowRateHandlerFunc)
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.t.Go(func() error {
select {