mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-17 06:42:52 +02:00
drop deprecated validation setting
This commit is contained in:
parent
734c2da3ac
commit
6e64232f42
@ -11,15 +11,10 @@ import (
|
|||||||
"code.gitea.io/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
|
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
"github.com/prometheus/common/model"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const namespace = "gitea_"
|
const namespace = "gitea_"
|
||||||
|
|
||||||
func init() {
|
|
||||||
model.NameValidationScheme = model.UTF8Validation
|
|
||||||
}
|
|
||||||
|
|
||||||
// Collector implements the prometheus.Collector interface and
|
// Collector implements the prometheus.Collector interface and
|
||||||
// exposes gitea metrics for prometheus
|
// exposes gitea metrics for prometheus
|
||||||
type Collector struct {
|
type Collector struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user