Grafana Backend for AWS Cost Explorer
Grafana Backend for AWS Cost Explorer using AWS Cost Explorer Library
Features:
Details for AWS configuration here
Git clone https://github.com/dnavarrom/grafana-aws-cost-explorer-backend
cd grafana-aws-cost-explorer-backend
nano ./config/default.js
# Edit the following AWS variables
accessKeyId: <Your AWS Key>
secretAccessKey: <Your AWS Secret Key>
# Edit backend Security Settings
enabled : "false" <default false (disabled)>
secret : "thepassword"
# Optional cache settings
ttl : seconds to refresh cache (call aws api)
checkperiod : the same
deleteOnExpire : to delete cache when refresh
#run server
node index.js
Test locally
curl localhost:8090
It works!!
Sample Dashboard can be downloaded here
Last Month Costs Widget uses Last Month Aggregated Query - Table Type
Month to Date uses Month to date Aggregated Query - Table type
Year to date uses Timeseries