|
|
@ -37,6 +37,8 @@ import ( |
|
|
|
|
|
|
|
|
|
|
|
const ( |
|
|
|
const ( |
|
|
|
azureLabel = model.MetaLabelPrefix + "azure_" |
|
|
|
azureLabel = model.MetaLabelPrefix + "azure_" |
|
|
|
|
|
|
|
azureLabelSubscriptionID = azureLabel + "subscription_id" |
|
|
|
|
|
|
|
azureLabelTenantID = azureLabel + "tenant_id" |
|
|
|
azureLabelMachineID = azureLabel + "machine_id" |
|
|
|
azureLabelMachineID = azureLabel + "machine_id" |
|
|
|
azureLabelMachineResourceGroup = azureLabel + "machine_resource_group" |
|
|
|
azureLabelMachineResourceGroup = azureLabel + "machine_resource_group" |
|
|
|
azureLabelMachineName = azureLabel + "machine_name" |
|
|
|
azureLabelMachineName = azureLabel + "machine_name" |
|
|
@ -332,6 +334,8 @@ func (d *Discovery) refresh() (tg *targetgroup.Group, err error) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
labels := model.LabelSet{ |
|
|
|
labels := model.LabelSet{ |
|
|
|
|
|
|
|
azureLabelSubscriptionID: model.LabelValue(d.cfg.SubscriptionID), |
|
|
|
|
|
|
|
azureLabelTenantID: model.LabelValue(d.cfg.TenantID), |
|
|
|
azureLabelMachineID: model.LabelValue(vm.ID), |
|
|
|
azureLabelMachineID: model.LabelValue(vm.ID), |
|
|
|
azureLabelMachineName: model.LabelValue(vm.Name), |
|
|
|
azureLabelMachineName: model.LabelValue(vm.Name), |
|
|
|
azureLabelMachineOSType: model.LabelValue(vm.OsType), |
|
|
|
azureLabelMachineOSType: model.LabelValue(vm.OsType), |
|
|
|