---
title: SQL fields
description: SQL module fetches metrics from a SQL database 
url: https://www.elastic.co/docs/reference/beats/metricbeat/exported-fields-sql
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# SQL fields
SQL module fetches metrics from a SQL database
<definitions>
  <definition term="sql.driver">
    Driver used to execute the query.
    type: keyword
  </definition>
  <definition term="sql.query">
    Query executed to collect metrics.
    type: keyword
  </definition>
  <definition term="sql.metrics.numeric.*">
    Numeric metrics collected.
    type: object
  </definition>
  <definition term="sql.metrics.string.*">
    Non-numeric values collected.
    type: object
  </definition>
  <definition term="sql.metrics.boolean.*">
    Boolean values collected.
    type: object
  </definition>
</definitions>