Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Cloud Optimizer Nerdpack

rfb
nerdpack
nr-nerdpack

#1

Cloud Optimize Nerdpack :cloud:

Let’s talk dollars and cents! The Cloud Optimization Nerdpack will help you determine potential savings across your environment. :money_mouth_face: It’s your time to really impress your Executives!

Note: This Nerdpack currently only supports AWS.

Be sure you have the following requirements listed below:

To maximize the use of this Nerdpack it is suggested you:

  • Install the EC2 integration for additional metadata to allow for grouping by your Cloud Provider Account
  • Install APM on your applications for grouping by application

Clone This Nerdpack

Clone this repository and run the following scripts:

git clone https://github.com/newrelic/nr1-cloud-optimize.git
cd nr1-cloud-optimize
nr1 nerdpack:uuid -gf
npm install
npm start

Visit https://one.newrelic.com/?nerdpacks=local, navigate to the Nerdpack, and :sparkles:


The full Cloud Optimizer GitHub repository and ReadMe can be found here.

Happy Nerd-ing! :nerd_face:


FutureHack Nerdpack Contest - Win an iPad!
#2

Hi Kav,
I’ve installed the cloud optimizer nerdpack but i can see no data as it shows 0 accounts.
I can tell this line:
const gql = {actor {accounts {name id reportingEventTypes(filter:["${eventType}"])}}}
//eventType = “SystemSample”

returns no accounts although the current account has data and it is showing up correclty on the new relic account.
I’ve tried to direclty hard-code the account id instead of calling the query, but nothing changed.

Regards


#3

Hi @mira.barsoum -

Can you confirm that the API key you have set up in your New Relic One profile (nr1 profiles:list) matches that of the account you have data flowing to?


#4

I am getting the same thing here.
Trying to get cloud optimizer running locally, and I am just seeing “Unable to load accounts!” when I view my local running instance in NR1.

If I run nr1 profiles:list I get :
Name Region API key
my-account us
default us

So it looks like it is there.
Any ideas?


#5

I managed to publish and deploy cloud optimizer, and I can see the data appearing now!
So it would appear that the issue is only when running locally.

I also had to generate a new UUID to get it to publish. I was getting errors like -
Error: The Nerdpack you are trying to publish was created on a different account.

I also had to add myself as a Newrdpack manager, which I was not aware of!


#6

Hey @brett.howells -

I’m not sure why you’d see that issue when running locally. It’s a little odd, I’ll try run cloud optimizer locally here and follow up with what I learn.


Another note is that UUIDs are tied to the API key of the user who created them. Nerdpacks are published against those UUIDs. When you publish, we’ll check that the UUID correlates to that of the API key you are using to publish.

So it is always recommended that as soon as you clone a nerdpack you should run:

nr1 nerdpack:uuid -gf

Which will create a new UUID with using the CLI profile tied to your API key.

If you grab the nerdpack by using:

nr1 nerdpack:clone -r https://URL.git

Then it will automatically update the UUID once the clone operation is complete.


Finally, yes, nerdpack manager is a requirement for deploying nerdpacks, unless you are an account Owner, where that nerdpack manager entitlement is automatically applied.

This is documented here in the New Relic One Applications Requirements doc:
https://docs.newrelic.com/docs/new-relic-one/use-new-relic-one/build-new-relic-one/new-relic-one-applications-requirements-security#security


#7

Hey Brett -

Just finished my test - while serving locally I was able to see cloud optimise data (though numbers & details obfuscated):


#8

So, who has deployed this and found good money to save? What and how did you find it?


#9

Hey @tim.davis - I guess Nerdpacks are still new-ish that not a huge number of people have deployed them all, so not many have a chance to come back to you here.

I have though heard talk internally of some customers using Cloud Optimizer and finding potential savings in the 6 figure range. I have no details I can share with you on that.

Have you yourself used Cloud Optimiser? If so, what were your results like? :-1: / :+1:??


#10

So, the first question is, have I had time to try to figure out NerdPacks period. The answer to that is no. As I was investigating this, I learned that our company actually has a purchased solution they use instead.


#11

Understood! Thanks @tim.davis

I’d recommend playing around with Nerdpacks, it was hard for me to fully understand the extendibility of the platform until I started looking at them. There’s certainly a time commitment to get to grips with React though :smiley:


#12

puts it on his list

Advanced Alerting
NRQL
OneRelic
Operational Needs





NerdPacks
Personal Life


#13

Yikes!!

Hope there’s not too many strict deadlines on it all :smiley:


#14

I’m trying to deploy this “online” rather than locally, but I’m having a bit of trouble.
It was working locally last week, but then I changed the nerdpack name and now it doesn’t seem to work locally. I’ve since reverted that change so it is direct from GitHub now.

We have a Pro account and a Lite account so I think the account/API key is the root of my issue. I’m trying to use the Lite one at the moment because we only have the Infrastructure agents running on there for now:

Unable to load accounts!

Please refresh to try again, and ensure you are using a UUID associated to your account.

I log in the the old APM view and I can switch between accounts there, but there isn’t a switch account in NR1, should it just be able to see both accounts by default?

I’ve added each profile to nr1 and then run the following (once with the pro profile as default and again with the lite as default):

nr1 nerdpack:uuid -gf
nr1 nerdpack:serve

And visited the nerdpacks=local URL but I get the error message about the UUID. I got the same message when i published/deployed it to the online version aswell.

Is there anything obvious that I’m doing wrong?


#15

@stephen.goodall - Could you share a screenshot of the error message you get when you access the nerdpacks=local URL having served to the lite account?

A screenshot of any browser console errors would also be helpful here.


#16

@RyanVeitch thanks for getting back on this (especially at this time of year!)

I went to get screenshots…and it seems to be working now. I haven’t changed anything though, is there sometimes a lag or something? Could my browser cache throw anything off (ie. could that be using old versions that were linked to the wrong account)?

If i wanted to run this nerdpack against both the Pro account and the Lite account, would I need to create 2 with different names, and link the UUID to the relevant account? Or is there an easy way to have both NR accounts show up on the same nerdpack?

Thanks again!


#17

@stephen.goodall - odd that it just worked, but you could be right, I haven’t seen any great lag with Nerdpacks before, but I have had some cache clashing.

As for running the nerdpack against different accounts, there’s no clean way to deploy once and get the data from multiple accounts.

The nerdpack will is deployed using an API key that is tied to a specific account, so it can only access data that API key can access. If you deploy to your Pro account, the API key there will not have access to the data from the Lite account. As far as I know, you can deploy to a master account, and use that same deployment against a sub-account.

But in cases where you have separate accounts, you’ll need to deploy twice. I’d recommend changing the Launcher display name, so that they are easily identifiable in the New Relic One UI, but that’s not necessary.

If you leave them both with the same name, you’ll see two identical launchers in the UI, where only one will work for the account you are trying to view.

So, my suggestion is to alter the launcher name for each deployment, and deploy both, each against the respective API key.


#18

Thanks @RyanVeitch , I’ve deployed 2 versions with different names :slight_smile:
Once we have some data in the Pro account I’ll check that it’s all working but for now we don’t have the infrastructure agent running yet.
Thanks for your help!


#19

No worries! Glad you were able to get both deployed :slight_smile:
Happy New Year!


#20

Could you please provide definition for Non-optimized and Optimized $ value and explain why it changes when the scroll bar moved. Do you capture current $ spend some where and calculate Non-optimized $ value based on what % of VMs getting optimized?