graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #02025
Re: [Question #184854]: Obtaining available metrics
Question #184854 on Graphite changed:
https://answers.launchpad.net/graphite/+question/184854
Daniel Lawrence posted a new comment:
If you want just a list of graphs tat are available have you tired using
the url-api and the /metrics/find/ method.
eg. the following url query will give you a list of all the graphs inside the b/bambi/file_handles directory in json format
http://localhost:8000/metrics/find/?_dc=1327193701014&format=treejson&query=*.b.bambi.file_handles.*&node=*.b.bambi.file_handles
[{"text": "*", "expandable": 0, "leaf": 1, "id": "*.b.bambi.file_handles.*", "allowChildren": 0}, {"leaf": 1, "context": {}, "text": "allocated", "expandable": 0, "id": "*.b.bambi.file_handles.allocated", "allowChildren": 0}, {"leaf": 1, "context": {}, "text": "free", "expandable": 0, "id": "*.b.bambi.file_handles.free", "allowChildren": 0}, {"leaf": 1, "context": {}, "text": "total", "expandable": 0, "id": "*.b.bambi.file_handles.total", "allowChildren": 0}]
Should be easy to parse to get all the graph names, or in your case
interface names.
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.