You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Haibo Chen (JIRA)" <ji...@apache.org> on 2017/04/12 23:45:42 UTC

[jira] [Commented] (HADOOP-14300) GraphiteSink reports metrics containing undesirable whitespaces

    [ https://issues.apache.org/jira/browse/HADOOP-14300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15966877#comment-15966877 ] 

Haibo Chen commented on HADOOP-14300:
-------------------------------------

Thanks @[~damien.claveau] for reporting this and providing a patch! Can you also add a unit test in TestGraphiteSink?

> GraphiteSink reports metrics containing undesirable whitespaces
> ---------------------------------------------------------------
>
>                 Key: HADOOP-14300
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14300
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: metrics
>    Affects Versions: 2.5.0, 2.6.0, 2.7.0, 2.7.1, 2.7.2, 2.7.3
>            Reporter: Damien Claveau
>            Priority: Trivial
>         Attachments: HADOOP-14300
>
>
> According to the Graphite documentation, the data sent must be in the following format: <metric path> <metric value> <metric timestamp>
> But some tag values that are flattened in the metricpath string sometimes include whitespaces and violate the carbon/graphite format.
> For example, the dirpath enumeration from the datanode : 
> FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.Context=FSDatasetState.StorageInfo=FSDataset{dirpath='[/data/1/hdfs/data/current, /data/2/hdfs/data/current]'}.Hostname=worker1.Capacity 78436466688 1491986609
> Currently, none of the aggregators available in the Graphite ecosystem can handle these malformed metrics. These whitespaces should be replaced by underscores.
> I will be happy to attach a small patch.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org