Closed avanier closed 3 years ago
Interesting. Have you seen it failing for >1000 objects? I was under the impression that we could use the continuation token to keep listing until we'd listed everything, which is what we do: https://github.com/ribbybibby/s3_exporter/blob/master/s3_exporter.go#L93-L118
Hrm, I think you might be right. Lemme dig some more. I'll be glad to be wrong. I might have improperly configured my probes.
I'll close the issue with more details if that's the case.
Yep, you were totally right. I both didn't read the code far enough, and I was watching the wrong prefix.
Thanks a lot for indulging me. :stuck_out_tongue: Your exporter is awesome. :muscle:
Since we are using the ListObjectsV2 call, the S3 API will limit the response to
1000
objects. Adding to this, objects are listed in no guaranteed order, so once you reach1000
objects, the metrics a pretty much baloney.To address this, I believe there are two options which start with using the ListObjectsV2Pages API call instead:
We might need this feature, so I'll likely submit a PR.