From 8cc85bdca9f208c23c5f54e821634749323100b4 Mon Sep 17 00:00:00 2001 From: withgod Date: Fri, 6 Jun 2014 18:48:04 +0000 Subject: [PATCH] added apcu conf --- apc_status/conf.d/apc_status.pyconf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/apc_status/conf.d/apc_status.pyconf b/apc_status/conf.d/apc_status.pyconf index d3e8413d..11dc9c12 100644 --- a/apc_status/conf.d/apc_status.pyconf +++ b/apc_status/conf.d/apc_status.pyconf @@ -19,6 +19,12 @@ collection_group { collect_every = 30 time_threshold = 90 + /* apcu can't get some variables. + try regexp format(require pcre) + metric { + name_match = "apc_(.+)" + } + */ metric { name = "apc_mem_size" title = "Total Memory" @@ -59,6 +65,18 @@ collection_group { title = "Number of Cache Deletes" value_threshold = 0 } + /* if apcu using. try num_expunges nexpunges. https://github.com/krakjoe/apcu/issues/41 (fixed but not merge release branch) + metric { + name = "apc_num_expunges" + title = "Number of Cache Deletes" + value_threshold = 0 + } + */ + metric { + name = "apc_expunges" + title = "Number of Cache Deletes" + value_threshold = 0 + } metric { name = "apc_num_entries" title = "Cached Files"