tccli 3.0.1086.1__py2.py3-none-any.whl → 3.0.1088.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/examples/acp/v20220105/CreateAppScanTask.md +30 -30
- tccli/examples/acp/v20220105/CreateAppScanTaskRepeat.md +26 -26
- tccli/examples/acp/v20220105/DescribeResourceUsageInfo.md +7 -7
- tccli/examples/acp/v20220105/DescribeScanTaskList.md +29 -29
- tccli/examples/acp/v20220105/DescribeScanTaskReportUrl.md +20 -20
- tccli/examples/af/v20200226/DescribeAntiFraud.md +26 -26
- tccli/examples/ams/v20201229/CreateAudioModerationTask.md +19 -19
- tccli/examples/antiddos/v20200309/DescribeBasicDeviceStatus.md +18 -18
- tccli/examples/apigateway/v20180808/DescribeLogSearch.md +28 -28
- tccli/examples/apm/v20210622/DescribeGeneralMetricData.md +122 -122
- tccli/examples/apm/v20210622/DescribeMetricRecords.md +53 -53
- tccli/examples/asr/v20190614/DescribeTaskStatus.md +32 -32
- tccli/examples/autoscaling/v20180419/CreateLifecycleHook.md +38 -38
- tccli/examples/autoscaling/v20180419/CreateScalingPolicy.md +29 -29
- tccli/examples/autoscaling/v20180419/DescribeLaunchConfigurations.md +47 -47
- tccli/examples/autoscaling/v20180419/ModifyLaunchConfigurationAttributes.md +12 -12
- tccli/examples/autoscaling/v20180419/ModifyLoadBalancers.md +18 -18
- tccli/examples/autoscaling/v20180419/ModifyScalingPolicy.md +24 -24
- tccli/examples/bi/v20220105/CreateUserRoleProject.md +23 -23
- tccli/examples/bi/v20220105/DeleteDatasource.md +10 -10
- tccli/examples/bi/v20220105/DescribeDatasourceList.md +12 -12
- tccli/examples/bi/v20220105/ModifyDatasourceCloud.md +38 -38
- tccli/examples/billing/v20180709/DescribeBillSummary.md +147 -147
- tccli/examples/billing/v20180709/DescribeBillSummaryForOrganization.md +147 -147
- tccli/examples/bmvpc/v20180625/BindEipsToNatGateway.md +8 -8
- tccli/examples/bmvpc/v20180625/CreateNatGateway.md +18 -18
- tccli/examples/btoe/v20210514/CreateHashDepositNoCert.md +16 -16
- tccli/examples/cat/v20180409/CreateProbeTasks.md +17 -17
- tccli/examples/cat/v20180409/DescribeProbeTasks.md +46 -46
- tccli/examples/cbs/v20170312/CreateDisks.md +19 -19
- tccli/examples/cbs/v20170312/InquiryPriceCreateDisks.md +32 -32
- tccli/examples/cbs/v20170312/ModifyAutoSnapshotPolicyAttribute.md +11 -11
- tccli/examples/cdb/v20170320/AnalyzeAuditLogs.md +43 -43
- tccli/examples/cdb/v20170320/DescribeAuditLogs.md +19 -19
- tccli/examples/cdn/v20180606/ModifyDomainConfig.md +20 -20
- tccli/examples/cdn/v20180606/VerifyDomainRecord.md +11 -11
- tccli/examples/cdwch/v20200915/ScaleOutInstance.md +10 -11
- tccli/examples/cdwdoris/v20211228/DescribeInstanceNodesInfo.md +4 -4
- tccli/examples/cfg/v20210820/ModifyTaskRunStatus.md +10 -10
- tccli/examples/cfw/v20190904/CreateNatFwInstanceWithDomain.md +10 -10
- tccli/examples/cfw/v20190904/ModifyNatFwSwitch.md +6 -6
- tccli/examples/cfw/v20190904/SetNatFwEip.md +7 -7
- tccli/examples/ckafka/v20190819/CreateConnectResource.md +21 -21
- tccli/examples/ckafka/v20190819/CreateDatahubTask.md +36 -36
- tccli/examples/clb/v20180317/CreateListener.md +34 -34
- tccli/examples/clb/v20180317/DeleteLoadBalancerListeners.md +7 -7
- tccli/examples/clb/v20180317/DescribeListeners.md +7 -7
- tccli/examples/clb/v20180317/DescribeLoadBalancerListByCertId.md +27 -27
- tccli/examples/clb/v20180317/DescribeLoadBalancers.md +23 -23
- tccli/examples/clb/v20180317/DescribeTargets.md +55 -55
- tccli/examples/clb/v20180317/InquiryPriceCreateLoadBalancer.md +35 -35
- tccli/examples/clb/v20180317/ModifyBlockIPList.md +13 -13
- tccli/examples/clb/v20180317/ModifyListener.md +20 -20
- tccli/examples/clb/v20180317/RegisterTargets.md +9 -9
- tccli/examples/clb/v20180317/SetLoadBalancerClsLog.md +8 -8
- tccli/examples/clb/v20180317/SetLoadBalancerSecurityGroups.md +9 -9
- tccli/examples/cls/v20201016/CreateConfig.md +57 -57
- tccli/examples/cls/v20201016/DescribeDashboards.md +40 -40
- tccli/examples/cme/v20191029/CreateLink.md +24 -24
- tccli/examples/cme/v20191029/CreateProject.md +50 -50
- tccli/examples/cme/v20191029/DescribeMaterials.md +73 -73
- tccli/examples/cme/v20191029/DescribeTeamMembers.md +19 -19
- tccli/examples/cme/v20191029/DescribeTeams.md +18 -18
- tccli/examples/cme/v20191029/ExportVideoByEditorTrackData.md +29 -29
- tccli/examples/cme/v20191029/ExportVideoByVideoSegmentationData.md +11 -11
- tccli/examples/cme/v20191029/ExportVideoEditProject.md +42 -42
- tccli/examples/cme/v20191029/HandleMediaCastProject.md +125 -125
- tccli/examples/cme/v20191029/HandleStreamConnectProject.md +107 -107
- tccli/examples/cme/v20191029/ImportMaterial.md +48 -48
- tccli/examples/cme/v20191029/ImportMediaToProject.md +14 -14
- tccli/examples/cme/v20191029/ModifyMaterial.md +7 -7
- tccli/examples/cme/v20191029/MoveResource.md +20 -20
- tccli/examples/cme/v20191029/ParseEvent.md +66 -66
- tccli/examples/cme/v20191029/SearchMaterial.md +11 -11
- tccli/examples/cvm/v20170312/InquiryPriceRunInstances.md +42 -42
- tccli/examples/cvm/v20170312/ModifyInstancesChargeType.md +7 -7
- tccli/examples/cvm/v20170312/RunInstances.md +28 -28
- tccli/examples/cwp/v20180228/ModifyBaselinePolicy.md +15 -15
- tccli/examples/cwp/v20180228/ModifyBaselinePolicyState.md +6 -6
- tccli/examples/cwp/v20180228/ModifyBashPolicyStatus.md +6 -6
- tccli/examples/cynosdb/v20190107/DescribeAuditLogs.md +19 -19
- tccli/examples/cynosdb/v20190107/DescribeProxySpecs.md +16 -16
- tccli/examples/dc/v20180410/CreateDirectConnectTunnel.md +38 -38
- tccli/examples/dc/v20180410/DescribeDirectConnects.md +47 -47
- tccli/examples/dlc/v20210125/DescribeUserRoles.md +33 -33
- tccli/examples/dnspod/v20210323/DescribeSnapshotRollbackResult.md +20 -20
- tccli/examples/domain/v20180808/DescribeTldList.md +170 -0
- tccli/examples/dsgc/v20190723/DescribeDSPASupportedMetas.md +33 -33
- tccli/examples/dts/v20180330/CreateMigrateJob.md +29 -29
- tccli/examples/dts/v20180330/DescribeMigrateCheckJob.md +14 -14
- tccli/examples/ecc/v20181213/CorrectMultiImage.md +29 -29
- tccli/examples/ecc/v20181213/EHOCR.md +10 -10
- tccli/examples/ecm/v20190719/CreateDisks.md +19 -19
- tccli/examples/ecm/v20190719/DeleteSecurityGroupPolicies.md +20 -20
- tccli/examples/ecm/v20190719/DescribeInstances.md +160 -160
- tccli/examples/emr/v20190103/InquiryPriceRenewInstance.md +27 -27
- tccli/examples/emr/v20190103/ModifyAutoScaleStrategy.md +26 -26
- tccli/examples/ess/v20201111/CancelUserAutoSignEnableUrl.md +10 -10
- tccli/examples/ess/v20201111/CreateBatchQuickSignUrl.md +81 -81
- tccli/examples/ess/v20201111/CreateDocument.md +34 -34
- tccli/examples/ess/v20201111/CreateExtendedServiceAuthInfos.md +13 -13
- tccli/examples/ess/v20201111/CreateFlowApprovers.md +84 -84
- tccli/examples/ess/v20201111/CreateFlowByFiles.md +765 -765
- tccli/examples/ess/v20201111/CreateFlowEvidenceReport.md +13 -13
- tccli/examples/ess/v20201111/CreateFlowGroupByFiles.md +91 -91
- tccli/examples/ess/v20201111/CreateFlowGroupByTemplates.md +97 -97
- tccli/examples/ess/v20201111/CreateFlowSignUrl.md +73 -73
- tccli/examples/ess/v20201111/CreateIntegrationDepartment.md +17 -17
- tccli/examples/ess/v20201111/CreateIntegrationEmployees.md +41 -41
- tccli/examples/ess/v20201111/CreateIntegrationRole.md +25 -25
- tccli/examples/ess/v20201111/CreateMultiFlowSignQRCode.md +69 -69
- tccli/examples/ess/v20201111/CreateOrganizationBatchSignUrl.md +21 -21
- tccli/examples/ess/v20201111/CreateOrganizationInfoChangeUrl.md +17 -17
- tccli/examples/ess/v20201111/CreatePrepareFlow.md +67 -67
- tccli/examples/ess/v20201111/CreateReleaseFlow.md +65 -65
- tccli/examples/ess/v20201111/CreateSchemeUrl.md +68 -68
- tccli/examples/ess/v20201111/CreateSeal.md +44 -44
- tccli/examples/ess/v20201111/DeleteExtendedServiceAuthInfos.md +8 -8
- tccli/examples/ess/v20201111/DescribeExtendedServiceAuthDetail.md +20 -20
- tccli/examples/ess/v20201111/DescribeExtendedServiceAuthInfos.md +27 -27
- tccli/examples/ess/v20201111/DescribeFileUrls.md +47 -47
- tccli/examples/ess/v20201111/DescribeFlowEvidenceReport.md +14 -14
- tccli/examples/ess/v20201111/DescribeIntegrationDepartments.md +29 -29
- tccli/examples/ess/v20201111/DescribeIntegrationEmployees.md +77 -77
- tccli/examples/ess/v20201111/ModifyApplicationCallbackInfo.md +18 -18
- tccli/examples/ess/v20201111/ModifyFlowDeadline.md +31 -31
- tccli/examples/ess/v20201111/ModifyIntegrationRole.md +25 -25
- tccli/examples/ess/v20201111/StartFlow.md +17 -17
- tccli/examples/ess/v20201111/UnbindEmployeeUserIdWithClientOpenId.md +13 -13
- tccli/examples/ess/v20201111/UpdateIntegrationEmployees.md +25 -25
- tccli/examples/essbasic/v20210526/ChannelBatchCancelFlows.md +10 -10
- tccli/examples/essbasic/v20210526/ChannelCreateBatchQuickSignUrl.md +43 -43
- tccli/examples/essbasic/v20210526/ChannelCreateBoundFlows.md +10 -10
- tccli/examples/essbasic/v20210526/ChannelCreateFlowApprovers.md +34 -34
- tccli/examples/essbasic/v20210526/ChannelCreateFlowByFiles.md +67 -67
- tccli/examples/essbasic/v20210526/ChannelCreateMultiFlowSignQRCode.md +17 -17
- tccli/examples/essbasic/v20210526/ChannelCreatePreparedPersonalEsign.md +27 -27
- tccli/examples/essbasic/v20210526/ChannelCreateReleaseFlow.md +70 -70
- tccli/examples/essbasic/v20210526/ChannelCreateRole.md +26 -26
- tccli/examples/essbasic/v20210526/ChannelCreateSealPolicy.md +10 -10
- tccli/examples/essbasic/v20210526/ChannelDescribeBillUsageDetail.md +7 -7
- tccli/examples/essbasic/v20210526/ChannelModifyRole.md +27 -27
- tccli/examples/essbasic/v20210526/ChannelVerifyPdf.md +29 -29
- tccli/examples/essbasic/v20210526/CreateBatchOrganizationRegistrationTasks.md +16 -16
- tccli/examples/essbasic/v20210526/CreateChannelFlowEvidenceReport.md +14 -14
- tccli/examples/essbasic/v20210526/CreateConsoleLoginUrl.md +18 -18
- tccli/examples/essbasic/v20210526/CreateFlowGroupSignReview.md +22 -22
- tccli/examples/essbasic/v20210526/CreateFlowsByTemplates.md +161 -161
- tccli/examples/essbasic/v20210526/CreatePartnerAutoSignAuthUrl.md +5 -5
- tccli/examples/essbasic/v20210526/CreateSealByImage.md +22 -22
- tccli/examples/essbasic/v20210526/CreateSignUrls.md +153 -153
- tccli/examples/essbasic/v20210526/DescribeChannelFlowEvidenceReport.md +6 -6
- tccli/examples/essbasic/v20210526/DescribeChannelOrganizations.md +20 -20
- tccli/examples/essbasic/v20210526/DescribeExtendedServiceAuthDetail.md +20 -20
- tccli/examples/essbasic/v20210526/DescribeExtendedServiceAuthInfo.md +27 -27
- tccli/examples/essbasic/v20210526/DescribeResourceUrlsByFlows.md +22 -22
- tccli/examples/essbasic/v20210526/DescribeTemplates.md +87 -87
- tccli/examples/essbasic/v20210526/ModifyFlowDeadline.md +31 -31
- tccli/examples/essbasic/v20210526/OperateChannelTemplate.md +41 -41
- tccli/examples/facefusion/v20181201/FaceFusion.md +26 -26
- tccli/examples/faceid/v20180301/BankCardVerification.md +10 -10
- tccli/examples/faceid/v20180301/DetectAIFakeFaces.md +20 -20
- tccli/examples/faceid/v20180301/IdCardOCRVerification.md +18 -18
- tccli/examples/faceid/v20180301/MobileNetworkTimeVerification.md +12 -12
- tccli/examples/fmu/v20191213/CreateModel.md +9 -9
- tccli/examples/fmu/v20191213/DeleteModel.md +8 -8
- tccli/examples/fmu/v20191213/StyleImagePro.md +13 -13
- tccli/examples/fmu/v20191213/TryLipstickPic.md +28 -28
- tccli/examples/gaap/v20180529/DescribeDestRegions.md +24 -24
- tccli/examples/gaap/v20180529/ModifyProxyGroupAttribute.md +8 -8
- tccli/examples/gme/v20180711/ScanVoice.md +13 -13
- tccli/examples/hunyuan/v20230901/ChatPro.md +66 -66
- tccli/examples/hunyuan/v20230901/ChatStd.md +39 -39
- tccli/examples/iai/v20180301/CopyPerson.md +17 -17
- tccli/examples/iai/v20180301/CreateFace.md +26 -26
- tccli/examples/iai/v20180301/CreateGroup.md +34 -34
- tccli/examples/iai/v20180301/CreatePerson.md +60 -60
- tccli/examples/iai/v20180301/DeleteFace.md +16 -16
- tccli/examples/iai/v20180301/DeleteGroup.md +12 -12
- tccli/examples/iai/v20180301/DeletePerson.md +12 -12
- tccli/examples/iai/v20180301/DeletePersonFromGroup.md +14 -14
- tccli/examples/iai/v20180301/GetGroupList.md +26 -26
- tccli/examples/iai/v20180301/GetPersonBaseInfo.md +18 -18
- tccli/examples/iai/v20180301/GetPersonGroupInfo.md +22 -22
- tccli/examples/iai/v20180301/GetPersonList.md +29 -29
- tccli/examples/iai/v20180301/GetPersonListNum.md +14 -14
- tccli/examples/iai/v20180301/ModifyGroup.md +31 -31
- tccli/examples/iai/v20180301/ModifyPersonBaseInfo.md +13 -13
- tccli/examples/iai/v20180301/ModifyPersonGroupInfo.md +14 -14
- tccli/examples/iai/v20180301/SearchFaces.md +52 -52
- tccli/examples/iai/v20180301/SearchPersons.md +26 -26
- tccli/examples/iai/v20180301/SearchPersonsReturnsByGroup.md +29 -29
- tccli/examples/iai/v20200303/CopyPerson.md +17 -17
- tccli/examples/iai/v20200303/CreateFace.md +26 -26
- tccli/examples/iai/v20200303/CreateGroup.md +34 -34
- tccli/examples/iai/v20200303/CreatePerson.md +58 -58
- tccli/examples/iai/v20200303/DeleteFace.md +16 -16
- tccli/examples/iai/v20200303/DeleteGroup.md +12 -12
- tccli/examples/iai/v20200303/DeletePerson.md +12 -12
- tccli/examples/iai/v20200303/DeletePersonFromGroup.md +14 -14
- tccli/examples/iai/v20200303/GetGroupList.md +26 -26
- tccli/examples/iai/v20200303/GetPersonBaseInfo.md +18 -18
- tccli/examples/iai/v20200303/GetPersonGroupInfo.md +28 -28
- tccli/examples/iai/v20200303/GetPersonList.md +28 -28
- tccli/examples/iai/v20200303/GetPersonListNum.md +14 -14
- tccli/examples/iai/v20200303/GetUpgradeGroupFaceModelVersionResult.md +16 -16
- tccli/examples/iai/v20200303/ModifyGroup.md +31 -31
- tccli/examples/iai/v20200303/ModifyPersonGroupInfo.md +21 -21
- tccli/examples/iai/v20200303/SearchFaces.md +52 -52
- tccli/examples/iai/v20200303/SearchPersons.md +26 -26
- tccli/examples/iai/v20200303/SearchPersonsReturnsByGroup.md +29 -29
- tccli/examples/iai/v20200303/UpgradeGroupFaceModelVersion.md +19 -19
- tccli/examples/iecp/v20210914/CreateEdgeUnitCloud.md +18 -18
- tccli/examples/iotexplorer/v20190423/CallDeviceActionSync.md +13 -13
- tccli/examples/iotexplorer/v20190423/ControlDeviceData.md +8 -8
- tccli/examples/iotexplorer/v20190423/CreateBatchProduction.md +10 -10
- tccli/examples/iotexplorer/v20190423/GetLoRaGatewayList.md +20 -20
- tccli/examples/iotvideo/v20191126/DescribeAccountBalance.md +14 -14
- tccli/examples/iotvideo/v20191126/DescribeRechargeRecords.md +17 -17
- tccli/examples/iotvideoindustry/v20201201/DescribeRecordStream.md +7 -7
- tccli/examples/iotvideoindustry/v20201201/GetVideoListByCon.md +5 -5
- tccli/examples/iss/v20230517/AddUserDevice.md +10 -10
- tccli/examples/iss/v20230517/ListOrganizationChannels.md +56 -56
- tccli/examples/iss/v20230517/ListRecordPlanDevices.md +67 -67
- tccli/examples/iss/v20230517/ListRecordRetrieveTasks.md +20 -20
- tccli/examples/iss/v20230517/UpdateRecordPlan.md +12 -12
- tccli/examples/iss/v20230517/UpdateRecordTemplate.md +16 -16
- tccli/examples/iss/v20230517/UpdateUserDevice.md +25 -25
- tccli/examples/ivld/v20210903/DescribeCustomCategories.md +12 -12
- tccli/examples/ivld/v20210903/DescribeMedia.md +24 -24
- tccli/examples/ivld/v20210903/ImportMedia.md +11 -11
- tccli/examples/lcic/v20220817/DescribeDocument.md +33 -33
- tccli/examples/lcic/v20220817/DescribeRoom.md +40 -40
- tccli/examples/lcic/v20220817/ModifyRoom.md +26 -26
- tccli/examples/live/v20180801/CreateCommonMixStream.md +8 -8
- tccli/examples/live/v20180801/CreateLiveRecordTemplate.md +22 -22
- tccli/examples/monitor/v20180724/CreateExporterIntegration.md +204 -204
- tccli/examples/monitor/v20180724/CreatePrometheusClusterAgent.md +25 -25
- tccli/examples/monitor/v20180724/DescribeAlarmPolicies.md +32 -32
- tccli/examples/monitor/v20180724/DescribeMonitorResourceInfo.md +4 -4
- tccli/examples/monitor/v20180724/DescribePrometheusInstanceInitStatus.md +6 -6
- tccli/examples/monitor/v20180724/GetMonitorData.md +51 -51
- tccli/examples/monitor/v20180724/ModifyAlarmPolicyCondition.md +31 -31
- tccli/examples/mps/v20190612/CreateAIRecognitionTemplate.md +22 -22
- tccli/examples/mps/v20190612/CreateContentReviewTemplate.md +23 -23
- tccli/examples/mps/v20190612/CreateWordSamples.md +13 -13
- tccli/examples/mps/v20190612/DescribeAIAnalysisTemplates.md +29 -29
- tccli/examples/mps/v20190612/DescribeAIRecognitionTemplates.md +17 -17
- tccli/examples/mps/v20190612/DescribeContentReviewTemplates.md +51 -51
- tccli/examples/mps/v20190612/DescribeTasks.md +9 -9
- tccli/examples/mps/v20190612/ModifyAIAnalysisTemplate.md +6 -6
- tccli/examples/mps/v20190612/ModifyContentReviewTemplate.md +7 -7
- tccli/examples/ms/v20180408/CreateEncryptInstance.md +48 -48
- tccli/examples/ms/v20180408/DescribeEncryptInstances.md +63 -63
- tccli/examples/ms/v20180408/DescribeEncryptPlan.md +30 -30
- tccli/examples/ms/v20180408/DescribeShieldResult.md +42 -42
- tccli/examples/oceanus/v20190422/CheckSavepoint.md +16 -16
- tccli/examples/oceanus/v20190422/DescribeJobSubmissionLog.md +42 -42
- tccli/examples/oceanus/v20190422/DescribeTreeResources.md +48 -48
- tccli/examples/ocr/v20181119/GeneralHandwritingOCR.md +48 -48
- tccli/examples/ocr/v20181119/IDCardOCR.md +30 -30
- tccli/examples/omics/v20221128/RetryRuns.md +11 -11
- tccli/examples/partners/v20180321/DescribeAgentClients.md +26 -26
- tccli/examples/postgres/v20170312/CreateInstances.md +15 -15
- tccli/examples/postgres/v20170312/DescribeDBInstanceHAConfig.md +12 -12
- tccli/examples/postgres/v20170312/DescribeDBInstanceSecurityGroups.md +49 -49
- tccli/examples/postgres/v20170312/ModifyDBInstanceDeployment.md +8 -8
- tccli/examples/postgres/v20170312/ModifyDBInstanceHAConfig.md +15 -15
- tccli/examples/postgres/v20170312/ModifyDBInstanceName.md +12 -12
- tccli/examples/rum/v20210622/CreateWhitelist.md +14 -14
- tccli/examples/rum/v20210622/DescribeDataFetchProject.md +25 -25
- tccli/examples/rum/v20210622/DescribeDataFetchUrl.md +29 -29
- tccli/examples/rum/v20210622/DescribeDataPerformancePage.md +25 -25
- tccli/examples/rum/v20210622/DescribeDataPvUrlStatistics.md +32 -32
- tccli/examples/rum/v20210622/DescribeDataSetUrlStatistics.md +25 -25
- tccli/examples/rum/v20210622/DescribeProjects.md +6 -6
- tccli/examples/rum/v20210622/DescribeRumGroupLog.md +22 -22
- tccli/examples/rum/v20210622/DescribeRumLogExport.md +17 -17
- tccli/examples/rum/v20210622/DescribeRumLogExports.md +12 -12
- tccli/examples/rum/v20210622/DescribeRumLogList.md +18 -18
- tccli/examples/rum/v20210622/DescribeRumStatsLogList.md +16 -16
- tccli/examples/rum/v20210622/ModifyProjectLimit.md +13 -13
- tccli/examples/ses/v20201002/SendEmail.md +5 -5
- tccli/examples/soe/v20180724/InitOralProcess.md +18 -18
- tccli/examples/soe/v20180724/TransmitOralProcessWithInit.md +155 -155
- tccli/examples/sqlserver/v20180328/DescribeBackupByFlowId.md +24 -24
- tccli/examples/sqlserver/v20180328/DescribeBackupCommand.md +12 -12
- tccli/examples/sqlserver/v20180328/ModifyDBInstanceNetwork.md +15 -15
- tccli/examples/ssl/v20191205/UploadCertificate.md +17 -17
- tccli/examples/sts/v20180813/GetCallerIdentity.md +14 -14
- tccli/examples/tag/v20180813/ModifyResourceTags.md +8 -8
- tccli/examples/tan/v20220420/CreateBlockNodeRecords.md +4 -4
- tccli/examples/tat/v20201028/DescribeCommands.md +39 -39
- tccli/examples/tcb/v20180608/CreateWxCloudBaseRunServerDBCluster.md +16 -16
- tccli/examples/tcbr/v20220217/CreateCloudRunEnv.md +30 -30
- tccli/examples/tcbr/v20220217/CreateCloudRunServer.md +48 -48
- tccli/examples/tcbr/v20220217/DescribeCloudRunEnvs.md +24 -24
- tccli/examples/tcbr/v20220217/DescribeCloudRunServerDetail.md +25 -25
- tccli/examples/tcr/v20190924/CreateServiceAccount.md +28 -28
- tccli/examples/tcr/v20190924/ModifyInstanceToken.md +7 -7
- tccli/examples/tcr/v20190924/ModifyServiceAccountPassword.md +11 -11
- tccli/examples/tcss/v20201101/AddAssetImageRegistryRegistryDetail.md +31 -31
- tccli/examples/tcss/v20201101/CreateAssetImageRegistryScanTask.md +12 -12
- tccli/examples/tcss/v20201101/DescribeAbnormalProcessRuleDetail.md +52 -52
- tccli/examples/tcss/v20201101/DescribeAccessControlRuleDetail.md +54 -54
- tccli/examples/tcss/v20201101/DescribeAssetImageRegistryDetail.md +36 -36
- tccli/examples/tcss/v20201101/DescribeAssetImageRegistryScanStatusOneKey.md +29 -29
- tccli/examples/tcss/v20201101/ModifyAssetImageRegistryScanStop.md +9 -9
- tccli/examples/tcss/v20201101/ModifyAssetImageRegistryScanStopOneKey.md +8 -8
- tccli/examples/tdmq/v20200217/CreateCmqQueue.md +8 -8
- tccli/examples/tdmq/v20200217/CreateCmqTopic.md +8 -8
- tccli/examples/tdmq/v20200217/DescribeRocketMQMigratingTopicList.md +33 -33
- tccli/examples/tdmq/v20200217/DescribeRocketMQSourceClusterGroupList.md +54 -54
- tccli/examples/tdmq/v20200217/DescribeRocketMQSourceClusterTopicList.md +44 -44
- tccli/examples/tdmq/v20200217/ImportRocketMQConsumerGroups.md +14 -14
- tccli/examples/teo/v20220901/CreateAccelerationDomain.md +19 -19
- tccli/examples/teo/v20220901/CreatePurgeTask.md +24 -24
- tccli/examples/teo/v20220901/CreateRule.md +59 -59
- tccli/examples/teo/v20220901/CreateZone.md +32 -32
- tccli/examples/teo/v20220901/DescribeOverviewL7Data.md +16 -16
- tccli/examples/teo/v20220901/DescribeTimingL4Data.md +6 -6
- tccli/examples/teo/v20220901/DescribeTimingL7AnalysisData.md +7 -7
- tccli/examples/teo/v20220901/DescribeTimingL7CacheData.md +14 -14
- tccli/examples/teo/v20220901/DescribeTopL7AnalysisData.md +9 -9
- tccli/examples/teo/v20220901/DescribeTopL7CacheData.md +24 -24
- tccli/examples/tiia/v20190529/CreateImage.md +11 -11
- tccli/examples/tiia/v20190529/DeleteImages.md +8 -8
- tccli/examples/tiia/v20190529/DetectChefDress.md +25 -25
- tccli/examples/tiia/v20190529/DetectLabel.md +25 -25
- tccli/examples/tiia/v20190529/DetectPet.md +24 -24
- tccli/examples/tiia/v20190529/DetectSecurity.md +25 -25
- tccli/examples/tiia/v20190529/EnhanceImage.md +11 -11
- tccli/examples/tiia/v20190529/RecognizeCarPro.md +25 -25
- tccli/examples/tiia/v20190529/UpdateImage.md +13 -13
- tccli/examples/tke/v20180525/DeleteReservedInstances.md +12 -12
- tccli/examples/tke/v20180525/DescribePodsBySpec.md +15 -15
- tccli/examples/tke/v20180525/DescribeRIUtilizationDetail.md +16 -16
- tccli/examples/tke/v20180525/DescribeReservedInstances.md +17 -17
- tccli/examples/tke/v20180525/ModifyReservedInstanceScope.md +19 -19
- tccli/examples/trocket/v20230308/DescribeMQTTClient.md +30 -30
- tccli/examples/trocket/v20230308/DescribeMQTTProductSKUList.md +6 -6
- tccli/examples/trtc/v20190722/StartPublishCdnStream.md +24 -24
- tccli/examples/trtc/v20190722/UpdatePublishCdnStream.md +27 -27
- tccli/examples/tse/v20201207/DescribeConfigFileReleaseHistories.md +48 -48
- tccli/examples/tsf/v20180326/DeployGroup.md +15 -15
- tccli/examples/tsf/v20180326/DescribeApiGroups.md +47 -47
- tccli/examples/vm/v20201229/CreateVideoModerationTask.md +19 -19
- tccli/examples/vod/v20180717/CreateAIRecognitionTemplate.md +12 -12
- tccli/examples/vod/v20180717/CreateContentReviewTemplate.md +16 -16
- tccli/examples/vod/v20180717/CreateImageProcessingTemplate.md +12 -12
- tccli/examples/vod/v20180717/CreateProcedureTemplate.md +23 -23
- tccli/examples/vod/v20180717/CreateWordSamples.md +13 -13
- tccli/examples/vod/v20180717/DeleteMedia.md +10 -10
- tccli/examples/vod/v20180717/DescribeAIAnalysisTemplates.md +32 -32
- tccli/examples/vod/v20180717/DescribeAIRecognitionTemplates.md +46 -46
- tccli/examples/vod/v20180717/DescribeCDNUsageData.md +13 -13
- tccli/examples/vod/v20180717/DescribeContentReviewTemplates.md +7 -7
- tccli/examples/vod/v20180717/DescribeTaskDetail.md +119 -119
- tccli/examples/vod/v20180717/EditMedia.md +53 -53
- tccli/examples/vod/v20180717/ModifyAIAnalysisTemplate.md +6 -6
- tccli/examples/vod/v20180717/ModifyAIRecognitionTemplate.md +9 -9
- tccli/examples/vod/v20180717/ModifyMediaInfo.md +23 -23
- tccli/examples/vod/v20180717/ModifyVodDomainConfig.md +13 -13
- tccli/examples/vod/v20180717/ProcessMedia.md +29 -29
- tccli/examples/vod/v20180717/ProcessMediaByUrl.md +8 -8
- tccli/examples/vod/v20180717/SearchMedia.md +12 -12
- tccli/examples/vod/v20180717/SimpleHlsClip.md +6 -6
- tccli/examples/vpc/v20170312/CheckAssistantCidr.md +19 -19
- tccli/examples/vpc/v20170312/CloneSecurityGroup.md +15 -15
- tccli/examples/vpc/v20170312/CreateDefaultVpc.md +14 -14
- tccli/examples/vpc/v20170312/DeleteSecurityGroupPolicies.md +24 -24
- tccli/examples/vpc/v20170312/DescribeAddresses.md +74 -74
- tccli/examples/vpc/v20170312/DescribeCrossBorderCcnRegionBandwidthLimits.md +43 -43
- tccli/examples/vpc/v20170312/DescribeDhcpIps.md +5 -5
- tccli/examples/vpc/v20170312/DescribeIp6Addresses.md +7 -7
- tccli/examples/vpc/v20170312/DescribeNatGatewayDestinationIpPortTranslationNatRules.md +13 -13
- tccli/examples/vpc/v20170312/DescribeNatGateways.md +39 -39
- tccli/examples/vpc/v20170312/ModifyNetworkAclEntries.md +14 -14
- tccli/examples/vpc/v20170312/RefreshDirectConnectGatewayRouteToNatGateway.md +8 -8
- tccli/examples/vpc/v20170312/ReleaseIp6AddressesBandwidth.md +10 -10
- tccli/examples/vpc/v20170312/SetCcnRegionBandwidthLimits.md +11 -11
- tccli/examples/waf/v20180125/AddAntiFakeUrl.md +10 -10
- tccli/examples/waf/v20180125/AddSpartaProtection.md +42 -42
- tccli/examples/waf/v20180125/DescribeCCRuleList.md +48 -48
- tccli/examples/waf/v20180125/DescribeCustomRuleList.md +25 -25
- tccli/examples/waf/v20180125/DescribeTlsVersion.md +4 -4
- tccli/examples/waf/v20180125/ModifyApiAnalyzeStatus.md +7 -7
- tccli/examples/waf/v20180125/ModifyBotStatus.md +9 -9
- tccli/examples/waf/v20180125/ModifySpartaProtection.md +46 -46
- tccli/examples/waf/v20180125/UpsertCCRule.md +25 -25
- tccli/examples/wedata/v20210820/BatchCreateTaskVersionDs.md +33 -33
- tccli/examples/wedata/v20210820/BatchDeleteTasksDs.md +13 -13
- tccli/examples/wedata/v20210820/BatchStopIntegrationTasks.md +18 -18
- tccli/examples/wedata/v20210820/CommitIntegrationTask.md +23 -23
- tccli/examples/wedata/v20210820/DeleteProjectUsers.md +4 -4
- tccli/examples/wedata/v20210820/DescribeBatchOperateTask.md +32 -32
- tccli/examples/wedata/v20210820/DescribeColumnsMeta.md +48 -48
- tccli/examples/wedata/v20210820/DescribeIntegrationTasks.md +142 -142
- tccli/examples/wedata/v20210820/DescribeOperateOpsTasks.md +49 -49
- tccli/examples/wedata/v20210820/DescribeProject.md +6 -6
- tccli/examples/wedata/v20210820/DescribeSchedulerInstanceStatus.md +35 -35
- tccli/examples/wedata/v20210820/DescribeSchedulerRunTimeInstanceCntByStatus.md +29 -29
- tccli/examples/wedata/v20210820/DescribeSchedulerTaskCntByStatus.md +23 -23
- tccli/examples/wedata/v20210820/DescribeSchedulerTaskTypeCnt.md +26 -26
- tccli/examples/wedata/v20210820/DescribeStatisticInstanceStatusTrendOps.md +34 -34
- tccli/examples/wedata/v20210820/DescribeTableLineage.md +48 -48
- tccli/examples/wedata/v20210820/DescribeTaskByCycle.md +20 -20
- tccli/examples/wedata/v20210820/ModifyBaselineAlarmStatus.md +10 -10
- tccli/examples/wedata/v20210820/ResumeIntegrationTask.md +18 -18
- tccli/examples/wedata/v20210820/StartIntegrationTask.md +18 -18
- tccli/examples/weilingwith/v20230427/BatchDeleteDevice.md +22 -0
- tccli/examples/weilingwith/v20230427/DeleteDeviceGroup.md +27 -0
- tccli/examples/weilingwith/v20230427/DescribeDeviceGroupList.md +61 -0
- tccli/examples/weilingwith/v20230427/DescribeSpaceRelationByDeviceId.md +36 -36
- tccli/examples/weilingwith/v20230427/DescribeTenantDepartmentList.md +6 -6
- tccli/examples/weilingwith/v20230427/ModifyDeviceField.md +27 -0
- tccli/examples/weilingwith/v20230427/ModifyDeviceGroup.md +26 -0
- tccli/examples/weilingwith/v20230427/ModifyDeviceTag.md +26 -0
- tccli/examples/weilingwith/v20230427/SaveDeviceGroup.md +31 -0
- tccli/examples/yinsuda/v20220527/SyncKTVRobotCommand.md +20 -20
- tccli/services/acp/v20220105/examples.json +42 -42
- tccli/services/af/v20200226/examples.json +4 -4
- tccli/services/afc/v20200226/examples.json +15 -15
- tccli/services/ams/v20201229/examples.json +6 -6
- tccli/services/antiddos/v20200309/examples.json +6 -6
- tccli/services/apigateway/v20180808/examples.json +6 -6
- tccli/services/apm/v20210622/examples.json +14 -14
- tccli/services/asr/v20190614/examples.json +6 -6
- tccli/services/autoscaling/v20180419/examples.json +40 -40
- tccli/services/bi/v20220105/examples.json +24 -24
- tccli/services/billing/v20180709/examples.json +24 -24
- tccli/services/bmvpc/v20180625/examples.json +12 -12
- tccli/services/btoe/v20210514/examples.json +6 -6
- tccli/services/cat/v20180409/examples.json +12 -12
- tccli/services/cbs/v20170312/examples.json +18 -18
- tccli/services/cdb/v20170320/examples.json +12 -12
- tccli/services/cdn/v20180606/examples.json +20 -20
- tccli/services/cdwch/v20200915/api.json +3 -0
- tccli/services/cdwch/v20200915/examples.json +3 -3
- tccli/services/cdwdoris/v20211228/examples.json +4 -4
- tccli/services/cfg/v20210820/examples.json +6 -6
- tccli/services/cfw/v20190904/examples.json +16 -16
- tccli/services/ckafka/v20190819/examples.json +12 -12
- tccli/services/clb/v20180317/examples.json +86 -86
- tccli/services/cls/v20201016/examples.json +18 -18
- tccli/services/cme/v20191029/examples.json +192 -192
- tccli/services/cvm/v20170312/examples.json +20 -20
- tccli/services/cwp/v20180228/examples.json +18 -18
- tccli/services/cynosdb/v20190107/examples.json +10 -10
- tccli/services/dc/v20180410/examples.json +20 -20
- tccli/services/dlc/v20210125/examples.json +6 -6
- tccli/services/dnspod/v20210323/examples.json +4 -4
- tccli/services/domain/domain_client.py +61 -8
- tccli/services/domain/v20180808/api.json +34 -0
- tccli/services/domain/v20180808/examples.json +8 -0
- tccli/services/dsgc/v20190723/examples.json +6 -6
- tccli/services/dts/v20180330/examples.json +12 -12
- tccli/services/ecc/v20181213/examples.json +14 -14
- tccli/services/ecm/v20190719/examples.json +20 -20
- tccli/services/emr/v20190103/examples.json +12 -12
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/ess/v20201111/examples.json +355 -355
- tccli/services/essbasic/v20210526/api.json +10 -1
- tccli/services/essbasic/v20210526/examples.json +215 -215
- tccli/services/facefusion/v20181201/examples.json +4 -4
- tccli/services/faceid/v20180301/examples.json +24 -24
- tccli/services/fmu/v20191213/examples.json +20 -20
- tccli/services/gaap/v20180529/examples.json +10 -10
- tccli/services/gme/v20180711/examples.json +6 -6
- tccli/services/hunyuan/v20230901/examples.json +17 -17
- tccli/services/iai/v20180301/examples.json +142 -142
- tccli/services/iai/v20200303/examples.json +136 -136
- tccli/services/iecp/v20210914/examples.json +6 -6
- tccli/services/ioa/v20220601/api.json +1 -1
- tccli/services/iotexplorer/v20190423/examples.json +22 -22
- tccli/services/iotvideo/v20191126/examples.json +12 -12
- tccli/services/iotvideoindustry/v20201201/examples.json +12 -12
- tccli/services/iss/v20230517/examples.json +40 -40
- tccli/services/ivld/v20210903/examples.json +14 -14
- tccli/services/lcic/v20220817/examples.json +18 -18
- tccli/services/live/v20180801/api.json +9 -0
- tccli/services/live/v20180801/examples.json +12 -12
- tccli/services/monitor/v20180724/examples.json +98 -98
- tccli/services/mps/v20190612/examples.json +58 -58
- tccli/services/mrs/v20200910/api.json +2 -1
- tccli/services/ms/v20180408/examples.json +24 -24
- tccli/services/oceanus/v20190422/examples.json +18 -18
- tccli/services/ocr/v20181119/api.json +10 -0
- tccli/services/ocr/v20181119/examples.json +12 -12
- tccli/services/omics/v20221128/api.json +25 -7
- tccli/services/omics/v20221128/examples.json +6 -6
- tccli/services/partners/v20180321/examples.json +6 -6
- tccli/services/postgres/v20170312/examples.json +36 -36
- tccli/services/rum/v20210622/examples.json +78 -78
- tccli/services/ses/v20201002/examples.json +4 -4
- tccli/services/soe/v20180724/examples.json +12 -12
- tccli/services/sqlserver/v20180328/examples.json +18 -18
- tccli/services/ssl/v20191205/examples.json +6 -6
- tccli/services/sts/v20180813/examples.json +6 -6
- tccli/services/tag/v20180813/examples.json +4 -4
- tccli/services/tan/v20220420/examples.json +4 -4
- tccli/services/tat/v20201028/examples.json +6 -6
- tccli/services/tcb/v20180608/examples.json +6 -6
- tccli/services/tcbr/v20220217/examples.json +24 -24
- tccli/services/tcr/v20190924/examples.json +18 -18
- tccli/services/tcss/v20201101/examples.json +47 -47
- tccli/services/tdmq/v20200217/examples.json +36 -36
- tccli/services/teo/v20220901/examples.json +78 -78
- tccli/services/tiia/v20190529/examples.json +52 -52
- tccli/services/tke/v20180525/examples.json +36 -36
- tccli/services/trocket/v20230308/api.json +9 -0
- tccli/services/trocket/v20230308/examples.json +12 -12
- tccli/services/trtc/v20190722/api.json +4 -7
- tccli/services/trtc/v20190722/examples.json +15 -15
- tccli/services/tse/v20201207/examples.json +6 -6
- tccli/services/tsf/v20180326/examples.json +12 -12
- tccli/services/vm/v20201229/examples.json +6 -6
- tccli/services/vod/v20180717/examples.json +141 -141
- tccli/services/vpc/v20170312/examples.json +90 -90
- tccli/services/waf/v20180125/examples.json +58 -58
- tccli/services/wedata/v20210820/examples.json +122 -122
- tccli/services/weilingwith/v20230427/api.json +625 -0
- tccli/services/weilingwith/v20230427/examples.json +68 -12
- tccli/services/weilingwith/weilingwith_client.py +379 -8
- tccli/services/yinsuda/v20220527/examples.json +12 -12
- {tccli-3.0.1086.1.dist-info → tccli-3.0.1088.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1086.1.dist-info → tccli-3.0.1088.1.dist-info}/RECORD +531 -523
- {tccli-3.0.1086.1.dist-info → tccli-3.0.1088.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1086.1.dist-info → tccli-3.0.1088.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1086.1.dist-info → tccli-3.0.1088.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,26 +1,19 @@
|
|
1
|
-
**Example 1:
|
1
|
+
**Example 1: g. 创建 EMR 集成**
|
2
2
|
|
3
3
|
参数说明:
|
4
4
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
5
|
-
2. Kind 参数固定为 `
|
5
|
+
2. Kind 参数固定为 `emr-exporter`,必填
|
6
6
|
3. Content 参数格式如示例。说明如下:
|
7
|
-
|
8
|
-
|
9
|
-
3.3. spec.instanceSpec.region 是云产品所在地域,必填,比如采集广州地域的云产品,可以填 `广州` 或 `ap-guangzhou`,该参数最终会转化为指标的 label, 名为 `instance-region`
|
10
|
-
3.4. spec.instanceSpec.delaySeconds 表示数据采集延迟,整数,单位是秒,可不填,默认是 0。当值为 0 时,原始数据点的时间戳会被忽略,替换为集成拉取到数据点的时间;当值 >0 时,数据点会保留原始的时间戳,且数据必然会延迟设置的时间
|
11
|
-
3.5. spec.instanceSpec.reload_interval_minutes 表示实例刷新间隔,整数,单位是分钟,必填且必须大于等于 10。云产品实例的新增或者云标签的修改,会在刷新实例后反映在指标中,至多需要等待一个实例刷新间隔
|
12
|
-
3.6. spec.instanceSpec.useRole 表示是否使用服务角色,布尔类型,必填。当前逻辑一定会使用服务角色,所以必填 `true`
|
13
|
-
3.7. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
14
|
-
3.8. spec.exporterSpec.[云产品] 表示是否采集对应云产品,布尔类型,`true` 表示采集该云产品。云产品各编码指代含义:`cvm`:云服务器,`cbs`:云硬盘,`lb_public`:负载均衡(公网),`lb_private`:负载均衡(内网),`tgw_set`:负载均衡(独占集群),`cmongo`:数据库MongoDB,`cdb`:数据库MySQL(CDB),`redis`:数据库Redis(CKV版),`redis_mem`:数据库Redis(内存版),`tendis`:Tendis,`xstor`:CTSDB(InfluxDB版),`mariadb`:数据库MariaDB,`postgres`:数据库PostgreSQL,`tdmysql`:TDSQL MySQL版,`cynosdb_mysql`:TDSQL-C MySQL,`sqlserver`:数据库SQL Server,`nat_gateway`:NAT网关,`ckafka`:CKafka,`rocketmq`:RocketMQ(新指标),`lb`:弹性公网IP,`vpngw`:VPN网关,`vpnx`:VPN通道,`vpc_net_detect`:网络探测,`cdn`:CDN,`ov_cdn`:CND(海外),`cos`:COS,`dc`:专线接入-物理专线,`dcx`:专线接入-专用通道,`dcg`:专线接入-专线网关,`lighthouse`:轻量应用服务器,`nacos`:Nacos,`zookeeper`:Zookeeper,`ces`:Elasticsearch,`dts`:数据传输服务,`vbc`:云联网,`gaap`:全球应用加速,`waf`:Web应用防火墙,`cfs`:文件存储,`bwp`:共享带宽包,`scf_v2`:云函数(别名),`vod`:云点播(VOD),`cls`:日志服务(CLS)-日志主题,`apigateway`:API 网关,`ti_traintask`:TI-ONE(任务式建模),`ti_notebook`:TI-ONE(Notebook),`ti_model`:TI-ONE(在线服务),`self`:采集器自监控
|
15
|
-
2.9. spec.scrapeSpec.relabelConfigs 用于添加 `metricRelabelings` 配置,选填。该配置是 prometheus-operator 的 relabel 配置,部分字段与 prometheus 原生 relabel 配置不同,具体可参考[官方配置说明](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.RelabelConfig)
|
7
|
+
4.1. kind 是集成类型,必填且这里固定为 `emr-exporter`
|
8
|
+
4.2. spec.job 是抓取配置,必填,yaml格式,具体可参考[EMR 接入文档](https://cloud.tencent.com/document/product/1416/92850#cb099aba-2dd3-42e6-bc10-69db3999a5a8)
|
16
9
|
|
17
10
|
Input:
|
18
11
|
|
19
12
|
```
|
20
13
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
21
14
|
--InstanceId prom-1 \
|
22
|
-
--Kind
|
23
|
-
--Content {"
|
15
|
+
--Kind emr-exporter \
|
16
|
+
--Content {"kind":"emr-exporter","spec":{"job":"job_name: emr-example-job\nmetrics_path: /metrics\nemr_sd_configs:\n- region: ap-guangzhou\n instance_ids: \n - emr-test\nrelabel_configs:\n- regex: __meta_emr_(.*)\n replacement: $1\n action: labelmap"}}
|
24
17
|
```
|
25
18
|
|
26
19
|
Output:
|
@@ -28,30 +21,29 @@ Output:
|
|
28
21
|
{
|
29
22
|
"Response": {
|
30
23
|
"Names": [
|
31
|
-
"
|
24
|
+
"emr-example-job"
|
32
25
|
],
|
33
26
|
"RequestId": "xyz"
|
34
27
|
}
|
35
28
|
}
|
36
29
|
```
|
37
30
|
|
38
|
-
**Example 2:
|
31
|
+
**Example 2: f. 创建 Cdwch 集成**
|
39
32
|
|
40
|
-
该集成要保证 CVM 实例与 Prometheus 实例内网相通(比如同 VPC 下),且 CVM 实例安装了[自动化助手](https://cloud.tencent.com/document/product/1340/51945)。
|
41
33
|
参数说明:
|
42
34
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
43
|
-
2. Kind 参数固定为 `
|
35
|
+
2. Kind 参数固定为 `cdwch-exporter`,必填
|
44
36
|
3. Content 参数格式如示例。说明如下:
|
45
|
-
3.1. kind 是集成类型,必填且这里固定为 `
|
46
|
-
3.2. spec.job 是抓取配置,必填,yaml
|
37
|
+
3.1. kind 是集成类型,必填且这里固定为 `cdwch-exporter`
|
38
|
+
3.2. spec.job 是抓取配置,必填,yaml格式,建议参考输入示例,仅需修改任务名和实例 ID
|
47
39
|
|
48
40
|
Input:
|
49
41
|
|
50
42
|
```
|
51
43
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
52
44
|
--InstanceId prom-1 \
|
53
|
-
--Kind
|
54
|
-
--Content {"kind":"
|
45
|
+
--Kind cdwch-exporter \
|
46
|
+
--Content {"kind":"cdwch-exporter","spec":{"job":"job_name: cdwch-example-job\nmetrics_path: /metrics\ncdwch_sd_configs:\n- region: ap-guangzhou\n instance_ids: \n - cdwch-test\nrelabel_configs:\n- regex: __meta_cdwch_(.*)\n replacement: $1\n action: labelmap"}}
|
55
47
|
```
|
56
48
|
|
57
49
|
Output:
|
@@ -59,29 +51,31 @@ Output:
|
|
59
51
|
{
|
60
52
|
"Response": {
|
61
53
|
"Names": [
|
62
|
-
"
|
54
|
+
"cdwch-example-job"
|
63
55
|
],
|
64
56
|
"RequestId": "xyz"
|
65
57
|
}
|
66
58
|
}
|
67
59
|
```
|
68
60
|
|
69
|
-
**Example 3:
|
61
|
+
**Example 3: h. 创建 抓取任务**
|
70
62
|
|
63
|
+
安装 免鉴权代理,可以免鉴权内网访问 Prometheus 原生 API。
|
64
|
+
创建后可以调用 DescribeExporterIntegrations 接口,通过 InstanceDesc 参数获取集成的内网 IP:Port 地址,该地址可以代替 Prometheus 实例地址,实现免鉴权访问。
|
71
65
|
参数说明:
|
72
66
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
73
|
-
2. Kind 参数固定为 `
|
67
|
+
2. Kind 参数固定为 `raw-job`,必填
|
74
68
|
3. Content 参数格式如示例。说明如下:
|
75
|
-
3.1. kind 是集成类型,必填且这里固定为 `
|
76
|
-
3.2. spec.job
|
69
|
+
3.1. kind 是集成类型,必填且这里固定为 `raw-job`
|
70
|
+
3.2. spec.spec.job 是 Prometheus 原生抓取配置,yaml格式,必填。可参考[配置说明文档](https://cloud.tencent.com/document/product/1416/55995#.E5.8E.9F.E7.94.9F-job-.E9.85.8D.E7.BD.AE)
|
77
71
|
|
78
72
|
Input:
|
79
73
|
|
80
74
|
```
|
81
75
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
82
76
|
--InstanceId prom-1 \
|
83
|
-
--Kind
|
84
|
-
--Content {"kind":"
|
77
|
+
--Kind raw-job \
|
78
|
+
--Content {"kind":"raw-job","spec":{"job":"job_name: test\nscrape_interval: 30s\nstatic_configs:\n- targets:\n - 127.0.0.1:9090"}}
|
85
79
|
```
|
86
80
|
|
87
81
|
Output:
|
@@ -89,36 +83,35 @@ Output:
|
|
89
83
|
{
|
90
84
|
"Response": {
|
91
85
|
"Names": [
|
92
|
-
"
|
86
|
+
"test"
|
93
87
|
],
|
94
88
|
"RequestId": "xyz"
|
95
89
|
}
|
96
90
|
}
|
97
91
|
```
|
98
92
|
|
99
|
-
**Example 4:
|
93
|
+
**Example 4: k. 创建 Kafka 集成**
|
100
94
|
|
95
|
+
安装 kafka Exporter。
|
101
96
|
参数说明:
|
102
97
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
103
|
-
2. Kind 参数固定为 `
|
98
|
+
2. Kind 参数固定为 `kafka-exporter`,必填
|
104
99
|
3. Content 参数格式如示例。说明如下:
|
105
100
|
3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
|
106
|
-
3.2. kind 是集成类型,必填且这里固定为 `
|
107
|
-
3.3. spec.instanceSpec.
|
108
|
-
3.4. spec.instanceSpec.
|
109
|
-
3.5. spec.instanceSpec.
|
110
|
-
3.6. spec.
|
111
|
-
3.7. spec.
|
112
|
-
3.8. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
113
|
-
3.9. spec.scrapeSpec.interval 用于自定义探测间隔,选填,默认是 15s
|
101
|
+
3.2. kind 是集成类型,必填且这里固定为 `kafka-exporter`
|
102
|
+
3.3. spec.instanceSpec.servers 是 Kafka 实例的地址,必填,可填写多个,建议一个实例一个集成
|
103
|
+
3.4. spec.instanceSpec.version 是 Kafka 实例的版本,选填,部分版本不填写会报错,比如 0.10.2.0
|
104
|
+
3.5. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
105
|
+
3.6. spec.exporterSpec.topicFilter 用于过滤 topic,可不填,默认全部采集。填写正则表达式后,只采集符合条件的 topic
|
106
|
+
3.7. spec.exporterSpec.groupFilter 用于过滤 group,可不填,默认全部采集。填写正则表达式后,只采集符合条件的 group
|
114
107
|
|
115
108
|
Input:
|
116
109
|
|
117
110
|
```
|
118
111
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
119
112
|
--InstanceId prom-1 \
|
120
|
-
--Kind
|
121
|
-
--Content {"name":"test","kind":"
|
113
|
+
--Kind kafka-exporter \
|
114
|
+
--Content {"name":"kafka-test","kind":"kafka-exporter","spec":{"instanceSpec":{"servers":["127.0.0.1:8080"],"version":"0.10.2.0","labels":{"labelKey":"labelValue","test":"test"}},"exporterSpec":{"topicFilter":"topic.*","groupFilter":"group.*"}}}
|
122
115
|
```
|
123
116
|
|
124
117
|
Output:
|
@@ -126,37 +119,34 @@ Output:
|
|
126
119
|
{
|
127
120
|
"Response": {
|
128
121
|
"Names": [
|
129
|
-
"test"
|
122
|
+
"kafka-test"
|
130
123
|
],
|
131
124
|
"RequestId": "xyz"
|
132
125
|
}
|
133
126
|
}
|
134
127
|
```
|
135
128
|
|
136
|
-
**Example 5:
|
129
|
+
**Example 5: o. 创建 MySQL 集成**
|
137
130
|
|
138
|
-
|
131
|
+
安装 MySQL Exporter。
|
139
132
|
参数说明:
|
140
133
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
141
|
-
2. Kind 参数固定为 `
|
142
|
-
3.
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
5.
|
148
|
-
|
149
|
-
5.5. spec.instanceSpec.workload 是 Ingress NGINX Controller 的集群对象类型,必填,比如 deployment 或者 daemonset
|
134
|
+
2. Kind 参数固定为 `mysql-exporter`,必填
|
135
|
+
3. Content 参数格式如示例。说明如下:
|
136
|
+
3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
|
137
|
+
3.2. kind 是集成类型,必填且这里固定为 `mysql-exporter`
|
138
|
+
3.3. spec.instanceSpec.user 是 MySQL 实例的用户名称,必填
|
139
|
+
3.4. spec.instanceSpec.password 是 MySQL 实例的密码,必填
|
140
|
+
3.5. spec.instanceSpec.address 是 MySQL 实例的连接地址,必填
|
141
|
+
3.6. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
150
142
|
|
151
143
|
Input:
|
152
144
|
|
153
145
|
```
|
154
146
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
155
147
|
--InstanceId prom-1 \
|
156
|
-
--
|
157
|
-
--
|
158
|
-
--Kind nginx-ingress \
|
159
|
-
--Content {"kind":"nginx-ingress","name":"ingress-test","spec":{"instanceSpec":{"namespace":"namespace","name":"controller-name","workLoad":"deployment"}}}
|
148
|
+
--Kind mysql-exporter \
|
149
|
+
--Content {"name":"mysql-test","kind":"mysql-exporter","spec":{"instanceSpec":{"user":"root","password":"password","address":"127.0.0.1:8080","labels":{"labelKey":"labelValue","test":"test"}}}}
|
160
150
|
```
|
161
151
|
|
162
152
|
Output:
|
@@ -164,29 +154,33 @@ Output:
|
|
164
154
|
{
|
165
155
|
"Response": {
|
166
156
|
"Names": [
|
167
|
-
"
|
157
|
+
"mysql-test"
|
168
158
|
],
|
169
159
|
"RequestId": "xyz"
|
170
160
|
}
|
171
161
|
}
|
172
162
|
```
|
173
163
|
|
174
|
-
**Example 6:
|
164
|
+
**Example 6: q. 创建 Redis 集成**
|
175
165
|
|
166
|
+
安装 Redis Exporter。
|
176
167
|
参数说明:
|
177
168
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
178
|
-
2. Kind 参数固定为 `
|
169
|
+
2. Kind 参数固定为 `redis-exporter`,必填
|
179
170
|
3. Content 参数格式如示例。说明如下:
|
180
|
-
3.1.
|
181
|
-
3.2.
|
171
|
+
3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
|
172
|
+
3.2. kind 是集成类型,必填且这里固定为 `redis-exporter`
|
173
|
+
3.3. spec.instanceSpec.address 是 Redis 实例的连接地址,必填
|
174
|
+
3.4. spec.instanceSpec.password 是 Redis 实例的密码,必填
|
175
|
+
3.5. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
182
176
|
|
183
177
|
Input:
|
184
178
|
|
185
179
|
```
|
186
180
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
187
181
|
--InstanceId prom-1 \
|
188
|
-
--Kind
|
189
|
-
--Content {"kind":"
|
182
|
+
--Kind redis-exporter \
|
183
|
+
--Content {"name":"redis-test","kind":"redis-exporter","spec":{"instanceSpec":{"address":"127.0.0.1:8080","password":"password","labels":{"labelKey":"labelValue","test":"test"}}}}
|
190
184
|
```
|
191
185
|
|
192
186
|
Output:
|
@@ -194,29 +188,32 @@ Output:
|
|
194
188
|
{
|
195
189
|
"Response": {
|
196
190
|
"Names": [
|
197
|
-
"
|
191
|
+
"redis-test"
|
198
192
|
],
|
199
193
|
"RequestId": "xyz"
|
200
194
|
}
|
201
195
|
}
|
202
196
|
```
|
203
197
|
|
204
|
-
**Example 7:
|
198
|
+
**Example 7: i. 创建 Consul 集成**
|
205
199
|
|
200
|
+
安装 Consul Exporter。
|
206
201
|
参数说明:
|
207
202
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
208
|
-
2. Kind 参数固定为 `
|
203
|
+
2. Kind 参数固定为 `consul-exporter`,必填
|
209
204
|
3. Content 参数格式如示例。说明如下:
|
210
|
-
|
211
|
-
|
205
|
+
3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
|
206
|
+
3.2. kind 是集成类型,必填且这里固定为 `consul-exporter`
|
207
|
+
3.3. spec.instanceSpec.server 是 Consul 实例的地址,必填
|
208
|
+
3.4. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
212
209
|
|
213
210
|
Input:
|
214
211
|
|
215
212
|
```
|
216
213
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
217
214
|
--InstanceId prom-1 \
|
218
|
-
--Kind
|
219
|
-
--Content {"kind":"
|
215
|
+
--Kind consul-exporter \
|
216
|
+
--Content {"name":"consul-test","kind":"consul-exporter","spec":{"instanceSpec":{"server":"1.1.1.1:8080","labels":{"labelKey":"labelValue","test":"test"}}}}
|
220
217
|
```
|
221
218
|
|
222
219
|
Output:
|
@@ -224,31 +221,35 @@ Output:
|
|
224
221
|
{
|
225
222
|
"Response": {
|
226
223
|
"Names": [
|
227
|
-
"
|
224
|
+
"consul-test"
|
228
225
|
],
|
229
226
|
"RequestId": "xyz"
|
230
227
|
}
|
231
228
|
}
|
232
229
|
```
|
233
230
|
|
234
|
-
**Example 8:
|
231
|
+
**Example 8: n. 创建 MongoDB 集成**
|
235
232
|
|
236
|
-
安装
|
237
|
-
创建后可以调用 DescribeExporterIntegrations 接口,通过 InstanceDesc 参数获取集成的内网 IP:Port 地址,该地址可以代替 Prometheus 实例地址,实现免鉴权访问。
|
233
|
+
安装 MongoDB Exporter。
|
238
234
|
参数说明:
|
239
235
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
240
|
-
2. Kind 参数固定为 `
|
236
|
+
2. Kind 参数固定为 `mongodb-exporter`,必填
|
241
237
|
3. Content 参数格式如示例。说明如下:
|
242
|
-
3.1.
|
243
|
-
3.2.
|
238
|
+
3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
|
239
|
+
3.2. kind 是集成类型,必填且这里固定为 `mongodb-exporter`
|
240
|
+
3.3. spec.instanceSpec.user 是 MongoDB 实例的用户名称,必填
|
241
|
+
3.4. spec.instanceSpec.password 是 MongoDB 实例的密码,必填
|
242
|
+
3.5. spec.instanceSpec.servers 是 MongoDB 实例的连接地址,必填,可填写多个,逗号分隔
|
243
|
+
3.6. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
244
|
+
3.7. spec.exporterSpec.collectors 是 exporter 的采集配置,选填,字符串数组,示例中展示了所有可填写的值。其中`database` 表示启用数据库指标的采集,`collection`表示启用集合指标的采集,`topmetrics`表示启用数据库表头指标信息的采集,`indexusage`表示启用索引使用统计信息的采集,`connpoolstats`表示启用连接池统计信息的采集
|
244
245
|
|
245
246
|
Input:
|
246
247
|
|
247
248
|
```
|
248
249
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
249
250
|
--InstanceId prom-1 \
|
250
|
-
--Kind
|
251
|
-
--Content {"kind":"
|
251
|
+
--Kind mongodb-exporter \
|
252
|
+
--Content {"name":"mongodb-test","kind":"mongodb-exporter","spec":{"instanceSpec":{"user":"root","password":"password","servers":["127.0.0.1:8080","127.0.0.2:8080"],"labels":{"labelKey":"labelValue","test":"test"}},"exporterSpec":{"collectors":["database","collection","topmetrics","indexusage","connpoolstats"]}}}
|
252
253
|
```
|
253
254
|
|
254
255
|
Output:
|
@@ -256,32 +257,33 @@ Output:
|
|
256
257
|
{
|
257
258
|
"Response": {
|
258
259
|
"Names": [
|
259
|
-
"test"
|
260
|
+
"mongodb-test"
|
260
261
|
],
|
261
262
|
"RequestId": "xyz"
|
262
263
|
}
|
263
264
|
}
|
264
265
|
```
|
265
266
|
|
266
|
-
**Example 9:
|
267
|
+
**Example 9: l. 创建 RocketMQ 集成**
|
267
268
|
|
268
|
-
安装
|
269
|
+
安装 RocketMQ Exporter。
|
269
270
|
参数说明:
|
270
271
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
271
|
-
2. Kind 参数固定为 `
|
272
|
+
2. Kind 参数固定为 `rocketmq-exporter`,必填
|
272
273
|
3. Content 参数格式如示例。说明如下:
|
273
274
|
3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
|
274
|
-
3.2. kind 是集成类型,必填且这里固定为 `
|
275
|
-
3.3. spec.instanceSpec.
|
276
|
-
3.4. spec.instanceSpec.
|
275
|
+
3.2. kind 是集成类型,必填且这里固定为 `rocketmq-exporter`
|
276
|
+
3.3. spec.instanceSpec.address 是 RocketMQ 实例的地址,必填,可填写多个,用分号分割
|
277
|
+
3.4. spec.instanceSpec.version 是 RocketMQ 实例的版本,必填,比如 V4_9_4
|
278
|
+
3.5. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
277
279
|
|
278
280
|
Input:
|
279
281
|
|
280
282
|
```
|
281
283
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
282
284
|
--InstanceId prom-1 \
|
283
|
-
--Kind
|
284
|
-
--Content {"name":"
|
285
|
+
--Kind rocketmq-exporter \
|
286
|
+
--Content {"name":"rocketmq-test","kind":"rocketmq-exporter","spec":{"instanceSpec":{"address":"127.0.0.1:8080;127.0.0.2:8080","version":"V4_9_4","labels":{"labelKey":"labelValue","test":"test"}}}}
|
285
287
|
```
|
286
288
|
|
287
289
|
Output:
|
@@ -289,40 +291,33 @@ Output:
|
|
289
291
|
{
|
290
292
|
"Response": {
|
291
293
|
"Names": [
|
292
|
-
"
|
294
|
+
"rocketmq-test"
|
293
295
|
],
|
294
296
|
"RequestId": "xyz"
|
295
297
|
}
|
296
298
|
}
|
297
299
|
```
|
298
300
|
|
299
|
-
**Example 10:
|
301
|
+
**Example 10: r. 创建 Graphite 集成**
|
300
302
|
|
301
|
-
安装
|
303
|
+
安装 Graphite Exporter,可以将 Graphite 指标转为 Prometheus 指标。
|
304
|
+
创建后可以调用 DescribeExporterIntegrations 接口,通过 InstanceDesc 参数获取集成的内网 IP:Port 地址。
|
302
305
|
参数说明:
|
303
306
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
304
|
-
2. Kind 参数固定为 `
|
307
|
+
2. Kind 参数固定为 `graphite-exporter`,必填
|
305
308
|
3. Content 参数格式如示例。说明如下:
|
306
309
|
3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
|
307
|
-
3.2. kind 是集成类型,必填且这里固定为 `
|
308
|
-
3.3. spec.instanceSpec.
|
309
|
-
3.4. spec.instanceSpec.
|
310
|
-
3.5. spec.instanceSpec.url 是 ElasticSearch 的连接地址,必填
|
311
|
-
3.6. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
312
|
-
3.7. spec.exporterSpec.all 表示是否查询集群中所有节点的统计信息,布尔类型,选填,默认值为 false。false 则仅查询连接的节点的统计信息
|
313
|
-
3.8. spec.exporterSpec.indices 表示是否查询集群中所有索引的统计信息,布尔类型,选填,默认值为 false
|
314
|
-
3.9. spec.exporterSpec.indicesSettings 表示是否查询集群中所有索引配置的统计信息,布尔类型,选填,默认值为 false
|
315
|
-
3.10. spec.exporterSpec.shards 表示是否查询集群中所有索引的统计信息,包括分片级别的统计信息,布尔类型,选填,默认值为 false。
|
316
|
-
3.11. spec.exporterSpec.snapshots 表示是否查询集群快照的统计信息,布尔类型,选填,默认值为 false
|
317
|
-
3.12. spec.exporterSpec.clusterSettings 表示是否查询集群配置的统计信息,布尔类型,选填,默认值为false
|
310
|
+
3.2. kind 是集成类型,必填且这里固定为 `graphite-exporter`
|
311
|
+
3.3. spec.instanceSpec.isStrictMatch 表示是否严格匹配 mappingConfig,选填,默认是 false
|
312
|
+
3.4. spec.instanceSpec.mappingConfig 是映射配置,可以定义 Prometheus 指标的名字和 label。具体可参考[官方文档](https://github.com/prometheus/graphite_exporter#yaml-config)
|
318
313
|
|
319
314
|
Input:
|
320
315
|
|
321
316
|
```
|
322
317
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
323
318
|
--InstanceId prom-1 \
|
324
|
-
--Kind
|
325
|
-
--Content {"name":"
|
319
|
+
--Kind graphite-exporter \
|
320
|
+
--Content {"name":"graphite-test","kind":"graphite-exporter","spec":{"instanceSpec":{"isStrictMatch":true,"mappingConfig":"mappings:\n- match: test.dispatcher.*.*.*\n name: dispatcher_events_total\n labels:\n action: $2\n job: test_dispatcher\n outcome: $3\n processor: $1\n- match: \"*.signup.*.*\"\n name: signup_events_total\n labels:\n job: ${1}_server\n outcome: $3\n provider: $2\n- match: \"servers.(.*).networking.subnetworks.transmissions.([a-z0-9-]+).(.*)\"\n match_type: regex\n name: \"servers_networking_transmissions_${3}\"\n labels: \n hostname: ${1}\n device: ${2}"}}}
|
326
321
|
```
|
327
322
|
|
328
323
|
Output:
|
@@ -330,35 +325,36 @@ Output:
|
|
330
325
|
{
|
331
326
|
"Response": {
|
332
327
|
"Names": [
|
333
|
-
"
|
328
|
+
"graphite-test"
|
334
329
|
],
|
335
330
|
"RequestId": "xyz"
|
336
331
|
}
|
337
332
|
}
|
338
333
|
```
|
339
334
|
|
340
|
-
**Example 11:
|
335
|
+
**Example 11: a. 创建 云监控 集成**
|
341
336
|
|
342
|
-
安装 kafka Exporter。
|
343
337
|
参数说明:
|
344
338
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
345
|
-
2. Kind 参数固定为 `
|
339
|
+
2. Kind 参数固定为 `qcloud-exporter`,必填
|
346
340
|
3. Content 参数格式如示例。说明如下:
|
347
341
|
3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
|
348
|
-
3.2. kind 是集成类型,必填且这里固定为 `
|
349
|
-
3.3. spec.instanceSpec.
|
350
|
-
3.4. spec.instanceSpec.
|
351
|
-
3.5. spec.instanceSpec.
|
352
|
-
3.6. spec.
|
353
|
-
3.7. spec.
|
342
|
+
3.2. kind 是集成类型,必填且这里固定为 `qcloud-exporter`
|
343
|
+
3.3. spec.instanceSpec.region 是云产品所在地域,必填,比如采集广州地域的云产品,可以填 `广州` 或 `ap-guangzhou`,该参数最终会转化为指标的 label, 名为 `instance-region`
|
344
|
+
3.4. spec.instanceSpec.delaySeconds 表示数据采集延迟,整数,单位是秒,可不填,默认是 0。当值为 0 时,原始数据点的时间戳会被忽略,替换为集成拉取到数据点的时间;当值 >0 时,数据点会保留原始的时间戳,且数据必然会延迟设置的时间
|
345
|
+
3.5. spec.instanceSpec.reload_interval_minutes 表示实例刷新间隔,整数,单位是分钟,必填且必须大于等于 10。云产品实例的新增或者云标签的修改,会在刷新实例后反映在指标中,至多需要等待一个实例刷新间隔
|
346
|
+
3.6. spec.instanceSpec.useRole 表示是否使用服务角色,布尔类型,必填。当前逻辑一定会使用服务角色,所以必填 `true`
|
347
|
+
3.7. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
348
|
+
3.8. spec.exporterSpec.[云产品] 表示是否采集对应云产品,布尔类型,`true` 表示采集该云产品。云产品各编码指代含义:`cvm`:云服务器,`cbs`:云硬盘,`lb_public`:负载均衡(公网),`lb_private`:负载均衡(内网),`tgw_set`:负载均衡(独占集群),`cmongo`:数据库MongoDB,`cdb`:数据库MySQL(CDB),`redis`:数据库Redis(CKV版),`redis_mem`:数据库Redis(内存版),`tendis`:Tendis,`xstor`:CTSDB(InfluxDB版),`mariadb`:数据库MariaDB,`postgres`:数据库PostgreSQL,`tdmysql`:TDSQL MySQL版,`cynosdb_mysql`:TDSQL-C MySQL,`sqlserver`:数据库SQL Server,`nat_gateway`:NAT网关,`ckafka`:CKafka,`rocketmq`:RocketMQ(新指标),`lb`:弹性公网IP,`vpngw`:VPN网关,`vpnx`:VPN通道,`vpc_net_detect`:网络探测,`cdn`:CDN,`ov_cdn`:CND(海外),`cos`:COS,`dc`:专线接入-物理专线,`dcx`:专线接入-专用通道,`dcg`:专线接入-专线网关,`lighthouse`:轻量应用服务器,`nacos`:Nacos,`zookeeper`:Zookeeper,`ces`:Elasticsearch,`dts`:数据传输服务,`vbc`:云联网,`gaap`:全球应用加速,`waf`:Web应用防火墙,`cfs`:文件存储,`bwp`:共享带宽包,`scf_v2`:云函数(别名),`vod`:云点播(VOD),`cls`:日志服务(CLS)-日志主题,`apigateway`:API 网关,`ti_traintask`:TI-ONE(任务式建模),`ti_notebook`:TI-ONE(Notebook),`ti_model`:TI-ONE(在线服务),`self`:采集器自监控
|
349
|
+
2.9. spec.scrapeSpec.relabelConfigs 用于添加 `metricRelabelings` 配置,选填。该配置是 prometheus-operator 的 relabel 配置,部分字段与 prometheus 原生 relabel 配置不同,具体可参考[官方配置说明](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.RelabelConfig)
|
354
350
|
|
355
351
|
Input:
|
356
352
|
|
357
353
|
```
|
358
354
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
359
355
|
--InstanceId prom-1 \
|
360
|
-
--Kind
|
361
|
-
--Content {"name":"
|
356
|
+
--Kind qcloud-exporter \
|
357
|
+
--Content {"name":"test","kind":"qcloud-exporter","spec":{"instanceSpec":{"region":"广州","delaySeconds":0,"reload_interval_minutes":10,"useRole":true,"labels":{"labelKey":"labelValue","test":"test"}},"exporterSpec":{"cvm":true,"cbs":true},"scrapeSpec":{"relabelConfigs":"metricRelabelings:\n- action: labeldrop\n regex: tmp_test_label\n"}}}
|
362
358
|
```
|
363
359
|
|
364
360
|
Output:
|
@@ -366,33 +362,32 @@ Output:
|
|
366
362
|
{
|
367
363
|
"Response": {
|
368
364
|
"Names": [
|
369
|
-
"
|
365
|
+
"test"
|
370
366
|
],
|
371
367
|
"RequestId": "xyz"
|
372
368
|
}
|
373
369
|
}
|
374
370
|
```
|
375
371
|
|
376
|
-
**Example 12:
|
372
|
+
**Example 12: m. 创建 Memcached 集成**
|
377
373
|
|
378
|
-
安装
|
374
|
+
安装 Memcached Exporter。
|
379
375
|
参数说明:
|
380
376
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
381
|
-
2. Kind 参数固定为 `
|
377
|
+
2. Kind 参数固定为 `memcached-exporter`,必填
|
382
378
|
3. Content 参数格式如示例。说明如下:
|
383
379
|
3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
|
384
|
-
3.2. kind 是集成类型,必填且这里固定为 `
|
385
|
-
3.3. spec.instanceSpec.address 是
|
386
|
-
3.4. spec.instanceSpec.
|
387
|
-
3.5. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
380
|
+
3.2. kind 是集成类型,必填且这里固定为 `memcached-exporter`
|
381
|
+
3.3. spec.instanceSpec.address 是 Memcached 实例的地址,必填
|
382
|
+
3.4. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
388
383
|
|
389
384
|
Input:
|
390
385
|
|
391
386
|
```
|
392
387
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
393
388
|
--InstanceId prom-1 \
|
394
|
-
--Kind
|
395
|
-
--Content {"name":"
|
389
|
+
--Kind memcached-exporter \
|
390
|
+
--Content {"name":"memcached-test","kind":"memcached-exporter","spec":{"instanceSpec":{"address":"127.0.0.1:8080","labels":{"labelKey":"labelValue","test":"test"}}}}
|
396
391
|
```
|
397
392
|
|
398
393
|
Output:
|
@@ -400,32 +395,34 @@ Output:
|
|
400
395
|
{
|
401
396
|
"Response": {
|
402
397
|
"Names": [
|
403
|
-
"
|
398
|
+
"memcached-test"
|
404
399
|
],
|
405
400
|
"RequestId": "xyz"
|
406
401
|
}
|
407
402
|
}
|
408
403
|
```
|
409
404
|
|
410
|
-
**Example 13:
|
405
|
+
**Example 13: p. 创建 PostgreSQL 集成**
|
411
406
|
|
412
|
-
安装
|
407
|
+
安装 PostgreSQL Exporter。
|
413
408
|
参数说明:
|
414
409
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
415
|
-
2. Kind 参数固定为 `
|
410
|
+
2. Kind 参数固定为 `postgres-exporter`,必填
|
416
411
|
3. Content 参数格式如示例。说明如下:
|
417
412
|
3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
|
418
|
-
3.2. kind 是集成类型,必填且这里固定为 `
|
419
|
-
3.3. spec.instanceSpec.
|
420
|
-
3.4. spec.instanceSpec.
|
413
|
+
3.2. kind 是集成类型,必填且这里固定为 `postgres-exporter`
|
414
|
+
3.3. spec.instanceSpec.user 是 PostgreSQL 实例的用户名称,必填
|
415
|
+
3.4. spec.instanceSpec.password 是 PostgreSQL 实例的密码,必填
|
416
|
+
3.5. spec.instanceSpec.address 是 PostgreSQL 实例的连接地址,必填
|
417
|
+
3.6. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
421
418
|
|
422
419
|
Input:
|
423
420
|
|
424
421
|
```
|
425
422
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
426
423
|
--InstanceId prom-1 \
|
427
|
-
--Kind
|
428
|
-
--Content {"name":"
|
424
|
+
--Kind postgres-exporter \
|
425
|
+
--Content {"name":"postgresql-test","kind":"postgres-exporter","spec":{"instanceSpec":{"user":"user","password":"password","address":"127.0.0.1:8080","labels":{"labelKey":"labelValue","test":"test"}}}}
|
429
426
|
```
|
430
427
|
|
431
428
|
Output:
|
@@ -433,35 +430,36 @@ Output:
|
|
433
430
|
{
|
434
431
|
"Response": {
|
435
432
|
"Names": [
|
436
|
-
"
|
433
|
+
"postgresql-test"
|
437
434
|
],
|
438
435
|
"RequestId": "xyz"
|
439
436
|
}
|
440
437
|
}
|
441
438
|
```
|
442
439
|
|
443
|
-
**Example 14:
|
440
|
+
**Example 14: d. 创建 健康巡检 集成**
|
444
441
|
|
445
|
-
安装 MongoDB Exporter。
|
446
442
|
参数说明:
|
447
443
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
448
|
-
2. Kind 参数固定为 `
|
444
|
+
2. Kind 参数固定为 `blackbox-exporter`,必填
|
449
445
|
3. Content 参数格式如示例。说明如下:
|
450
446
|
3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
|
451
|
-
3.2. kind 是集成类型,必填且这里固定为 `
|
452
|
-
3.3. spec.instanceSpec.
|
453
|
-
3.4. spec.instanceSpec.
|
454
|
-
3.5. spec.instanceSpec.
|
455
|
-
3.6. spec.instanceSpec.
|
456
|
-
3.7. spec.
|
447
|
+
3.2. kind 是集成类型,必填且这里固定为 `blackbox-exporter`
|
448
|
+
3.3. spec.instanceSpec.module 是探测方式,必填,可选值为 `http_get`、`http_post`、`tcp`、`ssh`、`ping`
|
449
|
+
3.4. spec.instanceSpec.urls 是探测目标,字符串数组,必填,目标格式可以是 host:port 或 http://abc 或 https://abc
|
450
|
+
3.5. spec.instanceSpec.noAllowRedirect 可以控制是否禁止重定向,布尔类型,选填,仅对探测方式 `http_get` 和 `http_post` 生效,true 表示禁止重定向,可直接不填,默认为 false
|
451
|
+
3.6. spec.instanceSpec.insecureSkipVerify 可以控制是否禁用目标证书验证,布尔类型,选填,仅对探测方式 `http_get` 和 `http_post` 生效,true 表示禁用目标证书验证,可直接不填,默认为 false
|
452
|
+
3.7. spec.instanceSpec.headers 用于在探测目标时添加 header,键值对类型,选填,仅对探测方式 `http_get` 和 `http_post` 生效
|
453
|
+
3.8. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
454
|
+
3.9. spec.scrapeSpec.interval 用于自定义探测间隔,选填,默认是 15s
|
457
455
|
|
458
456
|
Input:
|
459
457
|
|
460
458
|
```
|
461
459
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
462
460
|
--InstanceId prom-1 \
|
463
|
-
--Kind
|
464
|
-
--Content {"name":"
|
461
|
+
--Kind blackbox-exporter \
|
462
|
+
--Content {"name":"test","kind":"blackbox-exporter","spec":{"instanceSpec":{"module":"http_get","urls":["host:port","http://abc","https://abc"],"noAllowRedirect":false,"insecureSkipVerify":true,"headers":{"Authorization":"Basic <Credentials>","test":"test"},"labels":{"labelKey":"labelValue","test":"test"}},"scrapeSpec":{"interval":"15s"}}}
|
465
463
|
```
|
466
464
|
|
467
465
|
Output:
|
@@ -469,34 +467,40 @@ Output:
|
|
469
467
|
{
|
470
468
|
"Response": {
|
471
469
|
"Names": [
|
472
|
-
"
|
470
|
+
"test"
|
473
471
|
],
|
474
472
|
"RequestId": "xyz"
|
475
473
|
}
|
476
474
|
}
|
477
475
|
```
|
478
476
|
|
479
|
-
**Example 15:
|
477
|
+
**Example 15: j. 创建 ElasticSearch 集成**
|
480
478
|
|
481
|
-
安装
|
479
|
+
安装 ElasticSearch Exporter。
|
482
480
|
参数说明:
|
483
481
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
484
|
-
2. Kind 参数固定为 `
|
482
|
+
2. Kind 参数固定为 `es-exporter`,必填
|
485
483
|
3. Content 参数格式如示例。说明如下:
|
486
484
|
3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
|
487
|
-
3.2. kind 是集成类型,必填且这里固定为 `
|
488
|
-
3.3. spec.instanceSpec.user 是
|
489
|
-
3.4. spec.instanceSpec.password 是
|
490
|
-
3.5. spec.instanceSpec.
|
485
|
+
3.2. kind 是集成类型,必填且这里固定为 `es-exporter`
|
486
|
+
3.3. spec.instanceSpec.user 是 ElasticSearch 的用户名称,必填
|
487
|
+
3.4. spec.instanceSpec.password 是 ElasticSearch 的密码,必填
|
488
|
+
3.5. spec.instanceSpec.url 是 ElasticSearch 的连接地址,必填
|
491
489
|
3.6. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
490
|
+
3.7. spec.exporterSpec.all 表示是否查询集群中所有节点的统计信息,布尔类型,选填,默认值为 false。false 则仅查询连接的节点的统计信息
|
491
|
+
3.8. spec.exporterSpec.indices 表示是否查询集群中所有索引的统计信息,布尔类型,选填,默认值为 false
|
492
|
+
3.9. spec.exporterSpec.indicesSettings 表示是否查询集群中所有索引配置的统计信息,布尔类型,选填,默认值为 false
|
493
|
+
3.10. spec.exporterSpec.shards 表示是否查询集群中所有索引的统计信息,包括分片级别的统计信息,布尔类型,选填,默认值为 false。
|
494
|
+
3.11. spec.exporterSpec.snapshots 表示是否查询集群快照的统计信息,布尔类型,选填,默认值为 false
|
495
|
+
3.12. spec.exporterSpec.clusterSettings 表示是否查询集群配置的统计信息,布尔类型,选填,默认值为false
|
492
496
|
|
493
497
|
Input:
|
494
498
|
|
495
499
|
```
|
496
500
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
497
501
|
--InstanceId prom-1 \
|
498
|
-
--Kind
|
499
|
-
--Content {"name":"
|
502
|
+
--Kind es-exporter \
|
503
|
+
--Content {"name":"es-test","kind":"es-exporter","spec":{"instanceSpec":{"user":"root","password":"password","url":"http://127.0.0.1:8080","labels":{"labelKey":"labelValue","test":"test"}},"exporterSpec":{"all":true,"indices":true,"indicesSettings":true,"shards":true,"snapshots":true,"clusterSettings":true}}}
|
500
504
|
```
|
501
505
|
|
502
506
|
Output:
|
@@ -504,34 +508,32 @@ Output:
|
|
504
508
|
{
|
505
509
|
"Response": {
|
506
510
|
"Names": [
|
507
|
-
"
|
511
|
+
"es-test"
|
508
512
|
],
|
509
513
|
"RequestId": "xyz"
|
510
514
|
}
|
511
515
|
}
|
512
516
|
```
|
513
517
|
|
514
|
-
**Example 16:
|
518
|
+
**Example 16: s. 创建 免鉴权代理 集成**
|
515
519
|
|
516
|
-
安装
|
520
|
+
安装 免鉴权代理,可以免鉴权内网访问 Prometheus 原生 API。
|
521
|
+
创建后可以调用 DescribeExporterIntegrations 接口,通过 InstanceDesc 参数获取集成的内网 IP:Port 地址,该地址可以代替 Prometheus 实例地址,实现免鉴权访问。
|
517
522
|
参数说明:
|
518
523
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
519
|
-
2. Kind 参数固定为 `
|
524
|
+
2. Kind 参数固定为 `auth-proxy`,必填
|
520
525
|
3. Content 参数格式如示例。说明如下:
|
521
526
|
3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
|
522
|
-
3.2. kind 是集成类型,必填且这里固定为 `
|
523
|
-
3.3. spec.instanceSpec.
|
524
|
-
3.4. spec.instanceSpec.password 是 PostgreSQL 实例的密码,必填
|
525
|
-
3.5. spec.instanceSpec.address 是 PostgreSQL 实例的连接地址,必填
|
526
|
-
3.6. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
527
|
+
3.2. kind 是集成类型,必填且这里固定为 `auth-proxy`
|
528
|
+
3.3. spec.instanceSpec.enableSelfMonitor 表示是否采集自监控指标,选填,默认是 false。自监控指标是 auth_proxy_http_requests_total{result=~"success|error"},仅统计成功和失败的请求数量。
|
527
529
|
|
528
530
|
Input:
|
529
531
|
|
530
532
|
```
|
531
533
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
532
534
|
--InstanceId prom-1 \
|
533
|
-
--Kind
|
534
|
-
--Content {"name":"
|
535
|
+
--Kind auth-proxy \
|
536
|
+
--Content {"name":"auth-test","kind":"auth-proxy","spec":{"instanceSpec":{"enableSelfMonitor":true}}}
|
535
537
|
```
|
536
538
|
|
537
539
|
Output:
|
@@ -539,33 +541,29 @@ Output:
|
|
539
541
|
{
|
540
542
|
"Response": {
|
541
543
|
"Names": [
|
542
|
-
"
|
544
|
+
"auth-test"
|
543
545
|
],
|
544
546
|
"RequestId": "xyz"
|
545
547
|
}
|
546
548
|
}
|
547
549
|
```
|
548
550
|
|
549
|
-
**Example 17:
|
551
|
+
**Example 17: c. 创建 CVM 云服务器 集成**
|
550
552
|
|
551
|
-
安装 Redis Exporter。
|
552
553
|
参数说明:
|
553
554
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
554
|
-
2. Kind 参数固定为 `
|
555
|
+
2. Kind 参数固定为 `cvm-http-sd-exporter`,必填
|
555
556
|
3. Content 参数格式如示例。说明如下:
|
556
|
-
3.1.
|
557
|
-
3.2.
|
558
|
-
3.3. spec.instanceSpec.address 是 Redis 实例的连接地址,必填
|
559
|
-
3.4. spec.instanceSpec.password 是 Redis 实例的密码,必填
|
560
|
-
3.5. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填
|
557
|
+
3.1. kind 是集成类型,必填且这里固定为 `cvm-http-sd-exporter`
|
558
|
+
3.2. spec.job 是抓取配置,必填,yaml格式,具体配置可参考[抓取配置说明](https://cloud.tencent.com/document/product/1416/55995#%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%9C%8D%E5%8A%A1%E5%8F%91%E7%8E%B0%E9%85%8D%E7%BD%AE)
|
561
559
|
|
562
560
|
Input:
|
563
561
|
|
564
562
|
```
|
565
563
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
566
564
|
--InstanceId prom-1 \
|
567
|
-
--Kind
|
568
|
-
--Content {"
|
565
|
+
--Kind cvm-http-sd-exporter \
|
566
|
+
--Content {"kind":"cvm-http-sd-exporter","spec":{"job":"job_name: example-job-name\nmetrics_path: /metrics\ncvm_sd_configs:\n- region: ap-singapore\n ports:\n - 9100\n filters: \n - name: tag:示例标签键\n values: \n - 示例标签值\nrelabel_configs: \n- source_labels: [__meta_cvm_instance_state]\n regex: RUNNING\n action: keep\n- regex: __meta_cvm_tag_(.*)\n replacement: $1\n action: labelmap\n- source_labels: [__meta_cvm_region]\n target_label: region\n action: replace"}}
|
569
567
|
```
|
570
568
|
|
571
569
|
Output:
|
@@ -573,33 +571,30 @@ Output:
|
|
573
571
|
{
|
574
572
|
"Response": {
|
575
573
|
"Names": [
|
576
|
-
"
|
574
|
+
"example-job-name"
|
577
575
|
],
|
578
576
|
"RequestId": "xyz"
|
579
577
|
}
|
580
578
|
}
|
581
579
|
```
|
582
580
|
|
583
|
-
**Example 18:
|
581
|
+
**Example 18: b. 创建 CVM Node Exporter 集成**
|
584
582
|
|
585
|
-
|
586
|
-
创建后可以调用 DescribeExporterIntegrations 接口,通过 InstanceDesc 参数获取集成的内网 IP:Port 地址。
|
583
|
+
该集成要保证 CVM 实例与 Prometheus 实例内网相通(比如同 VPC 下),且 CVM 实例安装了[自动化助手](https://cloud.tencent.com/document/product/1340/51945)。
|
587
584
|
参数说明:
|
588
585
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
589
|
-
2. Kind 参数固定为 `
|
586
|
+
2. Kind 参数固定为 `cvm-node-exporter-sd`,必填
|
590
587
|
3. Content 参数格式如示例。说明如下:
|
591
|
-
3.1.
|
592
|
-
3.2.
|
593
|
-
3.3. spec.instanceSpec.isStrictMatch 表示是否严格匹配 mappingConfig,选填,默认是 false
|
594
|
-
3.4. spec.instanceSpec.mappingConfig 是映射配置,可以定义 Prometheus 指标的名字和 label。具体可参考[官方文档](https://github.com/prometheus/graphite_exporter#yaml-config)
|
588
|
+
3.1. kind 是集成类型,必填且这里固定为 `cvm-node-exporter-sd
|
589
|
+
3.2. spec.job 是抓取配置,必填,yaml格式,可参考输入示例,其中 instance_ids 可填写多个 CVM 实例 ID
|
595
590
|
|
596
591
|
Input:
|
597
592
|
|
598
593
|
```
|
599
594
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
600
595
|
--InstanceId prom-1 \
|
601
|
-
--Kind
|
602
|
-
--Content {"
|
596
|
+
--Kind cvm-node-exporter-sd \
|
597
|
+
--Content {"kind":"cvm-node-exporter-sd","spec":{"job":"job_name: node-test\ninstance:\n - region: ap-chengdu\n instance_ids:\n - ins-a\n - ins-b\n"}}
|
603
598
|
```
|
604
599
|
|
605
600
|
Output:
|
@@ -607,32 +602,37 @@ Output:
|
|
607
602
|
{
|
608
603
|
"Response": {
|
609
604
|
"Names": [
|
610
|
-
"
|
605
|
+
"node-test"
|
611
606
|
],
|
612
607
|
"RequestId": "xyz"
|
613
608
|
}
|
614
609
|
}
|
615
610
|
```
|
616
611
|
|
617
|
-
**Example 19:
|
612
|
+
**Example 19: e. 创建 Ingress NGINX Controller 集成**
|
618
613
|
|
619
|
-
|
620
|
-
创建后可以调用 DescribeExporterIntegrations 接口,通过 InstanceDesc 参数获取集成的内网 IP:Port 地址,该地址可以代替 Prometheus 实例地址,实现免鉴权访问。
|
614
|
+
采集关联集群中的 Ingress NGINX Controller。
|
621
615
|
参数说明:
|
622
616
|
1. InstanceId 是 Prometheus 实例 ID,必填
|
623
|
-
2. Kind 参数固定为 `
|
624
|
-
3.
|
625
|
-
|
626
|
-
|
627
|
-
|
617
|
+
2. Kind 参数固定为 `nginx-ingress`,必填
|
618
|
+
3. ClusterId 是与 Prometheus 实例关联且部署了 Ingress NGINX Controller 的集群 ID,必填
|
619
|
+
4. KubeType 是 ClusterId 对应的集群类型,必填。1 表示 tke 集群,2 或 3 表示 eks 集群
|
620
|
+
5. Content 参数格式如示例。说明如下:
|
621
|
+
5.1. kind 是集成类型,必填且这里固定为 `nginx-ingress`
|
622
|
+
5.2. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
|
623
|
+
5.3. spec.instanceSpec.namespace 是 Ingress NGINX Controller 所在的 namespace,必填
|
624
|
+
5.4. spec.instanceSpec.name 是 Ingress NGINX Controller 的名字,必填。取 Deployment 或 DaemonSet 的名字
|
625
|
+
5.5. spec.instanceSpec.workload 是 Ingress NGINX Controller 的集群对象类型,必填,比如 deployment 或者 daemonset
|
628
626
|
|
629
627
|
Input:
|
630
628
|
|
631
629
|
```
|
632
630
|
tccli monitor CreateExporterIntegration --cli-unfold-argument \
|
633
631
|
--InstanceId prom-1 \
|
634
|
-
--
|
635
|
-
--
|
632
|
+
--ClusterId cls-test \
|
633
|
+
--KubeType 1 \
|
634
|
+
--Kind nginx-ingress \
|
635
|
+
--Content {"kind":"nginx-ingress","name":"ingress-test","spec":{"instanceSpec":{"namespace":"namespace","name":"controller-name","workLoad":"deployment"}}}
|
636
636
|
```
|
637
637
|
|
638
638
|
Output:
|
@@ -640,7 +640,7 @@ Output:
|
|
640
640
|
{
|
641
641
|
"Response": {
|
642
642
|
"Names": [
|
643
|
-
"
|
643
|
+
"ingress-test"
|
644
644
|
],
|
645
645
|
"RequestId": "xyz"
|
646
646
|
}
|