Retrieve metric timeslice data for your app (Explorer)

When using New Relic's REST API Explorer (v2) to get metric timeslice data for your application, you need:

View your app's ID

To view your app's ID:

  1. From the New Relic REST API Explorer, select Applications > GET List.
  2. If you are not signed in to New Relic, provide an API key for your app.
  3. Optional: From Applications > List, fill in values for the name, ids, or language filters.
  4. Select Send Request.
  5. From the Response section, copy the app's id.

Continue with the procedure to view metric names.

View metric names for your app

To view the metric timeslice data available for your app:

  1. From the New Relic REST API Explorer, select Applications > GET Metric Names.
  2. From Applications > Metric Names, type or paste your application ID.
  3. Fill in a specific or partial metric name, or leave blank to view the list of available metric names and values.
  4. Select Send Request.
  5. From the Response section, review the app's available metrics.

Continue with the procedure to get metric timeslice ​data.

Get metric timeslice data for your app

To get the metric values for your app, copy the values from the Metric Names results, and paste them in the Metric Timeslice Data fields:

  1. From the New Relic REST API Explorer, select Applications > GET Metric Data.
  2. From Applications > Metric Data, type or paste your application ID.
  3. Type or paste one or more names (from GET Metric Names) for your app. Start each name on a new line.
  4. Select Send Request.
  5. From the Response section, review the app's available metric_data.

After reviewing the Response section, you can continue making adjustments, and select Send Request again. For example:

  • To specify a time range for the metric timeslice data, fill the from and to values, or use the diamond icon-api-diamond .
  • To create an average of the data over the time range, set summarize to true. Or, to keep the data for each time period for the range you have specified, leave summarize blank.

View other REST API data

To use the API Explorer with other New Relic products, select the corresponding API key. This may include:

  • Insights
  • Synthetics
  • Plugins
  • Partner

For more help

Recommendations for learning more: