Histograms and quantiles response

I am not sure I understand the response that I get for my query with approxhistogram.

I see quantiles are smaller than the breaks in the histograms, max seems to be approximately correct. My query interval is for one day and calculating quantiles for 12h granularity.

We are on 0.9.0 and use the default resolution of 50 for histograms and have approxHistogramHold enabled at ingest. We can experiment with more resolution, but before that I wanted to see if my interpretation of the response is correct.

I interpret from the following in the response that 95th percentile is 48.00 - I realize this is experimental feature and any help with this will be appreciated.

“percentiles”: {

“probabilities”: [

0.05,

0.1,

0.5,

0.9,

0.95

],

“quantiles”: [

1,

1,

14.335338,

39.438404,

48.881668

],

The full query and response is added.

Thanks

Meera

“granularity”: {

“timeZone”: “MST”,

“period”: “PT12H”,

“type”: “period”

},

“aggregations”: [

{

“name”: “histograms”,

“fieldName”: “count”,

“type”: “approxHistogram”

}

],

“postAggregations”: [

{

“name”: “percentiles”,

“fieldName”: “histograms”,

“type”: “quantiles”,

“probabilities”:[0.05, 0.1,0.5,0.9,0.95],

“numBuckets”:10,

“lowerLimit” : 0

}

],

as

[

{

“version”: “v1”,

“timestamp”: “2017-03-21T12:00:00.000-07:00”,

“event”: {

“pool”: “somesvc”,

“percentiles”: {

“probabilities”: [

0.05,

0.1,

0.5,

0.9,

0.95

],

“quantiles”: [

1,

1,

1,

1,

1

],

“min”: 1,

“max”: 4422

},

“histograms”: {

“breaks”: [

-735.8333129882812,

1,

737.8333129882812,

1474.6666259765625,

2211.5,

2948.333251953125,

3685.16650390625,

4422

],

“counts”: [

0,

258432,

3,

3,

6,

4,

1

]

},

“type”: “URL”

}

},

{

“version”: “v1”,

“timestamp”: “2017-03-22T00:00:00.000-07:00”,

“event”: {

“pool”: “somesvc”,

“percentiles”: {

“probabilities”: [

0.05,

0.1,

0.5,

0.9,

0.95

],

“quantiles”: [

1,

1,

14.335338,

39.438404,

48.881668

],

“min”: 1,

“max”: 162

},

“histograms”: {

“breaks”: [

-25.83333396911621,

1,

27.83333396911621,

54.66666793823242,

81.5,

108.33333587646484,

135.1666717529297,

162

],

“counts”: [

0,

200937.125,

74449.4921875,

10354.9150390625,

185.4681396484375,

4,

3

]

},

“type”: “URL”

}

}

]