@@ -68,7 +68,7 @@ func (m *AzureInsightMetrics) CreatePrometheusMetricsGauge(metricName string) (g
6868 Help : "Azure monitor insight metics" ,
6969 }, []string {
7070 "resourceID" ,
71- "type " ,
71+ "metric " ,
7272 "unit" ,
7373 "aggregation" ,
7474 })
@@ -105,7 +105,7 @@ func (r *AzureInsightMetricsResult) SetGauge(gauge *prometheus.GaugeVec, setting
105105 if timeseriesData .Total != nil {
106106 gauge .With (prometheus.Labels {
107107 "resourceID" : * r .ResourceID ,
108- "type" : * metric .Name .Value ,
108+ "metric" : * metric .Name .Value ,
109109 "unit" : string (metric .Unit ),
110110 "aggregation" : "total" ,
111111 }).Set (* timeseriesData .Total )
@@ -114,7 +114,7 @@ func (r *AzureInsightMetricsResult) SetGauge(gauge *prometheus.GaugeVec, setting
114114 if timeseriesData .Minimum != nil {
115115 gauge .With (prometheus.Labels {
116116 "resourceID" : * r .ResourceID ,
117- "type" : * metric .Name .Value ,
117+ "metric" : * metric .Name .Value ,
118118 "unit" : string (metric .Unit ),
119119 "aggregation" : "minimum" ,
120120 }).Set (* timeseriesData .Minimum )
@@ -123,7 +123,7 @@ func (r *AzureInsightMetricsResult) SetGauge(gauge *prometheus.GaugeVec, setting
123123 if timeseriesData .Maximum != nil {
124124 gauge .With (prometheus.Labels {
125125 "resourceID" : * r .ResourceID ,
126- "type" : * metric .Name .Value ,
126+ "metric" : * metric .Name .Value ,
127127 "unit" : string (metric .Unit ),
128128 "aggregation" : "maximum" ,
129129 }).Set (* timeseriesData .Maximum )
@@ -132,7 +132,7 @@ func (r *AzureInsightMetricsResult) SetGauge(gauge *prometheus.GaugeVec, setting
132132 if timeseriesData .Average != nil {
133133 gauge .With (prometheus.Labels {
134134 "resourceID" : * r .ResourceID ,
135- "type" : * metric .Name .Value ,
135+ "metric" : * metric .Name .Value ,
136136 "unit" : string (metric .Unit ),
137137 "aggregation" : "average" ,
138138 }).Set (* timeseriesData .Average )
@@ -141,7 +141,7 @@ func (r *AzureInsightMetricsResult) SetGauge(gauge *prometheus.GaugeVec, setting
141141 if timeseriesData .Count != nil {
142142 gauge .With (prometheus.Labels {
143143 "resourceID" : * r .ResourceID ,
144- "type" : * metric .Name .Value ,
144+ "metric" : * metric .Name .Value ,
145145 "unit" : string (metric .Unit ),
146146 "aggregation" : "count" ,
147147 }).Set (* timeseriesData .Count )
0 commit comments