Skip to content

Commit

Permalink
export metrics every minute instead of every 3 seconds by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sechmann committed Jun 25, 2024
1 parent 857e391 commit 2c55639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/otel/otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func newMeterProvider(ctx context.Context, res *resource.Resource) (*metric.Mete
metric.WithReader(
metric.NewPeriodicReader(metricExporter,
// Default is 1m. Set to 3s for demonstrative purposes.
metric.WithInterval(3*time.Second))),
metric.WithInterval(1*time.Minute))),
metric.WithResource(res),
)
return meterProvider, nil
Expand Down

0 comments on commit 2c55639

Please sign in to comment.