Cloud Optimize (nr1-cloud-optimize)
This application analyzes your cloud environment, and figures out where you're wasting money on excess cloud capacity. The application compares the size of your instances to their utilization, and estimates how much you could save by optimizing the size.
Note: When the
instanceTypeattribute is available on the
SystemSampleevent, the appropriate
instanceTypewill be detected against the relevant cloud provider, if this attribute returns
unknownor is not available the automatic
instanceTypedetection will not work. To ensure the best level of support it is recommended to configure the appropriate Infrastructure Cloud Integrations to have the additional metadata decorated and available eg. EC2 Integration, Azure VMs, Google Compute Engine.
To confirm you can use the following query for eg.
SELECT * FROM SystemSample WHERE hostname = 'my-host'and confirm the
Open Source License
This project is distributed under the Apache 2 license.
What do you need to make this work?
- New Relic Infrastructure agent(s) installed on your cloud computing devices and the related access to New Relic One.
You'll get the best possible data out of this application if you also:
- Activate the EC2 integration to group by your AWS cloud provider account.
- Activate the Azure VMs integration to group by your Azure cloud provider account.
- Activate the Google Compute integration to group by your GCP cloud provider account.
- Install APM on your applications to group by application.
First, ensure that you have Git and NPM installed. If you're unsure whether you have one or both of them installed, run the following command(s) (If you have them installed these commands will return a version number, if not, the commands won't be recognized):
git --version npm -v
Next, to clone this repository and run the code locally against your New Relic data, execute the following commands:
nr1 nerdpack:clone -r https://github.com/newrelic/nr1-cloud-optimize.git cd nr1-cloud-optimize nr1 nerdpack:serve
Visit https://one.newrelic.com/?nerdpacks=local, navigate to the Nerdpack, and
Deploying this Nerdpack
Open a command prompt in the nerdpack's directory and run the following commands.
# If you need to create a new uuid for the account to which you're deploying this Nerdpack, use the following # nr1 nerdpack:uuid -g [--profile=your_profile_name] # to see a list of APIkeys / profiles available in your development environment, run nr1 credentials:list nr1 nerdpack:publish [--profile=your_profile_name] nr1 nerdpack:deploy [-c [DEV|BETA|STABLE]] [--profile=your_profile_name] nr1 nerdpack:subscribe [-c [DEV|BETA|STABLE]] [--profile=your_profile_name]
Visit https://one.newrelic.com, navigate to the Nerdpack, and
New Relic has open-sourced this project. This project is provided AS-IS WITHOUT WARRANTY OR SUPPORT, although you can report issues and contribute to the project here on GitHub.
Please do not report issues with this software to New Relic Global Technical Support.
New Relic hosts and moderates an online forum where customers can interact with New Relic employees as well as other customers to get help and share best practices. Like all official New Relic open source projects, there's a related Community topic in the New Relic Explorers Hub. You can find this project's topic/threads here:
https://discuss.newrelic.com/t/cloud-optimizer-nerdpack/82936 (Note: URL subject to change before GA)
Issues / Enhancement Requests
Issues and enhancement requests can be submitted in the Issues tab of this repository. Please search for and review the existing open issues before submitting a new issue.
Contributions are welcome (and if you submit a Enhancement Request, expect to be invited to contribute it yourself
Keep in mind that when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. If you'd like to execute our corporate CLA, or if you have any questions, please drop us an email at firstname.lastname@example.org.