Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit 209602a

Browse files
committed
Initialize correctly bucket for reporting
1 parent 7818c72 commit 209602a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cmd/phlare/phlare.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
server:
22
http_listen_port: 4100
3-
3+
storage:
4+
backend: gcs
5+
gcs:
6+
bucket_name: dev-us-central-0-profiles-dev-001-data
47
scrape_configs:
58
- job_name: "default"
69
scrape_interval: "15s"

pkg/phlare/modules.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import (
3636
"github.com/grafana/phlare/pkg/gen/push/v1/pushv1connect"
3737
"github.com/grafana/phlare/pkg/gen/querier/v1/querierv1connect"
3838
"github.com/grafana/phlare/pkg/ingester"
39-
"github.com/grafana/phlare/pkg/objstore"
4039
objstoreclient "github.com/grafana/phlare/pkg/objstore/client"
4140
"github.com/grafana/phlare/pkg/objstore/providers/filesystem"
4241
"github.com/grafana/phlare/pkg/openapiv2"
@@ -291,7 +290,7 @@ func (f *Phlare) initUsageReport() (services.Service, error) {
291290

292291
usagestats.Target(f.Cfg.Target.String())
293292

294-
var b objstore.Bucket
293+
b := f.storageBucket
295294
if f.storageBucket == nil {
296295
if err := os.MkdirAll(f.Cfg.PhlareDB.DataPath, 0o777); err != nil {
297296
return nil, fmt.Errorf("mkdir %s: %w", f.Cfg.PhlareDB.DataPath, err)

0 commit comments

Comments
 (0)