Cloudwatch generates a lot of costs due to large number of PutMetricData requests2019 Community Moderator ElectionAmazon AWS Request Token From Secure Token ServiceCan I post an incrementing number to CloudWatch and have it compute the delta?How does Amazon SNS manage CloudWatch log streams for delivery status?CloudWatch Log costing too muchhow to distinguish request and response packet in aws cloudWatch logs?aws cloudwatch count the number of hitsAWS CloudWatch is generating false AlarmView CloudFront metrics in CloudWatch dashboardSchedule API Gateway requests with CloudWatch?Unable to define Math Expression for Cloudwatch Alarm in a Cloudformation Template

School performs periodic password audits. Is my password compromised?

Can the Witch Sight warlock invocation see through the Mirror Image spell?

What will happen if my luggage gets delayed?

Converting from "matrix" data into "coordinate" data

Either of .... (Plural/Singular)

Smooth vector fields on a surface modulo diffeomorphisms

How can I portion out frozen cookie dough?

Professor forcing me to attend a conference, I can't afford even with 50% funding

How do I increase the number of TTY consoles?

Should we avoid writing fiction about historical events without extensive research?

Can one live in the U.S. and not use a credit card?

Are E natural minor and B harmonic minor related?

Did Amazon pay $0 in taxes last year?

What would be the most expensive material to an intergalactic society?

Will expression retain the same definition if particle is changed?

Can I negotiate a patent idea for a raise, under French law?

What is this tube in a jet engine's air intake?

Graphic representation of a triangle using ArrayPlot

Too soon for a plot twist?

Rationale to prefer local variables over instance variables?

Why aren't there more Gauls like Obelix?

If sound is a longitudinal wave, why can we hear it if our ears aren't aligned with the propagation direction?

Giving a career talk in my old university, how prominently should I tell students my salary?

Why does this boat have a landing pad? (SpaceX's GO Searcher) Any plans for propulsive capsule landings?



Cloudwatch generates a lot of costs due to large number of PutMetricData requests



2019 Community Moderator ElectionAmazon AWS Request Token From Secure Token ServiceCan I post an incrementing number to CloudWatch and have it compute the delta?How does Amazon SNS manage CloudWatch log streams for delivery status?CloudWatch Log costing too muchhow to distinguish request and response packet in aws cloudWatch logs?aws cloudwatch count the number of hitsAWS CloudWatch is generating false AlarmView CloudFront metrics in CloudWatch dashboardSchedule API Gateway requests with CloudWatch?Unable to define Math Expression for Cloudwatch Alarm in a Cloudformation Template










0















cost-wise, the majority of our invoice comes from PutMetricData. I can't really see which piece sends that huge amount.
According to https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/logging_cw_api_calls.html, cloud trail does not trace it.
I am looking for some sort of a sum-up to find out where all that requests come from.



Any help will be appreciated,
thanks in advance



EDIT
attaching API cost spreadout
enter image description here










share|improve this question




























    0















    cost-wise, the majority of our invoice comes from PutMetricData. I can't really see which piece sends that huge amount.
    According to https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/logging_cw_api_calls.html, cloud trail does not trace it.
    I am looking for some sort of a sum-up to find out where all that requests come from.



    Any help will be appreciated,
    thanks in advance



    EDIT
    attaching API cost spreadout
    enter image description here










    share|improve this question


























      0












      0








      0








      cost-wise, the majority of our invoice comes from PutMetricData. I can't really see which piece sends that huge amount.
      According to https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/logging_cw_api_calls.html, cloud trail does not trace it.
      I am looking for some sort of a sum-up to find out where all that requests come from.



      Any help will be appreciated,
      thanks in advance



      EDIT
      attaching API cost spreadout
      enter image description here










      share|improve this question
















      cost-wise, the majority of our invoice comes from PutMetricData. I can't really see which piece sends that huge amount.
      According to https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/logging_cw_api_calls.html, cloud trail does not trace it.
      I am looking for some sort of a sum-up to find out where all that requests come from.



      Any help will be appreciated,
      thanks in advance



      EDIT
      attaching API cost spreadout
      enter image description here







      amazon-web-services amazon-cloudwatch






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago







      Łukasz

















      asked Mar 6 at 13:27









      ŁukaszŁukasz

      39011024




      39011024






















          1 Answer
          1






          active

          oldest

          votes


















          1














          When you say "the majority of our invoice," do you mean that CloudWatch metrics cost more than or a significant percentage of all of the other AWS services that you use?



          This is extremely surprising: you can call PutMetricData 100,000 times for $1, so your usage numbers must be astronomical (calling once per second is only 86,400 per day). So surprising that I have to ask are you sure that it's the API calls that are running up the cost, and not the number of metrics? (and are you aware that each combination of dimensions represents a distinct metric?)



          If it really is the number of PutMetricData calls, then the only way that you could accumulate those numbers is to be making a call from within a loop -- one that executes many times per second. So I would start by using your IDE (or grep) to find all references to the SDK function, and determining which of those is called in a loop.



          There are very few reasons to call PutMetricData from within a loop, unless you expect the body of the loop to take a significant amount of time (seconds to minutes) and are using metrics to track the amount of time this takes.






          share|improve this answer








          New contributor




          guest is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • Attached reports. PutMetricData is responsible for around 30% of the costs. I breezed thru our repositories. All manual API requests are scheduled via cron with the highest possible granularity of 1 minute. I preliminary estimated our load and it should be roughly 70 times smaller.

            – Łukasz
            2 days ago











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55024250%2fcloudwatch-generates-a-lot-of-costs-due-to-large-number-of-putmetricdata-request%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          When you say "the majority of our invoice," do you mean that CloudWatch metrics cost more than or a significant percentage of all of the other AWS services that you use?



          This is extremely surprising: you can call PutMetricData 100,000 times for $1, so your usage numbers must be astronomical (calling once per second is only 86,400 per day). So surprising that I have to ask are you sure that it's the API calls that are running up the cost, and not the number of metrics? (and are you aware that each combination of dimensions represents a distinct metric?)



          If it really is the number of PutMetricData calls, then the only way that you could accumulate those numbers is to be making a call from within a loop -- one that executes many times per second. So I would start by using your IDE (or grep) to find all references to the SDK function, and determining which of those is called in a loop.



          There are very few reasons to call PutMetricData from within a loop, unless you expect the body of the loop to take a significant amount of time (seconds to minutes) and are using metrics to track the amount of time this takes.






          share|improve this answer








          New contributor




          guest is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • Attached reports. PutMetricData is responsible for around 30% of the costs. I breezed thru our repositories. All manual API requests are scheduled via cron with the highest possible granularity of 1 minute. I preliminary estimated our load and it should be roughly 70 times smaller.

            – Łukasz
            2 days ago
















          1














          When you say "the majority of our invoice," do you mean that CloudWatch metrics cost more than or a significant percentage of all of the other AWS services that you use?



          This is extremely surprising: you can call PutMetricData 100,000 times for $1, so your usage numbers must be astronomical (calling once per second is only 86,400 per day). So surprising that I have to ask are you sure that it's the API calls that are running up the cost, and not the number of metrics? (and are you aware that each combination of dimensions represents a distinct metric?)



          If it really is the number of PutMetricData calls, then the only way that you could accumulate those numbers is to be making a call from within a loop -- one that executes many times per second. So I would start by using your IDE (or grep) to find all references to the SDK function, and determining which of those is called in a loop.



          There are very few reasons to call PutMetricData from within a loop, unless you expect the body of the loop to take a significant amount of time (seconds to minutes) and are using metrics to track the amount of time this takes.






          share|improve this answer








          New contributor




          guest is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • Attached reports. PutMetricData is responsible for around 30% of the costs. I breezed thru our repositories. All manual API requests are scheduled via cron with the highest possible granularity of 1 minute. I preliminary estimated our load and it should be roughly 70 times smaller.

            – Łukasz
            2 days ago














          1












          1








          1







          When you say "the majority of our invoice," do you mean that CloudWatch metrics cost more than or a significant percentage of all of the other AWS services that you use?



          This is extremely surprising: you can call PutMetricData 100,000 times for $1, so your usage numbers must be astronomical (calling once per second is only 86,400 per day). So surprising that I have to ask are you sure that it's the API calls that are running up the cost, and not the number of metrics? (and are you aware that each combination of dimensions represents a distinct metric?)



          If it really is the number of PutMetricData calls, then the only way that you could accumulate those numbers is to be making a call from within a loop -- one that executes many times per second. So I would start by using your IDE (or grep) to find all references to the SDK function, and determining which of those is called in a loop.



          There are very few reasons to call PutMetricData from within a loop, unless you expect the body of the loop to take a significant amount of time (seconds to minutes) and are using metrics to track the amount of time this takes.






          share|improve this answer








          New contributor




          guest is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.










          When you say "the majority of our invoice," do you mean that CloudWatch metrics cost more than or a significant percentage of all of the other AWS services that you use?



          This is extremely surprising: you can call PutMetricData 100,000 times for $1, so your usage numbers must be astronomical (calling once per second is only 86,400 per day). So surprising that I have to ask are you sure that it's the API calls that are running up the cost, and not the number of metrics? (and are you aware that each combination of dimensions represents a distinct metric?)



          If it really is the number of PutMetricData calls, then the only way that you could accumulate those numbers is to be making a call from within a loop -- one that executes many times per second. So I would start by using your IDE (or grep) to find all references to the SDK function, and determining which of those is called in a loop.



          There are very few reasons to call PutMetricData from within a loop, unless you expect the body of the loop to take a significant amount of time (seconds to minutes) and are using metrics to track the amount of time this takes.







          share|improve this answer








          New contributor




          guest is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          guest is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered Mar 6 at 15:14









          guestguest

          111




          111




          New contributor




          guest is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          guest is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          guest is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.












          • Attached reports. PutMetricData is responsible for around 30% of the costs. I breezed thru our repositories. All manual API requests are scheduled via cron with the highest possible granularity of 1 minute. I preliminary estimated our load and it should be roughly 70 times smaller.

            – Łukasz
            2 days ago


















          • Attached reports. PutMetricData is responsible for around 30% of the costs. I breezed thru our repositories. All manual API requests are scheduled via cron with the highest possible granularity of 1 minute. I preliminary estimated our load and it should be roughly 70 times smaller.

            – Łukasz
            2 days ago

















          Attached reports. PutMetricData is responsible for around 30% of the costs. I breezed thru our repositories. All manual API requests are scheduled via cron with the highest possible granularity of 1 minute. I preliminary estimated our load and it should be roughly 70 times smaller.

          – Łukasz
          2 days ago






          Attached reports. PutMetricData is responsible for around 30% of the costs. I breezed thru our repositories. All manual API requests are scheduled via cron with the highest possible granularity of 1 minute. I preliminary estimated our load and it should be roughly 70 times smaller.

          – Łukasz
          2 days ago




















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55024250%2fcloudwatch-generates-a-lot-of-costs-due-to-large-number-of-putmetricdata-request%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

          Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

          Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved