Can I programatically get metric names out of Graphite?

Asked by Lonnen

Is there a way to get an enumeration of metrics out of graphite with an API call?

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Lonnen
Solved:
Last query:
Last reply:
Revision history for this message
Boopathi Rajaa (boopathi) said :
#1

GET /metrics/find/?format=treejson&query=metrics.cpu.*

You'll get the children of `cpu`.

Make sure Cross domain requests serving is enabled if you're querying from a different host.

Revision history for this message
Jason Dixon (jason-dixongroup) said :
#2

There is also the https://github.com/obfuscurity/therry project, a simple web service for caching and searching Graphite metrics. It's particularly useful when want to search all of your metrics for a particular substring without traversing the entire tree yourself.

Revision history for this message
Lonnen (chris-lonnen) said :
#3

Thank you!