Skip to content

cloudbees-io/newrelic-verify-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CloudBees action: Run New Relic to verify deployment

Use this action to provide post-deployment verification using New Relic, an observability tool that provides real-time data on application health, performance, and usage.

Inputs

Table 1. Input details
Input name Data type Required? Description

controller-url

String

No

The New Relic controller URL.

infra-conditions-url

String

No

The New Relic infrastructure conditions URL.

api-key

String

Yes

The New Relic API key.

duration

String

Yes

The verification duration, in milliseconds.

policies

String, representing an array

Yes

The New Relic policies.

conditions

String, representing an array

Yes

The New Relic conditions.

Usage example

In your YAML file, add:

  jobs:
    verify-with-newrelic:
      steps:
      - name: Verify post-deploy with New Relic
        uses: cloudbees-io/newrelic-verify-deploy@v1
        with:
          api-key: ${{ secrets.NEWRELIC_API_KEY }}
          duration: '10000'
          policies: '["Kubernetes default alert policy"]'
          conditions: '["Pod is not ready","Pod was unable to be scheduled","Container memory usage % is too high"]'
          infra-condition-url: https://my-infra.newrelic.com

License

This code is made available under the MIT license.

References