Skip to content

Commit

Permalink
small updates
Browse files Browse the repository at this point in the history
Signed-off-by: Owen Diehl <[email protected]>
  • Loading branch information
owen-d committed Oct 7, 2024
1 parent 8180573 commit ec56013
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions pkg/dash/dash.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ func ReadsDashboard(requestDuration *prom.HistogramVec) (dashboard.Dashboard, er
"pod",
)

builder := dashboard.NewDashboardBuilder("Sample dashboard").
Uid("generated-from-go").
builder := dashboard.NewDashboardBuilder("Loki Reads (generated)").
Tags([]string{"generated", "from", "go"}).
Refresh("1m").
Time("now-30m", "now").
Expand Down
5 changes: 4 additions & 1 deletion pkg/loki/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -1782,7 +1782,10 @@ func (t *Loki) initDashboards() (services.Service, error) {
return nil, err
}
t.Server.HTTP.Path("/grafana/dashboards/reads").Methods("GET").Handler(loader.Reads())
return services.NewBasicService(nil, nil, nil), nil
return services.NewBasicService(nil, func(serviceContext context.Context) error {
<-serviceContext.Done()
return nil
}, nil), nil
}

func (t *Loki) deleteRequestsClient(clientType string, limits limiter.CombinedLimits) (deletion.DeleteRequestsClient, error) {
Expand Down

0 comments on commit ec56013

Please sign in to comment.