Member since
10-27-2017
16
Posts
0
Kudos Received
0
Solutions
03-16-2018
08:12 AM
@Jay Kumar SenSharma Thanks for your response. It resolves the issue. I realised that once i specify the appId, i can not collect multiple metrics with one call. Is there any workaround wheeeby i can specify appId for some metrics and not others in same call. These metrics are all using same appId (hbase). If i dont specify appId, the call returns the metrics for ams-hbase. Thanks
... View more
03-15-2018
08:31 PM
Hello, i am trying to collect some metrics related to hbase but i keep getting metrics related to ams-hbase. i sent the following request: http://<server>:6188/ws/v1/timeline/metrics?metricNames=master.Server.numDeadRegionServers&appid=hbase and got the following response related to ams hbase: {
"metrics": [{
"timestamp": 1521145230000,
"metadata": {},
"metricname": "master.Server.numDeadRegionServers",
"appid": "ams-hbase",
"starttime": 1521145230000,
"metrics": {
"1521145230000": 0.0
}
}
]
} In the real sense, 2 region servers are down. how do i collect the intended metrics. Thanks
... View more
Labels:
- Labels:
-
Apache HBase
03-03-2018
12:24 AM
ok, i accepted an answer already. Thanks
... View more
03-02-2018
11:54 PM
Its ok. I am looking at a situation where i collect multiple metrics multiple metrics and extract them for storage in a database. Thanks anyways
... View more
03-02-2018
11:47 PM
@Jay Kumar SenSharma Okay thank you very much. I will to find a way of sorting them then. I appreciate
... View more
03-02-2018
11:21 PM
Hello @Jay Kumar SenSharma, Thanks for your continous help, it has been insightful. Anyways, i have noticed some behaviour while collecting metrics from the API. If for example i make an API call like so, http://*********/ws/v1/timeline/metrics?metricNames=dfs.FSNamesystem.BlockCapacity,dfs.FsVolume.FlushIoRateNumOps,jvm.file_descriptor_usage,Topologies,jvm.JvmMetrics.ThreadsTimedWaiting,jvm.threads.runnable.count,jvm.JvmMetrics.GcCount i get a response which is sorted in a strange manner like this below. Is there a special way API sorts the metrics in the response or is it just a random arrangement. Thanks {
"metrics": [{
"timestamp": 1520030910000,
"metadata": {},
"metricname": "jvm.JvmMetrics.ThreadsTimedWaiting",
"appid": "applicationhistoryserver",
"starttime": 1520030910000,
"metrics": {
"1520030910000": 29.0
}
}, {
"timestamp": 1520030910000,
"metadata": {},
"metricname": "Topologies",
"appid": "nimbus",
"starttime": 1520030910000,
"metrics": {
"1520030910000": 0.0
}
}, {
"timestamp": 1520030910000,
"metadata": {},
"metricname": "dfs.FSNamesystem.BlockCapacity",
"appid": "n
amenode",
"starttime": 1520030910000,
"metrics": {
"1520030910000": 2097152.0
}
}, {
"timestamp": 1520030910000,
"metadata": {},
"metricname": "dfs.FsVolume.FlushIoRateNumOps",
"appid": "datanode",
"starttime": 1520030910000,
"metrics": {
"1520030910000": 0.0
}
}, {
"timestamp": 1520030910000,
"metadata": {},
"metricname": "jvm.file_descriptor_usage",
"appid": "nifi",
"starttime": 1520030910000,
"metrics": {
"1520030910000": 0.04996
}
}, {
"timestamp": 1520030910000,
"metadata": {},
"metricname": "jvm.threads.runnable.count",
"appid": "ambari_server",
"starttime": 1520030910000,
"metrics": {
"1520030910000": 10.0
}
}
]
}
... View more
02-16-2018
10:09 AM
@Jay Kumar SenSharma Oh nice thats very good. Thanks I have also tried to use the wildcard (%) such that it can return all metrics per service but i always end up with an empty json response. Is it wrong to call for metrics as below; http://<ams-host>:6188/ws/v1/timeline/metrics?metricNames=regionServer.%
Thanks for your help
... View more
02-16-2018
04:46 AM
Hello @Jay Kumar SenSharma Thanks for your feedback. Please how do i review the AMS datastore. Using this, can i get all the metrics per service? Thanks
... View more
02-15-2018
07:50 PM
I will like to know if there is any way i can collect all the metrics from the metrics collector API using one request with the format below: http://<AMS_HOST>:6188/ws/v1/timeline/metrics?metricNames=<>&hostname=<>&appId=<>&startTime=<>&endTime=<>&precision=<> Thanks
... View more
Labels:
- Labels:
-
Apache Ambari
11-02-2017
02:08 PM
Thank you very much @Jay Kumar SenSharma I am able to resolve it now Umar
... View more