forked from MTSR/mapserver
prometheus init
This commit is contained in:
parent
645a4be524
commit
376f746380
@ -6,8 +6,6 @@ import (
|
||||
)
|
||||
|
||||
func Job(ctx *app.App) {
|
||||
initMetrics()
|
||||
|
||||
if ctx.Settings.GetBool(settings.SETTING_INITIAL_RUN, true) {
|
||||
initialRender(ctx)
|
||||
}
|
||||
|
@ -13,6 +13,6 @@ var (
|
||||
)
|
||||
)
|
||||
|
||||
func initMetrics() {
|
||||
func init() {
|
||||
prometheus.MustRegister(totalRenderedMapblocks)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user