Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: Duplicated metric data values #746

Open
peterpakos opened this issue Sep 24, 2024 · 0 comments
Open

[bug]: Duplicated metric data values #746

peterpakos opened this issue Sep 24, 2024 · 0 comments
Labels

Comments

@peterpakos
Copy link

peterpakos commented Sep 24, 2024

What did you do

We are scraping custom CloudWatch metrics coming from Artillery.

Configuration snippet:

region: eu-west-2
role_arn: arn:aws:iam::xxx:role/grafana
delay_seconds: 0
use_get_metric_data: true
metrics:
  - aws_namespace: PerformanceTesting
    aws_metric_name: "http.requests"
    aws_dimensions: [Name, Test]
    aws_statistics: [Sum]

Metric data shown in CloudWatch UI:

image

Metric data returned from CloudWatch API:

{
    "MetricDataResults": [
        {
            "Id": "m1",
            "Label": "http.requests",
            "Timestamps": [
                "2024-09-24T12:31:00+00:00",
                "2024-09-24T12:30:00+00:00"
            ],
            "Values": [
                16.0,
                44.0
            ],
            "StatusCode": "Complete"
        }
    ],
    "Messages": []
}

What did you expect to see?

Prometheus metrics in Grafana matching metrics in CloudWatch.

What did you see instead? Under which circumstances?

First 2 data points matching CloudWatch then the last value repeated for 5-10 minutes.

Metric data in Grafana:

image

image

Are you currently working around this issue?

No

Environment

# docker images | grep cloudwatch-exporter
prom/cloudwatch-exporter             latest    70a238bc9c70   5 weeks ago     297MB
@peterpakos peterpakos added the bug label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant