mirror of
https://github.com/openziti/zrok.git
synced 2024-12-22 23:02:52 +01:00
less timeslices in metrics output (#321)
This commit is contained in:
parent
e7048e4051
commit
7d611fda30
@ -39,7 +39,7 @@ func (h *getAccountMetricsHandler) Handle(params metadata.GetAccountMetricsParam
|
||||
}
|
||||
duration = v
|
||||
}
|
||||
slice := duration / 200
|
||||
slice := duration / 50
|
||||
|
||||
query := fmt.Sprintf("from(bucket: \"%v\")\n", h.cfg.Bucket) +
|
||||
fmt.Sprintf("|> range(start: -%v)\n", duration) +
|
||||
@ -113,7 +113,7 @@ func (h *getEnvironmentMetricsHandler) Handle(params metadata.GetEnvironmentMetr
|
||||
}
|
||||
duration = v
|
||||
}
|
||||
slice := duration / 200
|
||||
slice := duration / 50
|
||||
|
||||
query := fmt.Sprintf("from(bucket: \"%v\")\n", h.cfg.Bucket) +
|
||||
fmt.Sprintf("|> range(start: -%v)\n", duration) +
|
||||
@ -193,7 +193,7 @@ func (h *getShareMetricsHandler) Handle(params metadata.GetShareMetricsParams, p
|
||||
}
|
||||
duration = v
|
||||
}
|
||||
slice := duration / 200
|
||||
slice := duration / 50
|
||||
|
||||
query := fmt.Sprintf("from(bucket: \"%v\")\n", h.cfg.Bucket) +
|
||||
fmt.Sprintf("|> range(start: -%v)\n", duration) +
|
||||
|
Loading…
Reference in New Issue
Block a user