Coder Social home page Coder Social logo

Decrease minimal granularity about druidplugin HOT 6 CLOSED

lfblue avatar lfblue commented on August 21, 2024
Decrease minimal granularity

from druidplugin.

Comments (6)

iamsurya-dev avatar iamsurya-dev commented on August 21, 2024 2

Will take a look at this.

from druidplugin.

pkarmaka avatar pkarmaka commented on August 21, 2024

We can change the custom granularity to include option for second, but lets keep the default as minute.

from druidplugin.

RestfulBlue avatar RestfulBlue commented on August 21, 2024

i think just add 2 missing druid granularities ( none and second ) will be good enough =)

from druidplugin.

knoguchi avatar knoguchi commented on August 21, 2024

none is rarely useful but if we add it why not other supported granularities as well? Per Druid documentation, the supported granularity strings are: all, none, second, minute, fifteen_minute, thirty_minute, hour, day, week, month, quarter and year.

from druidplugin.

iamsurya-dev avatar iamsurya-dev commented on August 21, 2024

Agree that none is rarely useful. It was just something that I added to address this issue. We could add all other granularities as well. Let me know if you think I should add it. I don't see a use of quarter and year granularity from a grafana usecase though.

from druidplugin.

RestfulBlue avatar RestfulBlue commented on August 21, 2024

i think main problem using none granularity with grafana is empty buckets.
according to docs :
http://druid.io/docs/latest/querying/timeseriesquery.html
druid support possibility to skip empty buckets adding flag skipEmptyBuckets to context

{
"queryType": "timeseries",
"dataSource": "sample_datasource",
"granularity": "day",
"aggregations": [
{ "type": "longSum", "name": "sample_name1", "fieldName": "sample_fieldName1" }
],
"intervals": [ "2012-01-01T00:00:00.000/2012-01-04T00:00:00.000" ],
"context" : {
"skipEmptyBuckets": "true"
}
}
i think adding checkbox to add this flag will make it usable in many place. In some place we collect data with 1s interval. But due to some different lags, sometime 2 metrics can be writed with same second. To avoid visualization problem with second granularity we should add post aggregation. Also with that situation come empty bucket, as 2 metrics have some time, so chart look strange in some place. Using none granularity and skipEmptyBuckets will make chart look as it is, without empty buckets and additional post aggregation.

from druidplugin.

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.