Add service stats page based on Prometheus

This commit is contained in:
cuigh
2018-03-09 19:00:03 +08:00
parent 5b60a024c5
commit 6fff495cda
23 changed files with 20108 additions and 8 deletions

View File

@@ -43,7 +43,10 @@ type Setting struct {
Name string `bson:"name" json:"name,omitempty"` // Asia/Shanghai
Offset int32 `bson:"offset" json:"offset,omitempty"` // seconds east of UTC
} `bson:"tz" json:"tz,omitempty"`
Language string `bson:"lang" json:"lang,omitempty"`
Language string `bson:"lang" json:"lang,omitempty"`
Metrics struct {
Prometheus string `bson:"prometheus" json:"prometheus"`
} `bson:"metrics" json:"metrics"`
UpdatedBy string `bson:"updated_by" json:"updated_by,omitempty"`
UpdatedAt time.Time `bson:"updated_at" json:"updated_at,omitempty"`
}