← Back to team overview

graphite-dev team mailing list archive

Re: [Question #184854]: Obtaining available metrics

 

Question #184854 on Graphite changed:
https://answers.launchpad.net/graphite/+question/184854

    Status: Open => Answered

Brian Dorsey proposed the following answer:
It looks like you can get a list of metrics by using the URL-API and
setting the format to JSON instead of a graph image. For example, this
works for me:

http://graphite_server/render/?target=carbon.agents.metrics-*.cache.*&format=json&from=-1minute

(I set 'from' to a short value here, to just get the list of metrics
without much extra data, but if you know what graphs you want to draw,
you could get the list of metrics and the data in one call.)

URL-API docs:
http://readthedocs.org/docs/graphite/en/latest/url-api.html

Take care,
-Brian

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.