st8ed / aws-cost-exporter

Prometheus Exporter for AWS Cost and Usage Reports
Apache License 2.0
29 stars 15 forks source link

`file report-current.csv does not exist` error #1

Open robertgates55 opened 2 years ago

robertgates55 commented 2 years ago

Installed using the latest helm chart the pod crashloops. I enabled log.level=debug by modifying the deployment, and can see it's successfully fetching the cur, but then failing to find the file I guess it's supposed to export?

ts=2022-08-23T10:43:29.648Z caller=main.go:153 level=info msg="Starting aws-cost-exporter" version="(version=, branch=, revision=)"
ts=2022-08-23T10:43:29.648Z caller=main.go:154 level=info msg="Build context" build_context="(go=go1.17.10, user=, date=)"
ts=2022-08-23T10:43:34.997Z caller=compute.go:37 level=debug msg="Opened database" repository=/var/lib/aws-cost-exporter/repository
ts=2022-08-23T10:43:34.997Z caller=compute.go:62 level=debug msg="Running query" name=common.sql
ts=2022-08-23T10:43:34.998Z caller=compute.go:43 level=debug msg="Closed database"
ts=2022-08-23T10:43:34.998Z caller=main.go:184 level=error err="[L:14 C:6] file `report-current.csv` does not exist"
Stream closed EOF for aws-cost-exporter/aws-cost-exporter-5b685bc98c-cmds9 (aws-cost-exporter)

Any clues what might be going on?

robertgates55 commented 2 years ago
        {
            "ReportName": "cost-summary",
            "TimeUnit": "HOURLY",
            "Format": "textORcsv",
            "Compression": "GZIP",
            "AdditionalSchemaElements": [
                "RESOURCES"
            ],
            "S3Bucket": "kubecost-reports",
            "S3Prefix": "/",
            "S3Region": "us-east-1",
            "AdditionalArtifacts": [],
            "RefreshClosedReports": false,
            "ReportVersioning": "CREATE_NEW_REPORT"
        }
    ]

Is the cur

st8ed commented 1 year ago

AWS doesn't instantly generate CUR report files after creating/updating CUR configuration, and it seems this is the case. I see AWS uploads reports twice a day on schedule, but YMMV.

Thank you for reporting, I'll add a more user-friendly error message.

DavidChili34 commented 10 months ago

Hello, i have same issue, what i can do?

devang704 commented 7 months ago

Having same issue, any solution ?

ts=2024-02-07T06:19:18.344Z caller=main.go:153 level=info msg="Starting aws-cost-exporter" version="(version=, branch=, revision=)" ts=2024-02-07T06:19:18.344Z caller=main.go:154 level=info msg="Build context" build_context="(go=go1.17.10, user=, date=)" ts=2024-02-07T06:19:18.458Z caller=main.go:184 level=error err="[L:14 C:6] filereport-current.csvdoes not exist"

DavidChili34 commented 7 months ago

nope, but for me work this https://github.com/alanwds/aws-cost-exporter

devang704 commented 7 months ago

nope, but for me work this https://github.com/alanwds/aws-cost-exporter

Does this giving detailed information, like Pricing info for all the individual services? e.g: all individual ec2 instances and s3 buckets

GSA27 commented 5 months ago

Having same issue, any solution