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

Commit 9bc26ff

Browse files
committed
Remove config change
1 parent 209602a commit 9bc26ff

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

cmd/phlare/phlare.yaml

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

pkg/phlare/modules.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,11 @@ func (f *Phlare) initUsageReport() (services.Service, error) {
302302
b = fs
303303
}
304304

305+
if b == nil {
306+
level.Warn(f.logger).Log("msg", "no storage bucket configured, usage report will not be sent")
307+
return nil, nil
308+
}
309+
305310
ur, err := usagestats.NewReporter(f.Cfg.Analytics, f.Cfg.Ingester.LifecyclerConfig.RingConfig.KVStore, b, f.logger, f.reg)
306311
if err != nil {
307312
level.Info(f.logger).Log("msg", "failed to initialize usage report", "err", err)

0 commit comments

Comments
 (0)