From 376f7463802823262a03bcd581033f9df5a03347 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Wed, 20 Feb 2019 13:25:04 +0100 Subject: [PATCH] prometheus init --- server/tilerendererjob/job.go | 2 -- server/tilerendererjob/metrics.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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) }