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

[BUG] force_min_step_interval on victoriametrics backend is ignored #856

Open
mlausch opened this issue Feb 5, 2025 · 0 comments · May be fixed by #857
Open

[BUG] force_min_step_interval on victoriametrics backend is ignored #856

mlausch opened this issue Feb 5, 2025 · 0 comments · May be fixed by #857
Labels

Comments

@mlausch
Copy link

mlausch commented Feb 5, 2025

Describe the bug
The "force_min_step_interval" option is at least in the victoriaMetrics backend ignored.

As I saw on the code, if the value is higher than the interval (stop - start) the step size shold be used for the query on the backend. But this is not the case.

CarbonAPI Version
0.16.0
Also on the Master the bug is present.

CarbonAPI Configuration:

    backendsv2:
        backends:
          - groupName: "victoriametrics"
            protocol: "victoriametrics"
            lbMethod: "broadcast"
            maxTries: 3
            maxBatchSize: 0
            keepAliveInterval: "10s"
            concurrencyLimit: 0
            maxIdleConnsPerHost: 1000
            backendOptions:
                step: "60"
                start: "-43200m"
                max_points_per_query: 5000
                probe_version_interval: "600s"
                fallback_version: "v0.0.0"
                force_min_step_interval: "8800h"
                # vmClusterTenantID: "0" # use vmClisterTenantID for VM-cluster only
            timeouts:
                find: "2s"
                render: "50s"
                connect: "200ms"
            servers:
              - "http://127.0.0.1:8482"
              - "http://127.0.0.1:8483"

Simplified query (if applicable)
query parameter send from grafana to carbonapi:
target=some.metric&from=1730980363&until=1738756365&format=json&maxDataPoints=1378

query parameter send to victoriametrics
end=1738756365&max_lookback=7200s&query=%7B__graphite__%3D%22some.metric%22%7D&start=1730980363&step=7200s

as you can see, the step size is way bigger than the expected "60s" which is the min step size configured in the carbonapi.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant