-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d52db5
commit b409a10
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters