Teevity / ice

AWS Usage Tool
2.86k stars 435 forks source link

ICE dashborad show wrong price #295

Closed zhangsimingshannonai closed 5 years ago

zhangsimingshannonai commented 5 years ago

I'm using ice in docker-compose and I access dashboard by "curl http://127.0.0.1:8080/ice/dashboard/summary"

1. I see image

But the price is higher than the price I saw in aws billing report, the price on dashboard seem to be "aws-price * 10"?

I don't know why? Did anyone meet this before?

2. By the way, can you tell me,what's the function of the three file below?

#in src/java/com/netflix/ice/common/AwsUtils.java
.+-aws-billing-detailed-line-items-with-resources-and-tags-(?:[A-Z]+-)?(\\d\\d\\d\\d-\\d\\d).csv.zip
.+-aws-billing-detailed-line-items-with-monitoring-(?:[A-Z]+-)?(\\d\\d\\d\\d-\\d\\d).csv
.+-aws-billing-detailed-line-items-(?:[A-Z]+-)?(\\d\\d\\d\\d-\\d\\d).csv.zip
nfonrose commented 5 years ago

Hi,

Question 1

This is strange! Can you check if this happens in the daily and monthly views too?

If I’m not wrong, you had to modify the Ice code, to handle AWS China files. Can you publish your code as a fork of the Ice project so that we can have a look at the modifications?

Question 2

The aws-billing-detailed-line-items-with-resources-and-tags-(?:[A-Z]+-)?(\d\d\d\d-\d\d).csv.zip file is an AWS Global (not AWS China) detailed billing file. Do you have files liked this in your billing bucket ?

The “monitoring” file can be used to monitor the costs of non Cloud systems. It’s rarely used.

And the last one, the aws-billing-detailed-line-items-(?:[A-Z]+-)?(\d\d\d\d-\d\d).csv. zip file, is an AWS Global less detailed Billing file (no tags in this file, and no resourceIds). Not sure if you have these files in your AWS China bucket either.

Nicolas

Le lun. 21 oct. 2019 à 06:08, zhangsimingshannonai notifications@github.com a écrit :

I'm using ice in docker-compose and I access dashboard by "curl http://127.0.0.1:8080/ice/dashboard/summary"

1. I see [image: image] https://user-images.githubusercontent.com/49146774/67175997-cdb3d880-f3fa-11e9-9ee4-acca531951aa.png

But the price is higher than the price I saw in aws billing report, the price on dashboard seem to be "aws-price * 10"?

I don't know why? Did anyone meet this before?

2. By the way, can you tell me,what's the function of the three file below?

in src/java/com/netflix/ice/common/AwsUtils.java

.+-aws-billing-detailed-line-items-with-resources-and-tags-(?:[A-Z]+-)?(\d\d\d\d-\d\d).csv.zip

.+-aws-billing-detailed-line-items-with-monitoring-(?:[A-Z]+-)?(\d\d\d\d-\d\d).csv

.+-aws-billing-detailed-line-items-(?:[A-Z]+-)?(\d\d\d\d-\d\d).csv.zip

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Teevity/ice/issues/295?email_source=notifications&email_token=AAAJJJLV64KLVLAU44GGR73QPUTNJA5CNFSM4JCX4D72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HTBWIMA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAJJJOL5TGW5GQ6CDB74KTQPUTNJANCNFSM4JCX4D7Q .

--

Nicolas Fonrose | Teevity | Founder +33.6.61.35.43.31 https://teevity.com - Cloud Costs Analytics for AWS, GCP and Azure powered by NetflixOSS Ice twitter - @nfonrose / @teevity

zhangsimingshannonai commented 5 years ago

Hi, Question 1 This is strange! Can you check if this happens in the daily and monthly views too? If I’m not wrong, you had to modify the Ice code, to handle AWS China files. Can you publish your code as a fork of the Ice project so that we can have a look at the modifications? Question 2 The aws-billing-detailed-line-items-with-resources-and-tags-(?:[A-Z]+-)?(\d\d\d\d-\d\d).csv.zip file is an AWS Global (not AWS China) detailed billing file. Do you have files liked this in your billing bucket ? The “monitoring” file can be used to monitor the costs of non Cloud systems. It’s rarely used. And the last one, the aws-billing-detailed-line-items-(?:[A-Z]+-)?(\d\d\d\d-\d\d).csv. zip file, is an AWS Global less detailed Billing file (no tags in this file, and no resourceIds). Not sure if you have these files in your AWS China bucket either. Nicolas Le lun. 21 oct. 2019 à 06:08, zhangsimingshannonai notifications@github.com a écrit : I'm using ice in docker-compose and I access dashboard by "curl http://127.0.0.1:8080/ice/dashboard/summary" 1. I see [image: image] https://user-images.githubusercontent.com/49146774/67175997-cdb3d880-f3fa-11e9-9ee4-acca531951aa.png But the price is higher than the price I saw in aws billing report, the price on dashboard seem to be "aws-price 10"? I don't know why? Did anyone meet this before? 2. By the way, can you tell me,what's the function of the three file below?* #in src/java/com/netflix/ice/common/AwsUtils.java .+-aws-billing-detailed-line-items-with-resources-and-tags-(?:[A-Z]+-)?(\d\d\d\d-\d\d).csv.zip .+-aws-billing-detailed-line-items-with-monitoring-(?:[A-Z]+-)?(\d\d\d\d-\d\d).csv .+-aws-billing-detailed-line-items-(?:[A-Z]+-)?(\d\d\d\d-\d\d).csv.zip — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#295?email_source=notifications&email_token=AAAJJJLV64KLVLAU44GGR73QPUTNJA5CNFSM4JCX4D72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HTBWIMA>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAJJJOL5TGW5GQ6CDB74KTQPUTNJANCNFSM4JCX4D7Q . -- -- Nicolas Fonrose | Teevity | Founder +33.6.61.35.43.31 https://teevity.com - Cloud Costs Analytics for AWS, GCP and Azure powered by NetflixOSS Ice twitter - @nfonrose / @Teevity

Thanks for your reply, I do have the file in my s3 bucket. I just want to figure out, If I both have two file, such as I have "aws-billing-detailed-line-items" file and "aws-billing-detailed-line-items-with-resources-and-tags" file, will ice do a sum to these file's price and then show on dashboard? will the price be counted twice?