diff --git a/server/tilerendererjob/job.go b/server/tilerendererjob/job.go index b39d4f0..6c4e591 100644 --- a/server/tilerendererjob/job.go +++ b/server/tilerendererjob/job.go @@ -6,8 +6,6 @@ import ( ) func Job(ctx *app.App) { - initMetrics() - if ctx.Settings.GetBool(settings.SETTING_INITIAL_RUN, true) { initialRender(ctx) } diff --git a/server/tilerendererjob/metrics.go b/server/tilerendererjob/metrics.go index 01e049f..fbed54b 100644 --- a/server/tilerendererjob/metrics.go +++ b/server/tilerendererjob/metrics.go @@ -13,6 +13,6 @@ var ( ) ) -func initMetrics() { +func init() { prometheus.MustRegister(totalRenderedMapblocks) }