From 392a032141d66a1b06dde545d081c11c811bfe48 Mon Sep 17 00:00:00 2001 From: noahtalerman <47070608+noahtalerman@users.noreply.github.com> Date: Thu, 3 Dec 2020 14:46:56 -0500 Subject: [PATCH] Add question and answer stub for monitoring query performance to FAQ. (#84) Question and tentative answer for "How do I monitor the performance of my queries?" added to infrastructure FAQ. --- docs/infrastructure/faq.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/infrastructure/faq.md b/docs/infrastructure/faq.md index 5f771cbc5f..a5c4791605 100644 --- a/docs/infrastructure/faq.md +++ b/docs/infrastructure/faq.md @@ -68,6 +68,10 @@ This error usually indicates that the Fleet server has run out of file descripto This could be caused by a mismatched connection limit between the Fleet server and the MySQL server that prevents Fleet from fully utilizing the database. First [determine how many open connections your MySQL server supports](https://dev.mysql.com/doc/refman/8.0/en/too-many-connections.html). Now set the [`--mysql_max_open_conns`](./configuring-the-fleet-binary.md#mysql_max_open_conns) and [`--mysql_max_idle_conns`](./configuring-the-fleet-binary.md#mysql_max_idle_conns) flags appropriately. +## How do I monitor the performance of my queries? + +Fleet can live query the `osquery_schedule` table. Performing this live query allows you to get the performance data for your scheduled queries. Also consider scheduling a query to the `osquery_schedule` table to get these logs into your logging pipeline. + ## Why am I receiving a database connection error when attempting to "prepare" the database? First, check if you have a version of MySQL installed that is at least 5.7. Then, make sure that you currently have a MySQL server running.