graphite-web icon indicating copy to clipboard operation
graphite-web copied to clipboard

Graphite webapp tree browser does not show metrics with leaf names matching intermediate node names

Open mleinart opened this issue 13 years ago • 9 comments

Imported from https://bugs.launchpad.net/bugs/814182

Reported by noslowerdna
Date Created Jul 21, 2011

On version 0.9.8 I noticed the following behavior in the webapp.

Given two metrics where one metric is a prefix of the other, e.g. stats.test.documents and stats.test.documents.viewable, only the metric with the longer name (e.g. stats.test.documents.viewable) is visible in the tree browser. The 'documents' leaf is apparently clobbered or hidden by the 'documents' folder.

On the filesystem I can see that the documents directory (containing viewable.wsp) and the documents.wsp file both exist, so it appears that carbon is correctly tracking both metrics.

mleinart avatar Mar 13 '13 06:03 mleinart

Comment by chrismd on Sep 25, 2011:

Deferring this til after 0.9.9 when I'll be merging in the completely refactored storage API from the 1.1 branch.

mleinart avatar Mar 13 '13 06:03 mleinart

@tmm1 IIRC this is the bug we investigated during my interview. We found that the rendering is tightly coupled to element id's in the DOM, at least afa the composer is concerned. Please correct me if I'm mistaken.

/cc @sshirokov @sckevmit

obfuscurity avatar May 07 '13 13:05 obfuscurity

Confirmed this bug still exists in 0.9.12.

ref #536

obfuscurity avatar Dec 16 '13 17:12 obfuscurity

What would be the impact if we coudln't say:

if is_leaf(node):
    [blah]
else:
    [is a branch]

It seems like it'd mean re-defining a node to have a property, meaning "contains_data" to separate the purpose of navigating the tree from returning data.

pcn avatar Dec 16 '13 18:12 pcn

Hello, are there any workarounds for this? Thanks.

mihneadb avatar Jul 06 '15 10:07 mihneadb

:+1: hit this as well

languitar avatar Jul 22 '15 13:07 languitar

We hit this too, still present on 0.9.15 from EPEL.

frlinux avatar Oct 18 '16 08:10 frlinux

Yes, this is a known bug that isn't likely to get fixed without a major redesign of the Composer UI.

obfuscurity avatar Oct 18 '16 11:10 obfuscurity

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 14 '20 01:04 stale[bot]