Skip to content

Commit b409a10

Browse files
juexiaolin(林觉霄)juexiaolin
authored andcommitted
docs: opt cbs & config
1 parent 4d52db5 commit b409a10

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.PHONY: help build lint
2+
3+
GOOS ?= $(shell go env GOOS)
4+
GOARCH ?= $(shell go env GOARCH)
5+
GOLANGCI_LINT_VERSION ?= "v1.35.2"
6+
7+
build:
8+
env GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o "build/$(version)/qcloud_exporter" ./cmd/qcloud-exporter/
9+
10+
lint:
11+
if [[ ! -e ./bin/golangci-lint ]]; then \
12+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s $(GOLANGCI_LINT_VERSION); \
13+
fi; \
14+
./bin/golangci-lint run ./...

configs/qcloud-cbs-product.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
credential:
2+
access_key: "access_key"
3+
secret_key: "secret_key"
4+
region: "region"
5+
6+
rate_limit: 15 #云监控拉数据接口最大限制, 20/秒, 1200/分钟, https://cloud.tencent.com/document/product/248/31014
7+
8+
products:
9+
- namespace: QCE/CBS #指标详情: https://cloud.tencent.com/document/product/248/45411
10+
all_metrics: true
11+
all_instances: true

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ CLB(7层)|QCE/LOADBALANCE|[指标详情](https://cloud.tencent.com/document/prod
2020
NAT|QCE/NAT_GATEWAY|[指标详情](https://cloud.tencent.com/document/product/248/45069)
2121
物理专线|QCE/DC|[指标详情](https://cloud.tencent.com/document/product/248/45102)
2222
专用通道|QCE/DCX|[指标详情](https://cloud.tencent.com/document/product/248/45101)
23-
云硬盘|QCE/BLOCK_STORAGE|[指标详情](https://cloud.tencent.com/document/product/248/45411)
23+
云硬盘|QCE/CBS|[指标详情](https://cloud.tencent.com/document/product/248/45411)
2424

2525
`后续会有更多的产品支持`
2626

0 commit comments

Comments
 (0)