From ec585921146223016609fadd07af76542da49d1a Mon Sep 17 00:00:00 2001 From: "haokang.ke" Date: Tue, 14 Aug 2018 21:00:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8tag=E6=8A=93=E5=8F=96mysql?= =?UTF-8?q?=E6=9C=BA=E5=99=A8=E6=95=B0=E6=8D=AE=EF=BC=8C=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=AE=9E=E4=BE=8B=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exporter/mysql.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exporter/mysql.go b/exporter/mysql.go index 50efbde..986a698 100644 --- a/exporter/mysql.go +++ b/exporter/mysql.go @@ -21,9 +21,10 @@ func DiscoveryAlicloudMysql(filePath, exporterType string) { request := ecs.CreateDescribeInstancesRequest() request.PageSize = requests.NewInteger(PAGESIZE) request.PageNumber = requests.NewInteger(i + 1) - request.InstanceName = "mysql*" request.Tag1Key = "Monitoring" request.Tag1Value = "true" + request.Tag2Key = "Component" + request.Tag2Value = "mysql" request.Status = "Running" response, err := ecsClient.DescribeInstances(request) if err != nil {