Giter Club home page Giter Club logo

Comments (3)

winadm87 avatar winadm87 commented on June 30, 2024

A little addition to the situation. If we put
addCloudwatchTimestamp: true
to the metric config, e.g. "- name: CPUCreditBalance" - the exporter continues to export metric on the terminated instance with negative timestamp...
aws_ec2_cpucredit_balance_average{dimension_instance_id="i-0013b...",region="eu-west-1"} 0 -62135596800000
So the prometheus can't scrap such a metric with "expected timestamp or new record, got "INVALID"" error.

from yet-another-cloudwatch-exporter.

kgeckhart avatar kgeckhart commented on June 30, 2024

Try setting

# Passes down the flag `--recently-active PT3H` to the CloudWatch API. This will only return metrics that have been active in the last 3 hours.
# This is useful for reducing the number of metrics returned by CloudWatch, which can be very large for some services. See AWS Cloudwatch API docs for [ListMetrics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html) for more details.
[ recentlyActiveOnly: <boolean> ]

in your config which should limit this to ~3 hours. This is a really unfortunate CloudWatch behavior.

Regarding the addCloudwatchTimestamp behavior, you should upgrade to v0.57 which contains a bugfix for this, https://github.com/nerdswords/yet-another-cloudwatch-exporter/releases/tag/v0.57.0. The bugfix is to drop this data because it is invalid.

from yet-another-cloudwatch-exporter.

winadm87 avatar winadm87 commented on June 30, 2024

Apparently, the problem was solved after the version update to 0.59

from yet-another-cloudwatch-exporter.

Related Issues (20)

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.