Skip to content

Commit

Permalink
fix: Update disk usage interval to 60 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Oct 10, 2024
1 parent 185b9d4 commit d6d8486
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ execution:
- "txpool"
diskUsage:
enabled: false
interval: 30m
interval: 60m
directories:
- /data/ethereum
9 changes: 8 additions & 1 deletion pkg/exporter/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package exporter

import "github.com/ethpandaops/beacon/pkg/human"
import (
"time"

"github.com/ethpandaops/beacon/pkg/human"
)

// Config holds the configuration for the ethereum sync status tool.
type Config struct {
Expand Down Expand Up @@ -58,6 +62,9 @@ func DefaultConfig() *Config {
DiskUsage: DiskUsage{
Enabled: false,
Directories: []string{},
Interval: human.Duration{
Duration: 60 * time.Minute,
},
},
Pair: PairConfig{
Enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (e *exporter) Init(ctx context.Context) error {

interval := e.config.DiskUsage.Interval.Duration
if interval == 0 {
interval = 30 * time.Minute
interval = 60 * time.Minute
}

diskUsage, err := disk.NewUsage(
Expand Down

0 comments on commit d6d8486

Please sign in to comment.