Coder Social home page Coder Social logo

Comments (4)

candlerb avatar candlerb commented on June 28, 2024 1

Presumably you have a reasonably modern version of grafana?

My guess is that you've not set the correct scrape interval in the grafana data source you've defined.

Look under Configuration > Data Sources > (your prometheus)

image

Suppose the scrape interval is set to 15s here (which is the default if you haven't set it) - but you're actually scraping at 1 minute intervals in your prometheus config. $__rate_interval will drop to (graph_step+15s), eventually reaching a minimum value, which is 4 x datasource interval = 1m

At this point you're doing rate(...)[1m] which will display no data if you are scraping at 1 minute intervals; you need at least rate(...)[2m]. You can achieve this by setting the data source interval to 30s.

You can set the data source interval to the "correct" value of 1m to match your scraping, but that will give you a rate calculated over the points in a 4m window, which is actually the rate over 3 minutes (from the first to last data point in that window). I think this is wrong, and I raised it here, but that was rejected.

from grafana-dashboards.

rfrail3 avatar rfrail3 commented on June 28, 2024

That is an annoying thing, great to know that now there is a realiable alternative.

Definitively is the way to go, but the new release requirement can be a trouble for the people that doesn't have the version updated.

But, as I updated the dashboard version on #70 to 7.3.7, it can be only on this repo for a few weeks or months until I publish it on Grafana website, giving time to have an updated userbase.

from grafana-dashboards.

alarsyo avatar alarsyo commented on June 28, 2024

I'm getting "No data" when zooming in using this change. It works for "last 24 hours" and "last 12 hours" but breaks under 6h and less :/

Reverting to irate and 5m fixes it

from grafana-dashboards.

alarsyo avatar alarsyo commented on June 28, 2024

You're right, that was absolutely it! Thanks for the detailed answer, this makes sense now!

from grafana-dashboards.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.