Skip to content

Commit

Permalink
just use config
Browse files Browse the repository at this point in the history
  • Loading branch information
black-adder committed Feb 20, 2019
1 parent 2f528de commit a69ccb1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ metrics:
instance: 0
env: production
includeHost: true
extended: moderate
samplingRate: 0.01
extended: moderate

Expand Down
3 changes: 0 additions & 3 deletions services/eventdb/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ func main() {
}
defer closer.Close()

// Report runtime and process metrics.
instrument.StartReportingExtendedMetrics(scope, time.Second, instrument.DetailedExtendedMetrics)

iOpts := instrument.NewOptions().
SetMetricsSamplingRate(cfg.Metrics.SampleRate())

Expand Down

0 comments on commit a69ccb1

Please sign in to comment.