﻿---
title: SQL fields
description: SQL module fetches metrics from a SQL database 
url: https://docs-v3-preview.elastic.dev/elastic/beats/pull/49504/reference/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>