
# 接入Prometheus后，为什么会产生额外费用？
#### CCE容器场景
通常情况下，用户购买CCE集群，部署工作负载之后，默认会采集cluster、Pod、Container、Node等[基础指标-容器指标](https://support.huaweicloud.com/productdesc-aom2/aom_01_0023.html)，基础指标的上报不产生费用。
产生计费的可能原因是：
1. Prometheus实例内置的指标管理功能采集到自定义指标并上报指标到AOM。
   表1内置ServiceMonitor配置费用说明 
   | ServiceMonitor               | 是否导致费用          | 默认状态（关闭表示不会采集自定义指标） |
   |:---|:---|:---|
   | etcd-server                  | 会产生部分自定义指标，产生费用 | 关闭                  |
   | kube-controller              | 会产生部分自定义指标，产生费用 | 关闭                  |
   | kube-scheduler               | 会产生部分自定义指标，产生费用 | 关闭                  |
   | kubernetes-service-endpoints | 会产生部分自定义指标，产生费用 | 关闭                  |
      
   表2内置PodMonitor配置费用说明 
   | PodMonitor      | 是否产生费用          | 默认状态（关闭表示不会采集自定义指标） |
   |:---|:---|:---|
   | istio           | 会产生部分自定义指标，产生费用 | 关闭                  |
   | kubernetes-pods | 会产生部分自定义指标，产生费用 | 关闭                  |
      
   
2. 用户自定义ServiceMonitor或PodMonitor配置采集指标并上报指标到AOM，产生相关费用。比如容器场景自定义中间件mysql、nginx、业务指标等。
 
#### 云服务场景
[云服务接入](https://support.huaweicloud.com/usermanual-aom2/mon_01_0051.html)AOM Prometheus实例后，部分云服务产生计费。具体如下：
- 不计费云服务：Modelarts/IotDA/IEF/CSE。
- 计费云服务：除Modelarts/IotDA/IEF/CSE以外，其它云服务接入Prometheus实例后均会产生计费。
 
#### ECS场景
在ECS场景自建中间件，会产生计费。
在ECS场景安装Node Exporter，部分指标会产生计费。
#### 其它可能场景
除几类[基础指标](https://support.huaweicloud.com/productdesc-aom2/aom_01_0020.html)以外，其它指标上报到AOM均可能产生计费。
