[
https://issues.apache.org/jira/browse/AMBARI-14658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15097787#comment-15097787
]
bhuvnesh chaudhary commented on AMBARI-14658:
---------------------------------------------
[~swagle] Here is a small patch which fixes the issues. However, please feel
free to guide me if you believe that swap_total needs to be included somewhere
else as well or it was deliberately left out.
Here is the API call output after the patch
http://c6403.ambari.apache.org:6188/ws/v1/timeline/metrics?metricNames=swap_total
{noformat}
{
"metrics": [
{
"timestamp": 1452757699114,
"metricname": "swap_total",
"appid": "HOST",
"starttime": 1452757699114,
"metrics": {
"1452757699114": 5767152
}
}
]
}
{noformat}
Snapshot from Ambari Metrics Widgets attached as well. Will be raising a review
board request as well for the same.
> Ambari Metrics service does not show data for swap_total memory metric
> ----------------------------------------------------------------------
>
> Key: AMBARI-14658
> URL: https://issues.apache.org/jira/browse/AMBARI-14658
> Project: Ambari
> Issue Type: Bug
> Components: ambari-metrics
> Affects Versions: trunk
> Reporter: bhuvnesh chaudhary
> Assignee: bhuvnesh chaudhary
> Priority: Minor
> Attachments: swap_total_displayed.png
>
>
> swap_total metric is defined in metrics.json for several services, but it
> appears that the value for this metric is never extracted from the host, thus
> it is not available for consumption by collector and is not returned by API
> calls.
> Here is the response to the API call for swap_free
> http://c6403.ambari.apache.org:6188/ws/v1/timeline/metrics?metricNames=swap_total
> {noformat}
> {
> "metrics": []
> }
> {noformat}
> http://c6403.ambari.apache.org:6188/ws/v1/timeline/metrics?metricNames=swap_free
> {noformat}
> {
> "metrics": [{
> "timestamp": 1452592235626,
> "metricname": "swap_free",
> "appid": "HOST",
> "starttime": 1452592235626,
> "metrics": {
> "1452592235626": 5766994
> }
> }]
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)