a prometheus exporter for Aliyun CloudMonitor service. Written in Golang, inspired by aliyun_exporter.
git clone https://github.com/fengxsong/aliyun_exporter
cd aliyun_exporter
make tidy
make bin
# generate example of config
./build/_output/bin/aliyun_exporter generate-example-config --accesskey xxxx ----accesskeysecret xxxx
# run http metrics handler
./build/_output/bin/aliyun_exporter serve [--config=/path/of/config]
- job_name: 'aliyun_exporter'
scrape_interval: 60s
scrape_timeout: 60s
static_configs:
- targets: ['aliyun_exporter:9527']
labels:
account_name: xxxx
provider: aliyun # or aliyun_jst
- an exporter instance can only scrape metrics from single region
- grafana dashboard