Collect Logs and Metrics for MySQL
Collection Process Overview
Configuring log and metric collection for the MySQL App includes the following tasks:
- Step 1: Configure Fields in Sumo Logic.
- Step 2: Configure Collection for MySQL
Step 1: Configure Fields in Sumo Logic
Create the following Fields in Sumo Logic prior to configuring the collection. This ensures that your logs and metrics are tagged with relevant metadata, which is required by the app dashboards. For information on setting up fields, see the Fields help page.
If you are using MySQL in a non-Kubernetes environment create the fields:
- component
- environment
- db_system
- db_cluster
- pod
If you are using MySQL in a Kubernetes environment create the fields:
- pod_labels_component
- pod_labels_environment
- pod_labels_db_system
- pod_labels_db_cluster