Skip to content

Commit

Permalink
rra refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
UlricQin committed Mar 11, 2020
1 parent 5f00489 commit ceaa9f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/tsdb/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ func Parse(conf string) error {
viper.SetDefault("rpc.enabled", true)

viper.SetDefault("rrd.rra", map[int]int{
1: 750, // 原始点,假设10s一个点,则存2h,720,额外加30个点,即5min
6: 11580, // 6个点归档为一个点,则1min一个点存8d,11520,额外加60个点即1h
180: 1442, // 180个点归档为一个点,则30min一个点存1mon,1440,额外加2个点即1h
1080: 2881, // 1080个点归档为一个点,则6h一个点存1年,2880,额外加1个点即6h
1: 720, // 原始点,假设10s一个点,则存2h,即720个点
6: 4320, // 6个点归档为一个点,即1min一个点,3天的话是4320个点
180: 1440, // 180个点归档为一个点,即30min一个点,1个月30天是1440个点
1080: 2880, // 1080个点归档为一个点,即6h一个点存1年,按照360天算是2880个点
})

viper.SetDefault("rrd.enabled", true)
Expand Down

0 comments on commit ceaa9f5

Please sign in to comment.