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

Graphite queries not calculated correctly #6262

Closed
mfredenhagen opened this issue May 13, 2024 · 1 comment
Closed

Graphite queries not calculated correctly #6262

mfredenhagen opened this issue May 13, 2024 · 1 comment
Labels
bug Something isn't working graphite

Comments

@mfredenhagen
Copy link

Describe the bug

We have replaced Graphite with VictoriaMetrics, and now some Graphs in our Dashboards no longer display correct values.
For example, the following Graphite query: aliasByNode(consolidateBy(scaleToSeconds(nonNegativeDerivative(stats.gauges.$instance.enterprise-app.ingest.intake.time.count), 60), 'sum'), 2) is producing all 0 data points.
image
Running something similar in MetricsQL produces a graph like this:
image
that is more likely expected.

We've checked the compatibility of the CarbonAPI functions and assume all should work.

To Reproduce

VictoriaMetrics is part of our installation (running as a container in a K8S cluster); the app uses GraphiteReporter to push metrics to VM. Unfortunately, this setup isn't easy to reproduce.
But here are the command line options we use to start the container:
--retentionPeriod=1
--storageDataPath=/opt/victoria-metrics
--envflag.enable=true
--envflag.prefix=VM_
--graphiteListenAddr=0.0.0.0:2003
--loggerFormat=json

Version

victoria-metrics-20240301-013626-tags-v1.99.0-0-g9cd4b0537

Logs

nothing related in the logs

Screenshots

No response

Used command-line flags

No response

Additional information

No response

@mfredenhagen mfredenhagen added the bug Something isn't working label May 13, 2024
@mfredenhagen
Copy link
Author

It turned out that Storage-Step header on the Grafana datasource had to be aligned with our metrics system (the documented 10s weren't sufficient in our case)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working graphite
Projects
None yet
Development

No branches or pull requests

2 participants