Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find request returns expandable:1 on a leaf of a tree and it returns it as many times as many metrics in the glob #112

Open
azhiltsov opened this issue Apr 4, 2019 · 1 comment · Fixed by #122
Assignees
Labels
bug Something isn't working top-level api

Comments

@azhiltsov
Copy link
Contributor

metrics layout:
user.azhiltsov.test1.1
user.azhiltsov.test2.1

query:
/metrics/find/?query=user.azhiltsov.*.1
expected return:

[
  {
    "leaf": 1,
    "context": {},
    "text": "1",
    "expandable": 0,
    "id": "user.azhiltsov.*.1",
    "allowChildren": 0
  }
]

carbonapi returns:

[
  {
    "allowChildren": 0,
    "context": {},
    "expandable": 1,
    "id": "user.azhiltsov.*.1",
    "leaf": 1,
    "text": "1"
  },
  {
    "allowChildren": 0,
    "context": {},
    "expandable": 1,
    "id": "user.azhiltsov.*.1",
    "leaf": 1,
    "text": "1"
  }
]
@azhiltsov azhiltsov added bug Something isn't working top-level api good first issue Good for newcomers labels Apr 4, 2019
@azhiltsov
Copy link
Contributor Author

as the consequence expandable:1 grafana is offering you to 'select metric' even if you already at the leaf on a tree.
As consequence of multiple returns it offer you to fill the same values in the helper multiple times
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working top-level api
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants