File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ func NewCollector() Collector {
184184 Users : prometheus .NewDesc (
185185 namespace + "users" ,
186186 "Number of Users" ,
187- []string {"is_active " }, nil ,
187+ []string {"state " }, nil ,
188188 ),
189189 Watches : prometheus .NewDesc (
190190 namespace + "watches" ,
@@ -374,13 +374,13 @@ func (c Collector) Collect(ch chan<- prometheus.Metric) {
374374 c .Users ,
375375 prometheus .GaugeValue ,
376376 float64 (stats .Counter .UsersActive ),
377- "true " , // is_active label
377+ "active " , // state label
378378 )
379379 ch <- prometheus .MustNewConstMetric (
380380 c .Users ,
381381 prometheus .GaugeValue ,
382382 float64 (stats .Counter .UsersNotActive ),
383- "false " , // is_active label
383+ "inactive " , // state label
384384 )
385385 ch <- prometheus .MustNewConstMetric (
386386 c .Watches ,
You can’t perform that action at this time.
0 commit comments