# Module: sql
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/7.6/metricbeat-module-sql.html

- module: sql
  metricsets:
    - query
  period: 10s
  hosts: ["user=myuser password=mypassword dbname=mydb sslmode=disable"]

  driver: "postgres"
  sql_query: "select now()"

