From b9b3ea1b08a622b940cff554252bcb6941460924 Mon Sep 17 00:00:00 2001
From: Alain Takoudjou <talino@tiolive.com>
Date: Tue, 3 Feb 2015 14:14:27 +0000
Subject: [PATCH] erp5: enable monitor slow query report generation for
 instance mariadb

---
 stack/erp5/instance-mariadb.cfg.in | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/stack/erp5/instance-mariadb.cfg.in b/stack/erp5/instance-mariadb.cfg.in
index 9bf04f371..1e3edaaf6 100644
--- a/stack/erp5/instance-mariadb.cfg.in
+++ b/stack/erp5/instance-mariadb.cfg.in
@@ -245,6 +245,14 @@ source = ${directory:log}
 < = monitor-directory-access
 source = ${logrotate-entry-mariadb:backup}
 
+[mysql-slowquery-report]
+extra-context =
+  raw slow_query_path ${logrotate:backup}/mariadb_slowquery.log-%(date)s.gz
+
+[{{ section('mysql-slowquery-report-access') }}]
+< = monitor-directory-access
+source = ${mysql-slowquery-report:output-folder}
+
 [monitor-parameters]
 port = {{ monitor_port }}
 
-- 
2.30.9