{"repo":"StanGirard/pricy","free":true,"listed":false,"github":"https://github.com/StanGirard/pricy","clone":"git clone https://github.com/StanGirard/pricy.git","description":"Export Costs to CSV, HTML, GSheets, Prometheus for AWS & Azure","language":"Go","stars":30,"topics":["aws","cost-explorer","finops","reports","prometheus-exporter","azure","cost","cost-management","html","prometheus"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"Pricy Install Run If you are using sso for credentials on aws Usage Cloud Providers These are the flags required for enabling a cloud provider - --aws - Enable AWS - --sso : Use sso for credentials for aws - --azure - Enable Azure - subscription : Azure subscription id you want the report to be generated for Flags for configuration There are a couple of parameters that you can use - --details : Show the details of the report with the pricing by service - --csv : Output the report as csv to reports.csv - --evolution : Show the evolution of the report as evolution.csv - --days : Number of days to look back for - --interval : Date Interval on which the report is generated (Default last 14 days) (Format: YYYY-MM-DD:YYYY-MM-DD) - --granularity : Granularity of the report, can be daily , monthly - --html : Output the report as html to pricy.html - --prometheus : Outputs as prometheus metrics on http://localhost:2112/metrics that can be scraped by prometheus - --gsheets : Outputs the report to a google sheets spreadsheet Example Generate a Google Spreadsheet You need to export the variable GOOGLE APPLICATION CREDENTIALS to the path of your json file which contains your OAuth2 credentials. In oder to get the credentials, you follow this guide: - Google Cloud Platform - Activate Sheets API - Create a credentials for Oauth2 for Desktop Application HTML Report Generation Generates a report for the price starting a 150 days ago Prometheus Metrics Generates the prometheus metrics for the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/StanGirard","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/StanGirard/pricy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}