1
0
forked from MTSR/mapserver

prometheus init

This commit is contained in:
NatureFreshMilk 2019-02-20 13:25:04 +01:00
parent 645a4be524
commit 376f746380
2 changed files with 1 additions and 3 deletions

View File

@ -6,8 +6,6 @@ import (
) )
func Job(ctx *app.App) { func Job(ctx *app.App) {
initMetrics()
if ctx.Settings.GetBool(settings.SETTING_INITIAL_RUN, true) { if ctx.Settings.GetBool(settings.SETTING_INITIAL_RUN, true) {
initialRender(ctx) initialRender(ctx)
} }

View File

@ -13,6 +13,6 @@ var (
) )
) )
func initMetrics() { func init() {
prometheus.MustRegister(totalRenderedMapblocks) prometheus.MustRegister(totalRenderedMapblocks)
} }