$(top_builddir)/src/lib-program-client/libprogram_client.la \
$(top_builddir)/src/lib-master/libmaster.la \
$(top_builddir)/src/lib-settings/libsettings.la \
- $(top_builddir)/src/lib-stats/libstats.la \
+ $(top_builddir)/src/lib-old-stats/libold_stats.la \
$(top_builddir)/src/lib-http/libhttp.la \
$(top_builddir)/src/lib-fs/libfs.la \
$(top_builddir)/src/lib-dict/libdict.la \
src/lib-settings/Makefile
src/lib-smtp/Makefile
src/lib-ssl-iostream/Makefile
-src/lib-stats/Makefile
+src/lib-old-stats/Makefile
src/lib-test/Makefile
src/lib-storage/Makefile
src/lib-storage/list/Makefile
src/replication/Makefile
src/replication/aggregator/Makefile
src/replication/replicator/Makefile
-src/stats/Makefile
+src/old-stats/Makefile
src/util/Makefile
src/plugins/Makefile
src/plugins/acl/Makefile
src/plugins/imap-quota/Makefile
src/plugins/replication/Makefile
src/plugins/snarf/Makefile
-src/plugins/stats/Makefile
-src/plugins/imap-stats/Makefile
+src/plugins/old-stats/Makefile
+src/plugins/imap-old-stats/Makefile
src/plugins/trash/Makefile
src/plugins/virtual/Makefile
src/plugins/welcome/Makefile
lib-dns \
lib-dict \
lib-sasl \
- lib-stats \
+ lib-old-stats \
lib-http \
lib-fs \
lib-mail \
replication \
util \
doveadm \
- stats \
+ old-stats \
plugins
-I$(top_srcdir)/src/lib-http \
-I$(top_srcdir)/src/lib-sql \
-I$(top_srcdir)/src/lib-settings \
- -I$(top_srcdir)/src/lib-stats \
+ -I$(top_srcdir)/src/lib-old-stats \
-I$(top_srcdir)/src/lib-ntlm \
-I$(top_srcdir)/src/lib-otp \
-I$(top_srcdir)/src/lib-master \
#include "auth-request.h"
#include "auth-request-stats.h"
-#define USER_STATS_SOCKET_NAME "stats-user"
+#define USER_STATS_SOCKET_NAME "old-stats-user"
static struct stats_connection *auth_stats_conn = NULL;
static struct stats_item *auth_stats_item;
doveadm-proxy.c \
doveadm-replicator.c \
doveadm-sis.c \
- doveadm-stats.c \
+ doveadm-oldstats.c \
doveadm-who.c
doveadm_common_mail_cmds = \
&doveadm_cmd_process_status_ver2,
&doveadm_cmd_stop_ver2,
&doveadm_cmd_reload_ver2,
- &doveadm_cmd_stats_dump_ver2,
- &doveadm_cmd_stats_reset_ver2,
+ &doveadm_cmd_oldstats_dump_ver2,
+ &doveadm_cmd_oldstats_reset_ver2,
&doveadm_cmd_penalty_ver2,
&doveadm_cmd_kick_ver2,
&doveadm_cmd_who_ver2
extern struct doveadm_cmd_ver2 doveadm_cmd_process_status_ver2;
extern struct doveadm_cmd_ver2 doveadm_cmd_stop_ver2;
extern struct doveadm_cmd_ver2 doveadm_cmd_reload_ver2;
-extern struct doveadm_cmd_ver2 doveadm_cmd_stats_reset_ver2;
-extern struct doveadm_cmd_ver2 doveadm_cmd_stats_dump_ver2;
-extern struct doveadm_cmd_ver2 doveadm_cmd_stats_top_ver2;
+extern struct doveadm_cmd_ver2 doveadm_cmd_oldstats_reset_ver2;
+extern struct doveadm_cmd_ver2 doveadm_cmd_oldstats_dump_ver2;
+extern struct doveadm_cmd_ver2 doveadm_cmd_oldstats_top_ver2;
extern struct doveadm_cmd_ver2 doveadm_cmd_penalty_ver2;
extern struct doveadm_cmd_ver2 doveadm_cmd_kick_ver2;
extern struct doveadm_cmd_ver2 doveadm_cmd_who_ver2;
const char *args[3] = {0};
if (!doveadm_cmd_param_str(cctx, "socket-path", &path))
- path = t_strconcat(doveadm_settings->base_dir, "/stats", NULL);
+ path = t_strconcat(doveadm_settings->base_dir, "/old-stats", NULL);
if (!doveadm_cmd_param_str(cctx, "type", &args[0])) {
i_error("Missing type parameter");
const char *path, *sort_type;
int c;
- path = t_strconcat(doveadm_settings->base_dir, "/stats", NULL);
+ path = t_strconcat(doveadm_settings->base_dir, "/old-stats", NULL);
while ((c = getopt(argc, argv, "bs:")) > 0) {
switch (c) {
path = optarg;
break;
default:
- help_ver2(&doveadm_cmd_stats_top_ver2);
+ help_ver2(&doveadm_cmd_oldstats_top_ver2);
}
}
argv += optind - 1;
if (argv[1] == NULL)
sort_type = "disk";
else if (argv[2] != NULL)
- help_ver2(&doveadm_cmd_stats_top_ver2);
+ help_ver2(&doveadm_cmd_oldstats_top_ver2);
else
sort_type = argv[1];
const char *path;
int c;
- path = t_strconcat(doveadm_settings->base_dir, "/stats", NULL);
+ path = t_strconcat(doveadm_settings->base_dir, "/old-stats", NULL);
while((c = getopt(argc, argv, "s:")) > 0) {
switch (c) {
case 's':
path = optarg;
break;
default:
- help_ver2(&doveadm_cmd_stats_reset_ver2);
+ help_ver2(&doveadm_cmd_oldstats_reset_ver2);
}
}
argv += optind - 1;
stats_reset(path, (const char**)argv);
}
-struct doveadm_cmd_ver2 doveadm_cmd_stats_dump_ver2 = {
+struct doveadm_cmd_ver2 doveadm_cmd_oldstats_dump_ver2 = {
.cmd = doveadm_cmd_stats_dump,
- .name = "stats dump",
+ .name = "oldstats dump",
.usage = "[-s <stats socket path>] <type> [<filter>]",
DOVEADM_CMD_PARAMS_START
DOVEADM_CMD_PARAM('s', "socket-path", CMD_PARAM_STR, 0)
DOVEADM_CMD_PARAMS_END
};
-struct doveadm_cmd_ver2 doveadm_cmd_stats_top_ver2 = {
+struct doveadm_cmd_ver2 doveadm_cmd_oldstats_top_ver2 = {
.old_cmd = cmd_stats_top,
- .name = "stats top",
+ .name = "oldstats top",
.usage = "[-s <stats socket path>] [-b] [<sort field>]",
DOVEADM_CMD_PARAMS_START
DOVEADM_CMD_PARAM('s', "socket-path", CMD_PARAM_STR, 0)
};
-struct doveadm_cmd_ver2 doveadm_cmd_stats_reset_ver2 = {
+struct doveadm_cmd_ver2 doveadm_cmd_oldstats_reset_ver2 = {
.old_cmd = cmd_stats_reset,
- .name = "stats reset",
+ .name = "oldstats reset",
.usage = "[-s <stats socket path>]",
DOVEADM_CMD_PARAMS_START
DOVEADM_CMD_PARAM('s', "socket-path", CMD_PARAM_STR, 0)
for (i = 0; i < N_ELEMENTS(doveadm_cmdline_commands); i++)
doveadm_register_cmd(doveadm_cmdline_commands[i]);
doveadm_register_auth_commands();
- doveadm_cmd_register_ver2(&doveadm_cmd_stats_top_ver2);
+ doveadm_cmd_register_ver2(&doveadm_cmd_oldstats_top_ver2);
if (cmd_name != NULL && (quick_init ||
strcmp(cmd_name, "config") == 0 ||
-noinst_LTLIBRARIES = libstats.la
+noinst_LTLIBRARIES = libold_stats.la
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-master
-libstats_la_SOURCES = \
+libold_stats_la_SOURCES = \
stats.c \
stats-connection.c \
stats-parser.c
-stats_moduledir = $(moduledir)/stats
+old_stats_moduledir = $(moduledir)/old-stats
pkglibexecdir = $(libexecdir)/dovecot
-pkglibexec_PROGRAMS = stats
+pkglibexec_PROGRAMS = old-stats
AM_CPPFLAGS = \
- -DSTATS_MODULE_DIR=\""$(stats_moduledir)"\" \
+ -DSTATS_MODULE_DIR=\""$(old_stats_moduledir)"\" \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-settings \
-I$(top_srcdir)/src/lib-master \
- -I$(top_srcdir)/src/lib-stats \
+ -I$(top_srcdir)/src/lib-old-stats \
$(BINARY_CFLAGS)
-stats_LDADD = $(LIBDOVECOT) \
+old_stats_LDADD = $(LIBDOVECOT) \
$(BINARY_LDFLAGS)
-stats_DEPENDENCIES = $(LIBDOVECOT_DEPS)
+old_stats_DEPENDENCIES = $(LIBDOVECOT_DEPS)
-stats_SOURCES = \
+old_stats_SOURCES = \
client.c \
client-export.c \
client-reset.c \
int main(int argc, char *argv[])
{
const struct setting_parser_info *set_roots[] = {
- &stats_setting_parser_info,
+ &old_stats_setting_parser_info,
NULL
};
const enum master_service_flags service_flags =
#include "stats-settings.h"
/* <settings checks> */
-static struct file_listener_settings stats_unix_listeners_array[] = {
- { "stats", 0600, "", "" }
+static struct file_listener_settings old_stats_unix_listeners_array[] = {
+ { "old-stats", 0600, "", "" }
};
-static struct file_listener_settings *stats_unix_listeners[] = {
- &stats_unix_listeners_array[0]
+static struct file_listener_settings *old_stats_unix_listeners[] = {
+ &old_stats_unix_listeners_array[0]
};
-static buffer_t stats_unix_listeners_buf = {
- stats_unix_listeners, sizeof(stats_unix_listeners), { NULL, }
+static buffer_t old_stats_unix_listeners_buf = {
+ old_stats_unix_listeners, sizeof(old_stats_unix_listeners), { NULL, }
};
-static struct file_listener_settings stats_fifo_listeners_array[] = {
- { "stats-mail", 0600, "", "" },
- { "stats-user", 0600, "", "" }
+static struct file_listener_settings old_stats_fifo_listeners_array[] = {
+ { "old-stats-mail", 0600, "", "" },
+ { "old-stats-user", 0600, "", "" }
};
-static struct file_listener_settings *stats_fifo_listeners[] = {
- &stats_fifo_listeners_array[0],
- &stats_fifo_listeners_array[1]
+static struct file_listener_settings *old_stats_fifo_listeners[] = {
+ &old_stats_fifo_listeners_array[0],
+ &old_stats_fifo_listeners_array[1]
};
-static buffer_t stats_fifo_listeners_buf = {
- stats_fifo_listeners,
- sizeof(stats_fifo_listeners), { NULL, }
+static buffer_t old_stats_fifo_listeners_buf = {
+ old_stats_fifo_listeners,
+ sizeof(old_stats_fifo_listeners), { NULL, }
};
/* </settings checks> */
-struct service_settings stats_service_settings = {
- .name = "stats",
+struct service_settings old_stats_service_settings = {
+ .name = "old-stats",
.protocol = "",
.type = "",
.executable = "stats",
.idle_kill = UINT_MAX,
.vsz_limit = (uoff_t)-1,
- .unix_listeners = { { &stats_unix_listeners_buf,
- sizeof(stats_unix_listeners[0]) } },
- .fifo_listeners = { { &stats_fifo_listeners_buf,
- sizeof(stats_fifo_listeners[0]) } },
+ .unix_listeners = { { &old_stats_unix_listeners_buf,
+ sizeof(old_stats_unix_listeners[0]) } },
+ .fifo_listeners = { { &old_stats_fifo_listeners_buf,
+ sizeof(old_stats_fifo_listeners[0]) } },
.inet_listeners = ARRAY_INIT,
.process_limit_1 = TRUE
/* we're kind of kludging here to avoid "stats_" prefix in the struct fields */
#undef DEF
#define DEF(type, name) \
- { type, "stats_"#name, offsetof(struct stats_settings, name), NULL }
+ { type, "old_stats_"#name, offsetof(struct old_stats_settings, name), NULL }
-static const struct setting_define stats_setting_defines[] = {
+static const struct setting_define old_stats_setting_defines[] = {
DEF(SET_SIZE, memory_limit),
DEF(SET_TIME, command_min_time),
DEF(SET_TIME, session_min_time),
SETTING_DEFINE_LIST_END
};
-const struct stats_settings stats_default_settings = {
+const struct old_stats_settings old_stats_default_settings = {
.memory_limit = 1024*1024*16,
.command_min_time = 60,
.carbon_name = ""
};
-const struct setting_parser_info stats_setting_parser_info = {
+const struct setting_parser_info old_stats_setting_parser_info = {
.module_name = "stats",
- .defines = stats_setting_defines,
- .defaults = &stats_default_settings,
+ .defines = old_stats_setting_defines,
+ .defaults = &old_stats_default_settings,
.type_offset = (size_t)-1,
- .struct_size = sizeof(struct stats_settings),
+ .struct_size = sizeof(struct old_stats_settings),
.parent_offset = (size_t)-1
};
-const struct stats_settings *stats_settings;
+const struct old_stats_settings *stats_settings;
#ifndef STATS_SETTINGS_H
#define STATS_SETTINGS_H
-struct stats_settings {
+struct old_stats_settings {
uoff_t memory_limit;
unsigned int command_min_time;
const char *carbon_name;
};
-extern const struct setting_parser_info stats_setting_parser_info;
-extern const struct stats_settings *stats_settings;
+extern const struct setting_parser_info old_stats_setting_parser_info;
+extern const struct old_stats_settings *stats_settings;
#endif
pop3-migration \
replication \
snarf \
- stats \
- imap-stats \
+ old-stats \
+ imap-old-stats \
mail-crypt \
trash \
virtual \
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
- -I$(top_srcdir)/src/lib-stats \
+ -I$(top_srcdir)/src/lib-old-stats \
-I$(top_srcdir)/src/lib-mail \
-I$(top_srcdir)/src/lib-imap \
-I$(top_srcdir)/src/lib-index \
-I$(top_srcdir)/src/lib-storage \
-I$(top_srcdir)/src/imap \
- -I$(top_srcdir)/src/plugins/stats
+ -I$(top_srcdir)/src/plugins/old-stats
imap_moduledir = $(moduledir)
NOPLUGIN_LDFLAGS =
-lib95_imap_stats_plugin_la_LDFLAGS = -module -avoid-version
+lib95_imap_old_stats_plugin_la_LDFLAGS = -module -avoid-version
imap_module_LTLIBRARIES = \
- lib95_imap_stats_plugin.la
+ lib95_imap_old_stats_plugin.la
if DOVECOT_PLUGIN_DEPS
-lib95_imap_stats_plugin_la_LIBADD = \
- ../stats/lib90_stats_plugin.la
+lib95_imap_old_stats_plugin_la_LIBADD = \
+ ../old-stats/lib90_old_stats_plugin.la
endif
-lib95_imap_stats_plugin_la_SOURCES = \
+lib95_imap_old_stats_plugin_la_SOURCES = \
imap-stats-plugin.c
noinst_HEADERS = \
--- /dev/null
+AM_CPPFLAGS = \
+ -I$(top_srcdir)/src/lib \
+ -I$(top_srcdir)/src/lib-settings \
+ -I$(top_srcdir)/src/lib-mail \
+ -I$(top_srcdir)/src/lib-master \
+ -I$(top_srcdir)/src/lib-old-stats \
+ -I$(top_srcdir)/src/lib-index \
+ -I$(top_srcdir)/src/lib-storage
+
+NOPLUGIN_LDFLAGS =
+lib90_old_stats_plugin_la_LDFLAGS = -module -avoid-version
+
+module_LTLIBRARIES = \
+ lib90_old_stats_plugin.la
+
+lib90_old_stats_plugin_la_SOURCES = \
+ mail-stats.c \
+ mail-stats-fill.c \
+ mail-stats-connection.c \
+ stats-plugin.c
+
+noinst_HEADERS = \
+ mail-stats.h \
+ mail-stats-connection.h \
+ stats-plugin.h
+
+old_stats_moduledir = $(moduledir)/old-stats
+old_stats_module_LTLIBRARIES = libold_stats_mail.la
+
+libold_stats_mail_la_LDFLAGS = -module -avoid-version
+libold_stats_mail_la_LIBADD = mail-stats.lo $(LIBDOVECOT)
+libold_stats_mail_la_DEPENDENCIES = mail-stats.lo
+libold_stats_mail_la_SOURCES =
Must be smaller than MAIL_SESSION_IDLE_TIMEOUT_MSECS in stats server */
#define SESSION_STATS_FORCE_REFRESH_SECS (5*60)
#define REFRESH_CHECK_INTERVAL 100
-#define MAIL_STATS_FIFO_NAME "stats-mail"
+#define MAIL_STATS_FIFO_NAME "old-stats-mail"
struct stats_storage {
union mail_storage_module_context module_ctx;
+++ /dev/null
-AM_CPPFLAGS = \
- -I$(top_srcdir)/src/lib \
- -I$(top_srcdir)/src/lib-settings \
- -I$(top_srcdir)/src/lib-mail \
- -I$(top_srcdir)/src/lib-master \
- -I$(top_srcdir)/src/lib-stats \
- -I$(top_srcdir)/src/lib-index \
- -I$(top_srcdir)/src/lib-storage
-
-NOPLUGIN_LDFLAGS =
-lib90_stats_plugin_la_LDFLAGS = -module -avoid-version
-
-module_LTLIBRARIES = \
- lib90_stats_plugin.la
-
-lib90_stats_plugin_la_SOURCES = \
- mail-stats.c \
- mail-stats-fill.c \
- mail-stats-connection.c \
- stats-plugin.c
-
-noinst_HEADERS = \
- mail-stats.h \
- mail-stats-connection.h \
- stats-plugin.h
-
-stats_moduledir = $(moduledir)/stats
-stats_module_LTLIBRARIES = libstats_mail.la
-
-libstats_mail_la_LDFLAGS = -module -avoid-version
-libstats_mail_la_LIBADD = mail-stats.lo $(LIBDOVECOT)
-libstats_mail_la_DEPENDENCIES = mail-stats.lo
-libstats_mail_la_SOURCES =