less timeslices in metrics output (#321)

This commit is contained in:
Michael Quigley 2023-05-10 13:37:07 -04:00
parent e7048e4051
commit 7d611fda30
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -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) +