华为云

https://github.com/huaweicloud/cloudeye-exporter

首先下载 cloudeye Exporter 的二进制文件,启动脚本如下:

#!/bin/bash
# version 1.0
BASEPATH=/usr/local/prometheus/cloudeye-exporter
LOG=$BASEPATH/logs
nohup $BASEPATH/current/cloudeye-exporter -config=$BASEPATH/conf/hwcloud.yml>> $LOG/cloudeye.log  2>&1 & echo $! > $BASEPATH/run/cloudeye.pid

配置文件 hwcloud.yml 如下:验证方式只要选择其中的一种即可。

global:
  prefix: "huaweicloud"
  port: ":9106"
  metric_path: "/metrics"

auth:
  auth_url: "https://iam.xxx.yyy.com/v3"
  project_name: "{project_name}"
  access_key: "{access_key}"
  secret_key: "{secret_key}"
  region: "{region}"

auth:
  auth_url: "https://iam.xxx.yyy.com/v3"
  project_name: "{project_name}"
  user_name: "{username}"
  password: "{password}"
  region: "{region}"
  domain_name: "{domain_name}"

华为云各服务应用区域和各服务的终端节点(endpoint)

https://developer.huaweicloud.com/endpoint?%E5%85%A8%E9%83%A8

配置参考

https://bbs.huaweicloud.com/blogs/141567

监控项 https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html

华为云服务发现

https://github.com/huaweicloud/huaweicloud-prometheus-discovery

权限管理 https://support.huaweicloud.com/productdesc-ces/ces_07_0009.html 需要先授权 ces 权限,最小权限为 ReadOnly。 如果是 ELB 等的云服务,还需要继续授权对应的云服务的权限。

results matching ""

    No results matching ""