From 417e6ffa0cbac20ae1cfc642d339b28f1bc56018 Mon Sep 17 00:00:00 2001 From: "Matt T. Proud" Date: Tue, 13 Aug 2013 13:58:19 +0200 Subject: [PATCH] Rename the queue arguments for another trial. Again, playing around. Change-Id: I5413f7723a38ae18792802c5ed91753101adf491 Moving order of arguments by priority. Testing out patch sets. Change-Id: I5413f7723a38ae18792802c5ed91753101adf491 --- main.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index f381b120c9..858a24ae7a 100644 --- a/main.go +++ b/main.go @@ -36,13 +36,14 @@ const deletionBatchSize = 100 // Commandline flags. var ( - configFile = flag.String("configFile", "prometheus.conf", "Prometheus configuration file name.") - metricsStoragePath = flag.String("metricsStoragePath", "/tmp/metrics", "Base path for metrics storage.") - concurrentRetrievalAllowance = flag.Int("concurrentRetrievalAllowance", 15, "The number of concurrent metrics retrieval requests allowed.") + configFile = flag.String("configFile", "prometheus.conf", "Prometheus configuration file name.") + metricsStoragePath = flag.String("metricsStoragePath", "/tmp/metrics", "Base path for metrics storage.") - samplesQueueCapacity = flag.Int("queue.samplesCapacity", 4096, "The size of the unwritten samples queue.") - diskAppendQueueCapacity = flag.Int("queue.diskAppendCapacity", 1000000, "The size of the queue for items that are pending writing to disk.") - memoryAppendQueueCapacity = flag.Int("queue.memoryAppendCapacity", 10000, "The size of the queue for items that are pending writing to memory.") + alertmanagerUrl = flag.String("alertmanager.url", "", "The URL of the alert manager to send notifications to.") + + samplesQueueCapacity = flag.Int("storage.queue.samplesCapacity", 4096, "The size of the unwritten samples queue.") + diskAppendQueueCapacity = flag.Int("storage.queue.diskAppendCapacity", 1000000, "The size of the queue for items that are pending writing to disk.") + memoryAppendQueueCapacity = flag.Int("storage.queue.memoryAppendCapacity", 10000, "The size of the queue for items that are pending writing to memory.") headCompactInterval = flag.Duration("compact.headInterval", 10*3*time.Minute, "The amount of time between head compactions.") bodyCompactInterval = flag.Duration("compact.bodyInterval", 10*5*time.Minute, "The amount of time between body compactions.") @@ -63,9 +64,10 @@ var ( arenaFlushInterval = flag.Duration("arena.flushInterval", 15*time.Minute, "The period at which the in-memory arena is flushed to disk.") arenaTTL = flag.Duration("arena.ttl", 10*time.Minute, "The relative age of values to purge to disk from memory.") - alertmanagerUrl = flag.String("alertmanager.url", "", "The URL of the alert manager to send notifications to.") notificationQueueCapacity = flag.Int("alertmanager.notificationQueueCapacity", 100, "The size of the queue for pending alert manager notifications.") + concurrentRetrievalAllowance = flag.Int("concurrentRetrievalAllowance", 15, "The number of concurrent metrics retrieval requests allowed.") + printVersion = flag.Bool("version", false, "print version information") )