[TSDR-27] Log aggregation on the fly not working Created: 20/Jun/16 Updated: 31/Aug/16 Resolved: 31/Aug/16 |
|
| Status: | Resolved |
| Project: | tsdr |
| Component/s: | General |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | AbdulRahman AlHamali | Assignee: | Jesse White |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 6087 |
| Priority: | High |
| Description |
|
I tried this example: curl -G -v -H "Accept: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" "http://localhost:8181/tsdr/metrics/query" --data-urlencode "tsdrkey=[NID=][DC=FLOWSTATS][RK=]" --data-urlencode "from=0" --data-urlencode "until=2400000000" --data-urlencode "interval=6000000" --data-urlencode "aggregation=MEAN" > test Here, (until - from) / interval = 400 However, I still receive a thousand, non-aggregated records. Here is the output of the curl command:
|
| Comments |
| Comment by Sharon Aicler [ 18/Jul/16 ] |
|
I have switch the "interval" value with "maxDataPoints" so now the user, when aggregating, can specify how many point he wants to received from the period. curl -G -v -H "Accept: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" "http://localhost:8181/tsdr/metrics/query" --data-urlencode "tsdrkey=[NID=Controller][DC=EXTERNAL][MN=Heap:Memory:Usage]" --data-urlencode "from=0" --data-urlencode "until=2400000000" --data-urlencode "maxDataPoints=4" --data-urlencode "aggregation=MEAN" > test In the above example i requested only 4 points... |