Skip to content

Commit

Permalink
Merge pull request #728 from newrelic/docs/account-id
Browse files Browse the repository at this point in the history
docs(provider): improvements for provider's argument reference, fix examples, add getting started quick link
  • Loading branch information
sanderblue authored Jun 25, 2020
2 parents 0406436 + e9ed079 commit 456e1b7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion website/docs/guides/getting_started.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ resource "newrelic_alert_condition" "alert_condition_name" {
name = "My Alert Condition Name"
type = "apm_app_metric"
entities = [data.newrelic_application.app_name.application_id]
entities = [data.newrelic_entity.app_name.application_id]
metric = "apdex"
runbook_url = "https://www.example.com"
condition_scope = "application"
Expand Down
34 changes: 19 additions & 15 deletions website/docs/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,26 @@ digital transformation.

Use the navigation to the left to read about the available resources.

### Quick Links
## Quick Links

- [**Migration Guide: Upgrading to v2.x**](guides/migration_guide_v2.html)
- [**Configure the Provider**](guides/provider_configuration.html)
- [**Getting Started Guide**](guides/getting_started.html)
- [**Migration Guide: Upgrading to v2.x**](guides/migration_guide_v2.html)

## Argument Reference

The following arguments are supported.

| | | |
| ---------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account_id` | Required | Your New Relic account ID. The `NEW_RELIC_ACCOUNT_ID` environment variable can also be used. |
| `api_key` | Required | Your New Relic Personal API key (starts with `NRAK`). The `NEW_RELIC_API_KEY` environment variable can also be used. |
| `admin_api_key` | Required | Your New Relic Admin API key (starts with `NRAA`). The `NEW_RELIC_ADMIN_API_KEY` environment variable can also be used. |
| `region` | Required | The region for the data center for which your New Relic account is configured. The `NEW_RELIC_REGION` environment variable can also be used. Valid values are `US` or `EU`. |
| `insecure_skip_verify` | Optional | Trust self-signed SSL certificates. If omitted, the `NEW_RELIC_API_SKIP_VERIFY` environment variable is used. |
| `insights_insert_url` | Optional | Your Insights insert key used when inserting Insights events via the `newrelic_insights_event` resource. Can also use `NEW_RELIC_INSIGHTS_INSERT_KEY` environment variable. |
| `cacert_file` | Optional | A path to a PEM-encoded certificate authority used to verify the remote agent's certificate. The `NEW_RELIC_API_CACERT` environment variable can also be used. |


## Example Usage

Expand Down Expand Up @@ -49,7 +65,7 @@ resource "newrelic_alert_condition" "foo" {
name = "foo"
type = "apm_app_metric"
entities = [data.newrelic_application.foo.application_id]
entities = [data.newrelic_entity.foo.application_id]
metric = "apdex"
runbook_url = "https://docs.example.com/my-runbook"
Expand Down Expand Up @@ -82,18 +98,6 @@ resource "newrelic_alert_policy_channel" "alert_email" {
}
```

## Argument Reference

The following arguments are supported:

- `api_key` - (Required) Your New Relic Personal API key. The `NEW_RELIC_API_KEY` environment variable can also be used.
- `admin_api_key` - (Required for many resources) Your New Relic Admin API key. The `NEW_RELIC_ADMIN_API_KEY` environment variable can also be used.
- `region` - (Required) The region for the data center for which your New Relic account is configured. The New Relic region can also be set via the environment variable `NEW_RELIC_REGION`. Valid values are `US` or `EU`. Only one region per provider block can be configured. If you have accounts in both regions, you must instantiate two providers - one for `US` and one for `EU`. See [multiple region example](add-link-here).
- `insecure_skip_verify` - (Optional) Trust self-signed SSL certificates. If omitted, the `NEW_RELIC_API_SKIP_VERIFY` environment variable is used.
- `insights_insert_key` - (Optional) Your Insights insert key used when inserting Insights events via the `newrelic_insights_event` resource. Can also use `NEW_RELIC_INSIGHTS_INSERT_KEY` environment variable.
- `insights_insert_url` - (Optional) This argument changes the Insights insert URL (default is https://insights-collector.newrelic.com/v1/accounts). If the New Relic account is in the EU, the Insights API URL must be set to https://insights-collector.eu.newrelic.com/v1. The `NEW_RELIC_INSIGHTS_INSERT_URL` environment variable can also be used.
- `cacert_file` - (Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate. The `NEW_RELIC_API_CACERT` environment variable can also be used.

## Support for v1.x

While the sun rises on the `2.x` release, the sunset of the `1.x` approaches.
Expand Down

0 comments on commit 456e1b7

Please sign in to comment.