Open ryanpxyz opened 1 year ago
Any ideas, updates? Or is this 'cancelled due to lack of interest'? :-)
I have also faced this bug. Is there any workaround or information on how to fix it?
config:
apiVersion: v1alpha1
discovery:
jobs:
- type: AWS/S3
regions: [us-west-1]
searchTags:
- key: Name
value: core-archive-prod
period: 60
length: 60
metrics:
- name: AllRequests
statistics: [Sum]
root@ip:~# curl -s localhost:9201/metrics | grep s3
# HELP aws_s3_all_requests_sum Help is not implemented yet.
# TYPE aws_s3_all_requests_sum gauge
aws_s3_all_requests_sum{account_id="123456789",dimension_BucketName="core-archive-prod",dimension_FilterId="test-status",name="arn:aws:s3:::core-archive-prod",region="us-west-1"} NaN
# HELP aws_s3_info Help is not implemented yet.
# TYPE aws_s3_info gauge
aws_s3_info{name="arn:aws:s3:::core-archive-prod",tag_Name="core-archive-prod"} 0
Can you check again with v0.61.0 or newer? We faced the same issue, which has been resolved with v0.61.0.
Is there an existing issue for this?
Current Behavior
Here is a snippet of data that is presented to our Prometheus for scraping:
eu-central-1
resident buckets are presented with "NaN" values.aws_s3_number_of_objects_maximum
.aws_s3_info
bucket metrics.Expected Behavior
All discovered buckets in all regions should present real numbers for scraping by Prometheus.
Steps To Reproduce
I am working with the following configuration:
I have reproduced this behaviour with the following YACE versions:
I have added
debug
to logging and can confirm that at least in the logs real number data is extracted from AWS CloudWatch - here is a snippet:{\n Id: \"id_7316112639016562625\",\n Label: \"ic-xxxx AllStorageTypes NumberOfObjects\",\n StatusCode: \"PartialData\"\n } {\n Id: \"id_2276924059018283294\",\n Label: \"ic-xxxx StandardStorage BucketSizeBytes\",\n StatusCode: \"PartialData\"\n } {\n Id: \"id_7316112639016562625\",\n Label: \"ic-xxxx AllStorageTypes NumberOfObjects\",\n StatusCode: \"PartialData\"\n } {\n Id: \"id_2276924059018283294\",\n Label: \"ic-xxxx StandardStorage BucketSizeBytes\",\n StatusCode: \"PartialData\"\n } {\n Id: \"id_7316112639016562625\",\n Label: \"ic-xxxx AllStorageTypes NumberOfObjects\",\n StatusCode: \"PartialData\",\n Timestamps: [2022-11-14 00:00:00 +0000 UTC],\n Values: [299]\n } {\n Id: \"id_2276924059018283294\",\n Label: \"ic-xxxx StandardStorage BucketSizeBytes\",\n StatusCode: \"PartialData\",\n Timestamps: [2022-11-14 00:00:00 +0000 UTC],\n Values: [3.075721e+06]\n }