OpenTSDB - Get all metrics via http

前端 未结 1 1480
后悔当初
后悔当初 2021-01-22 04:13

I am getting some data from OpenTSDB, but cannot work out how to get a list of metrics via http?

For reference, here\'s the c# code I\'m using to get databack. Is there

相关标签:
1条回答
  • 2021-01-22 05:06

    OK, api/suggest returns the list based on matching supplied parameter. This will get me out of trouble on this question, although it doesn't return all metrics it gives me a method to make it work.

    Example Request Query String

    http://localhost:4242/api/suggest?type=metrics&q=sys&max=10 
    

    JSON Content

    {
      "type":"metrics",
      "q":"sys",
      "max":10
    }
    


    I hope this helps anyone else, basically RTFM! (http://opentsdb.net/docs/build/html/api_http/suggest.html)

    0 讨论(0)
提交回复
热议问题