github.com/argoproj/argo-cd/v2@v2.10.9/docs/operator-manual/notifications/services/newrelic.md (about)

     1  # NewRelic
     2  
     3  ## Parameters
     4  
     5  * `apiURL` - the api server url, e.g. https://api.newrelic.com
     6  * `apiKey` - a [NewRelic ApiKey](https://docs.newrelic.com/docs/apis/rest-api-v2/get-started/introduction-new-relic-rest-api-v2/#api_key)
     7  
     8  ## Configuration
     9  
    10  1. Create a NewRelic [Api Key](https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys/#user-api-key)
    11  2. Store apiKey in `argocd-notifications-secret` Secret and configure NewRelic integration in `argocd-notifications-cm` ConfigMap
    12  
    13  ```yaml
    14  apiVersion: v1
    15  kind: ConfigMap
    16  metadata:
    17    name: <config-map-name>
    18  data:
    19    service.newrelic: |
    20      apiURL: <api-url>
    21      apiKey: $newrelic-apiKey
    22  ```
    23  
    24  ```yaml
    25  apiVersion: v1
    26  kind: Secret
    27  metadata:
    28    name: <secret-name>
    29  stringData:
    30    newrelic-apiKey: apiKey
    31  ```
    32  
    33  3. Copy [Application ID](https://docs.newrelic.com/docs/apis/rest-api-v2/get-started/get-app-other-ids-new-relic-one/#apm)
    34  4. Create subscription for your NewRelic integration
    35  
    36  ```yaml
    37  apiVersion: argoproj.io/v1alpha1
    38  kind: Application
    39  metadata:
    40    annotations:
    41      notifications.argoproj.io/subscribe.<trigger-name>.newrelic: <app-id>
    42  ```
    43  
    44  ## Templates
    45  
    46  * `description` - __optional__, high-level description of this deployment, visible in the [Summary](https://docs.newrelic.com/docs/apm/applications-menu/monitoring/apm-overview-page) page and on the [Deployments](https://docs.newrelic.com/docs/apm/applications-menu/events/deployments-page) page when you select an individual deployment.
    47    * Defaults to `message`
    48  * `changelog` - __optional__, A summary of what changed in this deployment, visible in the [Deployments](https://docs.newrelic.com/docs/apm/applications-menu/events/deployments-page) page when you select (selected deployment) > Change log.
    49    * Defaults to `{{(call .repo.GetCommitMetadata .app.status.sync.revision).Message}}`
    50  * `user` - __optional__, A username to associate with the deployment, visible in the [Summary](https://docs.newrelic.com/docs/apm/applications-menu/events/deployments-page) and on the [Deployments](https://docs.newrelic.com/docs/apm/applications-menu/events/deployments-page).
    51    * Defaults to `{{(call .repo.GetCommitMetadata .app.status.sync.revision).Author}}`
    52  
    53  ```yaml
    54  context: |
    55    argocdUrl: https://example.com/argocd
    56  
    57  template.app-deployed: |
    58    message: Application {{.app.metadata.name}} has successfully deployed.
    59    newrelic:
    60      description: Application {{.app.metadata.name}} has successfully deployed
    61  ```