REST API 没有返回任何服务器,尽管这些服务器在 New Relic 仪表板中可见
REST API is not returning any servers despite the servers being visible from the New Relic Dashboard
我试图通过 REST API 获取我的 New Relic 帐户上所有服务器的列表,但只返回一个空列表。我可以从 New Relic Dashboard 看到 Servers/Hosts。可能是什么问题?
来自 New Relic 支持团队的解决方案
If you are using this endpoint:
https://api.newrelic.com/v2/servers.json, it is for the New Relic
Servers product, which has been discontinued. If you are using New
Relic Infrastructure, you may get a list of servers from Insights:
SELECT uniques(hostname) FROM SystemSample If you are not using
Infrastructure, you may get a list of host names associated with your
APM applications:
SELECT uniques(host) FROM Transaction
我试图通过 REST API 获取我的 New Relic 帐户上所有服务器的列表,但只返回一个空列表。我可以从 New Relic Dashboard 看到 Servers/Hosts。可能是什么问题?
来自 New Relic 支持团队的解决方案
If you are using this endpoint: https://api.newrelic.com/v2/servers.json, it is for the New Relic Servers product, which has been discontinued. If you are using New Relic Infrastructure, you may get a list of servers from Insights:
SELECT uniques(hostname) FROM SystemSample If you are not using Infrastructure, you may get a list of host names associated with your APM applications:
SELECT uniques(host) FROM Transaction