Terminus Get New Relic
, (*1)
Terminus Plugin that fetches metric data from the New Relic api:
1. It displays a list of sites without New Relic within an organization
2. It displays slowest performing sites using New Relic data (throughput, response time, Apdex)
3. It shows an alert if the environment is under stress using New Relic color coding
Pantheon sites., (*2)
Learn more about Terminus and Terminus Plugins at:
https://pantheon.io/docs/terminus/plugins/, (*3)
Examples
- Fetches metric data from
dev
terminus newrelic-data:site my_site.dev
, (*4)
- Displays all sites without New Relic under an organization by site plan.
terminus newrelic-data:org [ORG UUID]
, (*5)
- Displays all sites with or without New Relic under an organization by site plan.
terminus newrelic-data:org [ORG UUID] --all
, (*6)
- Displays all sites with slowest response time under an organization. It provides an indicator if a site is in normal or in critical condition based on the New Relic health status.
terminus newrelic-data:org [ORG UUID] --overview
, (*7)
Installation
For help installing, see Manage Plugins, (*8)
mkdir -p ~/.terminus/plugins
composer create-project -d ~/.terminus/plugins fusionx1/terminus-get-newrelic:dev-master
composer install
Things to remember
- If invoking New Relic-data:org make sure you are an administrator of the organisation, otherwise it will only display sites where you are member.
Todo
- To include screenshot of New relic metrics
- To add actual PHP Usage
- To add Browsers time and apdex