Giter VIP home page Giter VIP logo

cloudwatchmetrics-ros1's People

Contributors

aalon avatar dabonnie avatar dependabot[bot] avatar emersonknapp avatar hyandell avatar jikawa-az avatar jpeddicord avatar juanrh avatar lucashan avatar mm318 avatar nburek avatar raghaprasad avatar ryanewel avatar timrobotson avatar xabxx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloudwatchmetrics-ros1's Issues

CloudWatch Metrics Collector fails to publish metrics with small values

CloudWatch metrics can't accept metrics with magnitude < ~4.257959840008151e-109. Publishing metrics of this magnitude will cause the following error message:

ERROR [/cloudwatch_metrics_collector]: [AWSClient] HTTP response code: 400
Exception name: InvalidParameterValue
Error message: The value 0 for parameter MetricData.member.8.Value is invalid.

Steps to reproduce:

  1. Launch the CloudWatch Metrics Collector with roslaunch cloudwatch_metrics_collector sample_application.launch
  2. Publish small metrics with:
    rostopic pub -r 0.5 /metrics ros_monitoring_msgs/MetricList '{metrics: [{metric_name: 'too_small', value: 2.1289799200040754E-109, time_stamp:{secs: <time>, nsecs: 0}}]}'

Proposed Solution:
Add an option to round small values to 0 before publishing to Cloudwatch

Odd Errors in Log

I am seeing weird errors in the logs about the Cloudwatch regarding timestamps of the metrics. The only metrics currently running are from https://github.com/aws-robotics/health-metrics-collector-ros1.

The error is:

[ WARN] [1593088848.837626459, 903.889000000]: [AWSErrorMarshaller] Encountered AWSError 'InvalidParameterValue': The 
parameter MetricData.member.1.Timestamp must specify a time within the past two weeks.
The parameter MetricData.member.2.Timestamp must specify a time within the past two weeks.
The parameter MetricData.member.3.Timestamp must specify a time within the past two weeks.
The parameter MetricData.member.4.Timestamp must specify a time within the past two weeks.
The parameter MetricData.member.5.Timestamp must specify a time within the past two weeks.
The parameter MetricData.member.6.Timestamp must specify a time within the past two weeks.
[ERROR] [1593088848.837759364, 903.889000000]: [AWSClient] HTTP response code: 400
Exception name: InvalidParameterValue
Error message: The parameter MetricData.member.1.Timestamp must specify a time within the past two weeks.
The parameter MetricData.member.2.Timestamp must specify a time within the past two weeks.
The parameter MetricData.member.3.Timestamp must specify a time within the past two weeks.
The parameter MetricData.member.4.Timestamp must specify a time within the past two weeks.
The parameter MetricData.member.5.Timestamp must specify a time within the past two weeks.
The parameter MetricData.member.6.Timestamp must specify a time within the past two weeks.
5 response headers:
connection : close
content-length : 804
content-type : text/xml
date : Thu, 25 Jun 2020 12:40:48 GMT
x-amzn-requestid : 71391052-b267-4f7e-ac62-138315b23fa4
[ WARN] [1593088848.837841133, 903.889000000]: [AWSClient] If the signature check failed. This could be because of a $ime skew. Attempting to adjust the signer.

Here is a single metric from the metrics topic. The time_stamp is live and current and not skewed at all.

 - 
    header: 
      seq: 0
      stamp: 
        secs: 1593088888
        nsecs: 394534588
      frame_id: ''
    metric_name: "cpu_usage_core_2"
    unit: "percent"
    value: 90.9923629761
    time_stamp: 
      secs: 1593088888
      nsecs: 394534588
    dimensions: 
      - 
        name: "robot_id"
        value: "4a54bac8-efb7-47a4-9ee5-493d928ae446"
      - 
        name: "category"
        value: "RobotHealth"

Another odd behavior is we do get metrics in CW
blah

Running version: Version: 2.2.1-1xenial-20200330-153748+0000

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.