Is it possible to get output of a NRQL query in new relic using a jenkins job?

1.1k Views Asked by At

I'm looking to automate the process of collecting data from New Relic Insights and sharing it over a mail accepting start and end time for a particular nrql query. There is a New Relic Insights plugin for jenkins that is available but not sure if such a task is possible using that? Any suggestions?

1

There are 1 best solutions below

1
On

There is a REST API for Insights that will let you senda NRQL query and retrieve the results in JSON format. You might take a look at that.

https://docs.newrelic.com/docs/insights/insights-api/get-data/query-insights-event-data-api