[
https://issues.apache.org/jira/browse/AMBARI-21710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16220291#comment-16220291
]
Saurabh commented on AMBARI-21710:
----------------------------------
As mentioned above in problem statement it is because of 'NaNundefined' is
prefixed to the 'startTime' value and once I removed this string then it
started working.
curl --insecure -u admin:admin -H 'X-Requested-By: ambari' -X GET
"http://localhost:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.AppsRunning._max&appId=resourcemanager&startTime=1508981777&endTime=1509003377"
| python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
102 2260 0 2260 0 0 167k 0 --:--:-- --:--:-- --:--:-- 220k
{
"metrics": [
{
"appid": "resourcemanager",
"metadata": {},
"metricname":
"yarn.QueueMetrics.Queue=root.default.AppsRunning._max",
"metrics": {
"1508982000000": 7.333333333333333,
"1508982300000": 7.333333333333333,
"1508982600000": 7.333333333333333,
"1508982900000": 8.3333333333333339,
"1508983200000": 7.333333333333333,
"1508983500000": 7.666666666666667,
"1508983800000": 8.6666666666666661,
"1508984100000": 8.3333333333333339,
"1508984400000": 7.333333333333333,
"1508984700000": 7.0,
"1508985000000": 7.666666666666667,
"1508985300000": 8.6666666666666661,
"1508985600000": 7.333333333333333,
"1508985900000": 7.0,
"1508986200000": 7.0,
"1508986500000": 7.0,
"1508986800000": 7.333333333333333,
"1508987100000": 10.0,
"1508987400000": 9.0,
"1508987700000": 7.666666666666667,
"1508988000000": 7.666666666666667,
"1508988300000": 7.333333333333333,
"1508988600000": 7.0,
"1508988900000": 8.3333333333333339,
"1508989200000": 7.0,
"1508989500000": 7.333333333333333,
"1508989800000": 7.333333333333333,
"1508990100000": 7.333333333333333,
"1508990400000": 7.333333333333333,
"1508990700000": 8.3333333333333339,
"1508991000000": 8.6666666666666661,
"1508991300000": 7.333333333333333,
"1508991600000": 7.333333333333333,
"1508991900000": 7.0,
"1508992200000": 9.3333333333333339,
"1508992500000": 8.6666666666666661,
"1508992800000": 7.333333333333333,
"1508993100000": 7.666666666666667,
"1508993400000": 7.0,
"1508993700000": 7.333333333333333,
"1508994000000": 6.333333333333333,
"1508994300000": 5.666666666666667,
"1508994600000": 7.0,
"1508994900000": 6.666666666666667,
"1508995200000": 5.0,
"1508995500000": 5.666666666666667,
"1508995800000": 6.0,
"1508996100000": 6.333333333333333,
"1508996400000": 5.0,
"1508996700000": 5.0,
"1508997000000": 5.0,
"1508997300000": 6.0,
"1508997600000": 6.0,
"1508997900000": 6.666666666666667,
"1508998200000": 7.333333333333333,
"1508998500000": 8.0,
"1508998800000": 9.6666666666666661,
"1508999100000": 5.0,
"1508999400000": 5.0,
"1508999700000": 8.6666666666666661,
"1509000000000": 5.0,
"1509000300000": 6.0,
"1509000600000": 8.0,
"1509000900000": 6.666666666666667,
"1509001200000": 8.0,
"1509001500000": 9.0,
"1509001800000": 7.666666666666667,
"1509002100000": 7.333333333333333,
"1509002400000": 9.3333333333333339,
"1509002700000": 7.333333333333333,
"1509003000000": 5.333333333333333,
"1509003300000": 10.0
},
"starttime": 1508982000000,
"timestamp": 1508982000000
}
]
}
> Yarn-Queues dashboard not displaying data in Grafana.
> -----------------------------------------------------
>
> Key: AMBARI-21710
> URL: https://issues.apache.org/jira/browse/AMBARI-21710
> Project: Ambari
> Issue Type: Bug
> Affects Versions: 2.5.1
> Reporter: Aravindan Vijayan
> Assignee: Aravindan Vijayan
> Priority: Blocker
> Fix For: 2.5.2
>
>
> There is no data or error saying 'timeseries data request error'. The api
> call being made in the background which turned out to be this:
> https://<>:3000/api/datasources/proxy/1/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.AppsRunning._max&appId=resourcemanager&startTime=NaNundefined1502465840&endTime=1502487440
> Note that, 'NaNundefined' is prefixed to the 'startTime' value.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)