New Relic | Monitor, Debug and Improve Your Entire Stack

Cloud Optimizer Nerdpack

27
Replies
4
Views
4y
Activity
  • Build on New Relic
    • mira.barsoum

      mira.barsoum

      October 17, 2019 at 4:55 AM

      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

    • RyanVeitch

      RyanVeitchManager, Technical Account Management

      October 21, 2019 at 1:33 PM

      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?

    • brett.howells1

      brett.howells1

      October 31, 2019 at 6:42 PM

      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?

    • brett.howells1

      brett.howells1

      October 31, 2019 at 7:09 PM

      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!

    • RyanVeitch

      RyanVeitchManager, Technical Account Management

      November 1, 2019 at 10:50 AM

      Hey @brett.howells1 -

      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

    • RyanVeitch

      RyanVeitchManager, Technical Account Management

      November 1, 2019 at 11:06 AM

      Hey Brett -

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

      [Attached]

    • tim.davis

      tim.davis

      November 6, 2019 at 10:04 PM

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

    • RyanVeitch

      RyanVeitchManager, Technical Account Management

      November 18, 2019 at 11:58 AM

      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? šŸ‘Ž / šŸ‘ ??

    • tim.davis

      tim.davis

      November 18, 2019 at 12:01 PM

      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.

    • RyanVeitch

      RyanVeitchManager, Technical Account Management

      November 18, 2019 at 12:57 PM

      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 šŸ˜ƒ

    • tim.davis

      tim.davis

      November 18, 2019 at 12:59 PM

      puts it on his list

      Advanced Alerting

      NRQL

      OneRelic

      Operational Needs

      ...

      ...

      ...

      ...

      ...

      NerdPacks

      Personal Life

    • RyanVeitch

      RyanVeitchManager, Technical Account Management

      November 18, 2019 at 1:08 PM

      Yikes!!

      Hope thereā€™s not too many strict deadlines on it all šŸ˜ƒ

    • stephen.goodall

      stephen.goodall

      December 30, 2019 at 1:39 AM

      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?

    • RyanVeitch

      RyanVeitchManager, Technical Account Management

      December 30, 2019 at 2:57 PM

      @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.

    • stephen.goodall

      stephen.goodall

      December 30, 2019 at 11:31 PM

      @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!

    • RyanVeitch

      RyanVeitchManager, Technical Account Management

      December 31, 2019 at 10:24 AM

      @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 parent 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.

    • stephen.goodall

      stephen.goodall

      January 1, 2020 at 10:49 PM

      Thanks @RyanVeitch , Iā€™ve deployed 2 versions with different names šŸ™‚

      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!

    • RyanVeitch

      RyanVeitchManager, Technical Account Management

      January 2, 2020 at 10:12 AM

      No worries! Glad you were able to get both deployed šŸ™‚

      Happy New Year!

    • sshetty

      sshetty

      February 13, 2020 at 6:04 PM

      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?

    • jpanke1

      jpanke1

      April 14, 2020 at 9:15 PM

      Hey there all,

      Has anyone seen the situation where it never finishes loading?

      Iā€™ve republished and forced the fresh packages.

      [Attached]

    • RyanVeitch

      RyanVeitchManager, Technical Account Management

      April 15, 2020 at 12:18 PM

      Hi @jpanke1 - Iā€™m not sure if that is expected, but I suspect it has something to do with the amount of data to inspect in your accounts. 1132 is a lot of accounts to parse through.

      Iā€™ll tag in @joelworrall & @dgolden who would know more than I do about this particular nerdpack.

    • kpather

      kpatherSenior Principal Solutions Architect

      April 15, 2020 at 4:04 PM

      Hi @jpanke1, are there any errors in the console log, or network log?

      That could help me debug the issue, if anything is there.

      Thanks

    • jpanke1

      jpanke1

      April 15, 2020 at 4:24 PM

      HI @kpather, I logged into my system this morning and it actually was displaying the data but my session was dead after being left over night. This is out of the box cloud optimize (no modifications) and Iā€™m rather new and the nerdlets and would need to find out where those logs would be for me to look at them.

      Sorry to say, I have restarted the cloud optimize and hope it may finish sometime during my work day while my session is still active so I can try the next steps.

      I donā€™t know what other questions to ask at the moment, our master account has all the sub-accounts and I canā€™t seem to change anything for configs or found if I can do some pagination added to the code so it just loads 20 (or 40 or 60) on a page, then loads the rest in the background but lets me work on page one until the rest load.

    • jpanke1

      jpanke1

      April 15, 2020 at 6:16 PM

      OK, update @kpather, It actually finished loading, but when I try to change the discount multiplier it doesnā€™t look like it lets me change it the way I want to. It looks like Iā€™m supposed to be able to put a decimal (Example x.xx or .xx) but it doesnā€™t appear to let me. Is this a known issue?

    • Vikas.Ghodke

      Vikas.Ghodke

      June 15, 2020 at 8:41 AM

      Hi, can we export the charts in Cloud Optimize in an external portal like we do it for New relic Insights? or I donā€™t find any option to export the data in any format. Can we export the results?

    • william.flett

      william.flett

      November 24, 2020 at 10:19 AM

      Hi All,

      Does the AWS integration make use of AWS cost management tools or is the data collected from the NR side ? As would be good compare the recommendations if they are independent.

      Many thanks,

      -Will

    • william.flett

      william.flett

      November 24, 2020 at 4:51 PM

      NR consultancy believe all the optimization controls are independent of their tools.

      You can tweak the optimization configuration by tapping on Configuration. Youā€™ll see a screen like this:

      You can find the code for the nerdlet here:

      https://github.com/newrelic/nr1-cloud-optimize

      If you look at the

      package.json
      you wonā€™t see any AWS libraries listed.

      I think the biggest strength of the cloud optimizer compared to AWS tools is that the Optimizer lets you filter by lots of different criteria.

      For example, you can see the breakdown by Application Name , etc...