diff options
Diffstat (limited to 'plugins/metrics/tests/plugin1.go')
-rw-r--r-- | plugins/metrics/tests/plugin1.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/metrics/tests/plugin1.go b/plugins/metrics/tests/plugin1.go index fb2a2235..b48c415d 100644 --- a/plugins/metrics/tests/plugin1.go +++ b/plugins/metrics/tests/plugin1.go @@ -35,5 +35,12 @@ func (p1 *Plugin1) MetricsCollector() []prometheus.Collector { }) collector.Set(100) - return []prometheus.Collector{collector} + + collector2 := prometheus.NewGauge(prometheus.GaugeOpts{ + Name: "my_gauge2", + Help: "My gauge2 value", + }) + + collector2.Set(100) + return []prometheus.Collector{collector, collector2} } |