summaryrefslogtreecommitdiffstats
path: root/modules/metrics
diff options
context:
space:
mode:
Diffstat (limited to 'modules/metrics')
-rwxr-xr-xmodules/metrics/collector.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/metrics/collector.go b/modules/metrics/collector.go
index 069633a565..dcd80b05a9 100755
--- a/modules/metrics/collector.go
+++ b/modules/metrics/collector.go
@@ -5,7 +5,7 @@
package metrics
import (
- "code.gitea.io/gitea/models"
+ activities_model "code.gitea.io/gitea/models/activities"
"github.com/prometheus/client_golang/prometheus"
)
@@ -225,7 +225,7 @@ func (c Collector) Describe(ch chan<- *prometheus.Desc) {
// Collect returns the metrics with values
func (c Collector) Collect(ch chan<- prometheus.Metric) {
- stats := models.GetStatistic()
+ stats := activities_model.GetStatistic()
ch <- prometheus.MustNewConstMetric(
c.Accesses,