Skip to content

bittopaz/prometheus-alicloud-sd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prometheus-alicloud-sd

Set ALICLOUD_SD_TAGS

export ALICLOUD_SD_TAGS=Service,Env,Loc

How to build

make bin

InstanceAttributesType example

{InstanceId:i-uf65iitdl0f5e68tgkn8 InstanceName:burlak-static-web-1.sv.beta.alsh.xingbianli.com Description: ImageId:centos_7_03_64_40G_alibase_20170710.vhd RegionId:cn-shanghai ZoneId:cn-shanghai-b CPU:1 Memory:2048 ClusterId: InstanceType:ecs.n4.small InstanceTypeFamily:ecs.n4 HostName:iZuf65iitdl0f5e68tgkn8Z SerialNumber:da6aeafd-bc09-4871-8c8b-ea5bbb2e9260 Status:Running OperationLocks:{LockReason:[]} SecurityGroupIds:{SecurityGroupId:[sg-uf6bpoj0ndoobr593r0u]} PublicIpAddress:{IpAddress:[]} InnerIpAddress:{IpAddress:[]} InstanceNetworkType:vpc InternetMaxBandwidthIn:-1 InternetMaxBandwidthOut:0 InternetChargeType: CreationTime:2017-08-22T03:48:00Z VpcAttributes:{VpcId:vpc-uf6otm5ueqtuj6o9jplu9 VSwitchId:vsw-uf6ofn2800ildijok9i79 PrivateIpAddress:{IpAddress:[172.19.23.115]} NatIpAddress:} EipAddress:{AllocationId: IpAddress: Bandwidth:0 InternetChargeType:} IoOptimized:true InstanceChargeType:PostPaid ExpiredTime:2999-09-08T16:00:00Z Tags:{Tag:[{TagKey:Env TagValue:beta}]} SpotStrategy:NoSpot SpotPriceLimit:0 KeyPairName:beta_default_20170726}