【文件属性】:
文件名称:prometheus_aws_cost_exporter:AWS Cost Explorer每日成本导出器
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-04 19:00:47
Python
Prometheus AWS每日成本导出器
介绍
您是否正在寻找一些当您今天在AWS上的支出超出某个限制时发出警报的系统? 这就是这个出口商的目的。
CloudWatch不允许您在同一天,过去几天或每月预测中跟踪成本。
导出器是一个Python服务器,它以可自定义的时间段连接到AWS Cost Explorer,并将最后的响应作为Prometheus指标公开。
配置
通过环境变量进行配置:
环境变量
描述
默认
QUERY_PERIOD
更新指标,查询AWS Cost Explorer API的期限(每个请求0.01 $)
1800
METRIC_TODAY_DAILY_COSTS
启用aws_today_daily_costs指标
没有设置
METRIC_YESTERDAY_DAILY_COSTS
启用aws_yesterday_daily_costs指标
没有设置
ME
【文件预览】:
prometheus_aws_cost_exporter-master
----Dockerfile(181B)
----.gitignore(1KB)
----app.py(4KB)
----README.md(2KB)
----grafana()
--------grafana-dashboard.json(10KB)
----helm()
--------README.md(870B)
--------values.yaml(251B)
--------.helmignore(5B)
--------Chart.yaml(65B)
--------templates()
----requirements.txt(296B)