Problem
You can't create an infrastructure alert condition because the metric you want to alert on does not appear in the Define thresholds section of our infrastructure UI's alerts page.
Solution
Instead of using New Relic's infrastructure UI, use infrastructure REST API calls to create the alert condition.
Review the query syntax to create (POST) an infrastructure condition.
Review the API requirements for metric conditions.
When you create the condition: For the
select_value
field, build the metric name by using the following syntax, whereprovider
is a standard prefix string:provider.metric.aggregation_typemetric
: Use the metric name as described in the New Relic documentation for your integration.aggregation_type
UseSum
,Average
,Minimum
, orMaximum
. Refer to the original documentation by the integration's cloud provider to see which statistic aggregations are available for each metric.
For the
policy_id
field, use the unique ID for the condition's associated alert policy. Find the policy ID in the policy URL:https://alerts.newrelic.com/accounts/ACCOUNT_ID/policies/ALERT_POLICY_ID
Cause
This happens because the Define thresholds dropdown list in our infrastructure UI only shows the metrics that New Relic has been able to collect in the last hour.