nerdswords / yet-another-cloudwatch-exporter

Prometheus exporter for AWS CloudWatch - Discovers services through AWS tags, gets CloudWatch metrics data and provides them as Prometheus metrics with AWS tags as labels
Apache License 2.0
953 stars 328 forks source link

[BUG] ValidationError for metrics #1435

Open ss-mbrancato opened 2 months ago

ss-mbrancato commented 2 months ago

Is there an existing issue for this?

YACE version

0.59.0

Config file

See attached config file yaceconfig.txt

Current Behavior

File runs but then throws errors like below "caller":"client.go:133","err":"ValidationError: The value for parameter MetricDataQueries.member.37.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.38.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.39.MetricStat.Stat is nota valid statistic.\nThe value for parameter MetricDataQueries.member.40.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.41.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.42.MetricStat.Stat is not a valid statistic.\nThe valuefor parameter MetricDataQueries.member.43.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.44.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.45.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.46.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.48.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.50.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.52.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.54.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.56.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.58.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.60.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.62.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.64.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.75.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.77.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.79.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.81.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.83.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.85.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.87.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.89.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.91.MetricStat.Stat is not a valid statistic.\nThe value for parameter MetricDataQueries.member.92.MetricStat.Stat is not a valid statistic.\n\tstatus code: 400, request id: ed013d47-c013-49c4-9f08-c494333b9ed9","level":"error","msg":"GetMetricData error","ts":"2024-06-05T16:09:40.822127456Z","version":"0.59.0"}

Expected Behavior

No errors

Steps To Reproduce

run yace with the above config in my env

Anything else?

No response