@@ -90,9 +90,9 @@ func NewSLM(logger log.Logger, client *http.Client, url *url.URL) *SLM {
90
90
}),
91
91
slmMetrics : []* slmMetric {
92
92
{
93
- Type : prometheus .GaugeValue ,
93
+ Type : prometheus .CounterValue ,
94
94
Desc : prometheus .NewDesc (
95
- prometheus .BuildFQName (namespace , "slm_stats" , "retention_runs " ),
95
+ prometheus .BuildFQName (namespace , "slm_stats" , "retention_runs_total " ),
96
96
"Total retention runs" ,
97
97
nil , nil ,
98
98
),
@@ -101,9 +101,9 @@ func NewSLM(logger log.Logger, client *http.Client, url *url.URL) *SLM {
101
101
},
102
102
},
103
103
{
104
- Type : prometheus .GaugeValue ,
104
+ Type : prometheus .CounterValue ,
105
105
Desc : prometheus .NewDesc (
106
- prometheus .BuildFQName (namespace , "slm_stats" , "retention_failed " ),
106
+ prometheus .BuildFQName (namespace , "slm_stats" , "retention_failed_total " ),
107
107
"Total failed retention runs" ,
108
108
nil , nil ,
109
109
),
@@ -112,9 +112,9 @@ func NewSLM(logger log.Logger, client *http.Client, url *url.URL) *SLM {
112
112
},
113
113
},
114
114
{
115
- Type : prometheus .GaugeValue ,
115
+ Type : prometheus .CounterValue ,
116
116
Desc : prometheus .NewDesc (
117
- prometheus .BuildFQName (namespace , "slm_stats" , "retention_timed_out " ),
117
+ prometheus .BuildFQName (namespace , "slm_stats" , "retention_timed_out_total " ),
118
118
"Total timed out retention runs" ,
119
119
nil , nil ,
120
120
),
@@ -134,9 +134,9 @@ func NewSLM(logger log.Logger, client *http.Client, url *url.URL) *SLM {
134
134
},
135
135
},
136
136
{
137
- Type : prometheus .GaugeValue ,
137
+ Type : prometheus .CounterValue ,
138
138
Desc : prometheus .NewDesc (
139
- prometheus .BuildFQName (namespace , "slm_stats" , "total_snapshots_taken " ),
139
+ prometheus .BuildFQName (namespace , "slm_stats" , "total_snapshots_taken_total " ),
140
140
"Total snapshots taken" ,
141
141
nil , nil ,
142
142
),
@@ -145,9 +145,9 @@ func NewSLM(logger log.Logger, client *http.Client, url *url.URL) *SLM {
145
145
},
146
146
},
147
147
{
148
- Type : prometheus .GaugeValue ,
148
+ Type : prometheus .CounterValue ,
149
149
Desc : prometheus .NewDesc (
150
- prometheus .BuildFQName (namespace , "slm_stats" , "total_snapshots_failed " ),
150
+ prometheus .BuildFQName (namespace , "slm_stats" , "total_snapshots_failed_total " ),
151
151
"Total snapshots failed" ,
152
152
nil , nil ,
153
153
),
@@ -156,9 +156,9 @@ func NewSLM(logger log.Logger, client *http.Client, url *url.URL) *SLM {
156
156
},
157
157
},
158
158
{
159
- Type : prometheus .GaugeValue ,
159
+ Type : prometheus .CounterValue ,
160
160
Desc : prometheus .NewDesc (
161
- prometheus .BuildFQName (namespace , "slm_stats" , "total_snapshots_deleted " ),
161
+ prometheus .BuildFQName (namespace , "slm_stats" , "total_snapshots_deleted_total " ),
162
162
"Total snapshots deleted" ,
163
163
nil , nil ,
164
164
),
@@ -167,9 +167,9 @@ func NewSLM(logger log.Logger, client *http.Client, url *url.URL) *SLM {
167
167
},
168
168
},
169
169
{
170
- Type : prometheus .GaugeValue ,
170
+ Type : prometheus .CounterValue ,
171
171
Desc : prometheus .NewDesc (
172
- prometheus .BuildFQName (namespace , "slm_stats" , "total_snapshot_deletion_failures " ),
172
+ prometheus .BuildFQName (namespace , "slm_stats" , "total_snapshot_deletion_failures_total " ),
173
173
"Total snapshot deletion failures" ,
174
174
nil , nil ,
175
175
),
@@ -180,9 +180,9 @@ func NewSLM(logger log.Logger, client *http.Client, url *url.URL) *SLM {
180
180
},
181
181
policyMetrics : []* policyMetric {
182
182
{
183
- Type : prometheus .GaugeValue ,
183
+ Type : prometheus .CounterValue ,
184
184
Desc : prometheus .NewDesc (
185
- prometheus .BuildFQName (namespace , "slm_stats" , "snapshots_taken " ),
185
+ prometheus .BuildFQName (namespace , "slm_stats" , "snapshots_taken_total " ),
186
186
"Total snapshots taken" ,
187
187
defaultPolicyLabels , nil ,
188
188
),
@@ -192,9 +192,9 @@ func NewSLM(logger log.Logger, client *http.Client, url *url.URL) *SLM {
192
192
Labels : defaultPolicyLabelValues ,
193
193
},
194
194
{
195
- Type : prometheus .GaugeValue ,
195
+ Type : prometheus .CounterValue ,
196
196
Desc : prometheus .NewDesc (
197
- prometheus .BuildFQName (namespace , "slm_stats" , "snapshots_failed " ),
197
+ prometheus .BuildFQName (namespace , "slm_stats" , "snapshots_failed_total " ),
198
198
"Total snapshots failed" ,
199
199
defaultPolicyLabels , nil ,
200
200
),
@@ -204,9 +204,9 @@ func NewSLM(logger log.Logger, client *http.Client, url *url.URL) *SLM {
204
204
Labels : defaultPolicyLabelValues ,
205
205
},
206
206
{
207
- Type : prometheus .GaugeValue ,
207
+ Type : prometheus .CounterValue ,
208
208
Desc : prometheus .NewDesc (
209
- prometheus .BuildFQName (namespace , "slm_stats" , "snapshots_deleted " ),
209
+ prometheus .BuildFQName (namespace , "slm_stats" , "snapshots_deleted_total " ),
210
210
"Total snapshots deleted" ,
211
211
defaultPolicyLabels , nil ,
212
212
),
@@ -216,9 +216,9 @@ func NewSLM(logger log.Logger, client *http.Client, url *url.URL) *SLM {
216
216
Labels : defaultPolicyLabelValues ,
217
217
},
218
218
{
219
- Type : prometheus .GaugeValue ,
219
+ Type : prometheus .CounterValue ,
220
220
Desc : prometheus .NewDesc (
221
- prometheus .BuildFQName (namespace , "slm_stats" , "snapshot_deletion_failures " ),
221
+ prometheus .BuildFQName (namespace , "slm_stats" , "snapshot_deletion_failures_total " ),
222
222
"Total snapshot deletion failures" ,
223
223
defaultPolicyLabels , nil ,
224
224
),
0 commit comments