Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatters.GrafanaCloudHostedMetrics will send interval 0 #763

Open
chinwobble opened this issue Nov 19, 2023 · 0 comments
Open

Formatters.GrafanaCloudHostedMetrics will send interval 0 #763

chinwobble opened this issue Nov 19, 2023 · 0 comments

Comments

@chinwobble
Copy link
Contributor

chinwobble commented Nov 19, 2023

If you are using GrafanaHostedMetrics formatter and reporter, the interval field published will be set to 0 if you set the flush interval to any number of seconds divisible by 60.

Steps to reproduce

Set flushInterval to TimeSpan.FromSeconds(60).
check response to POST to grafana's hosted metrics endpoint
The error will be
Response 400 - bad request

invalid metric data received: interval cannot be 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant