-
Create a new account on New Relic and verify your email.\
New Relic: Account Creation
\
New Relic Home Page
-
Click on your Profile and navigate to "API keys".\
API Keys
-
Click on "Create a key"\
Create a key
-
Select "Ingest - Licence" for the Key Type and enter in details for the "Name" and "Notes"\
Ingest - License - Key Creation
-
Confirm Licence has been created\
Licence Created
-
Copy the key from the new "Ingest - Licence" and create a variable in your pipeline labeled "
SFPOWERSCRIPTS_NEWRELIC_API_KEY
" and assign the value of the key. Ensure to mask this value.\Sample GitLab Variable for New Relic API Key
-
Add another additional variable named "SFPOWERSCRIPTS_NEWRELIC" and set the value to "true". \
SFPOWERSCRIPTS_NEWRELIC Variable
-
Retrieve your "Account ID" under Profile > Administration > Access Management > Accounts\
-
Update the
cicd-dashboard.json
file indashboards/NewRelic
folder with the value of the "Account id" for all instances of<your-account-id>
in the file. Ensure to include the quotation marks for the "Account id". (eg. "1234567")\ -
Trigger the scheduled job for "schedule-report-so-pool" job and confirm success.
{% hint style="warning" %} Avoid checking in the updated "Account id" file directly in your repository if you want to keep this as a secret. This is only needed to import into the Dashboard in the next section. {% endhint %}
-
Navigate to the Dashboard and click on "Import Dashboard".\
Import Dashboard
-
Copy and paste the edited contents of the "
cicd-dashboard.json"
file in the previous section with the updated "Account id".\JSON Import Dashboard
-
Click on "Import dashboard"
-
Confirm the "Salesforce CI/CD Dashboard" is created.\
-
Click to view details for the "Salesforce CI/CD Dashboard"
\
{% hint style="info" %} Metrics are meant to be reviewed and monitored to ensure the success of your CI/CD setup. Ensure that the team is reviewing the dashboard frequently and identify issues across Scratch Org Creations, Deployments, {% endhint %}