[
https://issues.apache.org/jira/browse/AMBARI-6780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14089772#comment-14089772
]
Jonathan Hurley commented on AMBARI-6780:
-----------------------------------------
The heart of the problem was the metrics regex and matching. Things that were
being done wrong:
- Creating categories from a given property ID (incorrect category creation
when regex/methods were present)
- Searching using startsWith or contains(...) when a regular expression was
needed
- Not matching all potential subproperties when retrieving the metrics to
request
We never saw these issues in YARN because of:
- There were no metrics with the same name defined both with and without
regular expressions
- Luck; the patterns being matched on appears first, and thus the
startsWith(...) was working
> SOURCE and SINK metrics not working on host-component
> -----------------------------------------------------
>
> Key: AMBARI-6780
> URL: https://issues.apache.org/jira/browse/AMBARI-6780
> Project: Ambari
> Issue Type: Bug
> Affects Versions: 1.7.0
> Reporter: Jonathan Hurley
> Assignee: Jonathan Hurley
> Priority: Critical
> Fix For: 1.7.0
>
>
> Flume service UI is not able to show SOURCE and SINK metrics for an agent
> because the following API call is not working.
> {code}
> http://flume-1:8080/api/v1/clusters/c1/hosts/flume-3.c.pramod-thangali.internal/host_components/FLUME_HANDLER?fields=metrics/flume/flume/SINK/*
> {code}
> {code}
> http://flume-1:8080/api/v1/clusters/c1/hosts/flume-3.c.pramod-thangali.internal/host_components/FLUME_HANDLER?fields=metrics/flume/flume/SOURCE/*
> {code}
> However the CHANNEL one works
> {code}
> http://flume-1:8080/api/v1/clusters/c1/hosts/flume-3.c.pramod-thangali.internal/host_components/FLUME_HANDLER?fields=metrics/flume/flume/CHANNEL/*
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)