exporter for Aliyun CloudMonitor. Written in Golang, inspired by aliyun-exporter.
git clone https://github.com/fengxsong/aliyun-exporter
cd aliyun-exporter
make tidy
# Binary
make bin
# docker image
make docker-build
make bin
# print example of config
./build/_output/bin/aliyun-exporter print-config --ak xxxx --secret xxxx [NAMESPACES...]
# run
./build/_output/bin/aliyun-exporter serve [--config=/path/of/config]
Pre-requisites:
- Docker
- docker-compose
# copy and modify example.yaml first
cd deploy
docker-compose up -d
Pre-requisites:
- Kubernetes
- helm
helm install -n monitoring aliyun-exporter deploy/aliyun-exporter
kubectl get po -n monitoring -w
- 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
- ...
- dynamic rate limiter
- grafana dashboard