Skip to content

Commit b392b6f

Browse files
committed
add location to azurerm_securitycenter_compliance
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 68532d6 commit b392b6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

metrics_azurerm_security.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func (m *MetricsCollectorAzureRmSecurity) Setup(collector *CollectorGeneral) {
3232
},
3333
[]string{
3434
"subscriptionID",
35+
"location",
3536
"assessmentType",
3637
},
3738
)
@@ -86,6 +87,7 @@ func (m *MetricsCollectorAzureRmSecurity) collectAzureSecurityCompliance(ctx con
8687
for _, result := range *complienceResult.AssessmentResult {
8788
infoLabels := prometheus.Labels{
8889
"subscriptionID": to.String(subscription.SubscriptionID),
90+
"location" : location,
8991
"assessmentType": to.String(result.SegmentType),
9092
}
9193
infoMetric.Add(infoLabels, to.Float64(result.Percentage))

0 commit comments

Comments
 (0)