Skip to content

Commit

Permalink
docs: opt cbs & config
Browse files Browse the repository at this point in the history
  • Loading branch information
juexiaolin(林觉霄) authored and juexiaolin committed Apr 9, 2021
1 parent 4d52db5 commit b409a10
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.PHONY: help build lint

GOOS ?= $(shell go env GOOS)
GOARCH ?= $(shell go env GOARCH)
GOLANGCI_LINT_VERSION ?= "v1.35.2"

build:
env GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o "build/$(version)/qcloud_exporter" ./cmd/qcloud-exporter/

lint:
if [[ ! -e ./bin/golangci-lint ]]; then \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s $(GOLANGCI_LINT_VERSION); \
fi; \
./bin/golangci-lint run ./...
11 changes: 11 additions & 0 deletions configs/qcloud-cbs-product.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
credential:
access_key: "access_key"
secret_key: "secret_key"
region: "region"

rate_limit: 15 #云监控拉数据接口最大限制, 20/秒, 1200/分钟, https://cloud.tencent.com/document/product/248/31014

products:
- namespace: QCE/CBS #指标详情: https://cloud.tencent.com/document/product/248/45411
all_metrics: true
all_instances: true
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CLB(7层)|QCE/LOADBALANCE|[指标详情](https://cloud.tencent.com/document/prod
NAT|QCE/NAT_GATEWAY|[指标详情](https://cloud.tencent.com/document/product/248/45069)
物理专线|QCE/DC|[指标详情](https://cloud.tencent.com/document/product/248/45102)
专用通道|QCE/DCX|[指标详情](https://cloud.tencent.com/document/product/248/45101)
云硬盘|QCE/BLOCK_STORAGE|[指标详情](https://cloud.tencent.com/document/product/248/45411)
云硬盘|QCE/CBS|[指标详情](https://cloud.tencent.com/document/product/248/45411)

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

Expand Down

0 comments on commit b409a10

Please sign in to comment.