﻿---
title: SQL fields
description: SQL module fetches metrics from a SQL database 
url: https://www.elastic.co/elastic/docs-builder/docs/2423/reference/beats/metricbeat/exported-fields-sql
---

# 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>