"use strict";(self.webpackChunkinfluxdb_ui=self.webpackChunkinfluxdb_ui||[]).push([[155],{17353:e=>{e.exports='# Read metrics from one or many postgresql servers\n[[inputs.postgresql_extensible]]\n  # specify address via a url matching:\n  # postgres://[pqgotest[:password]]@host:port[/dbname]?sslmode=...\n  # or a simple string:\n  #   host=localhost port=5432 user=pqgotest password=... sslmode=... dbname=app_production\n  #\n  # All connection parameters are optional.\n  # Without the dbname parameter, the driver will default to a database\n  # with the same name as the user. This dbname is just for instantiating a\n  # connection with the server and doesn\'t restrict the databases we are trying\n  # to grab metrics for.\n  #\n  address = "host=localhost user=postgres sslmode=disable"\n\n  ## A list of databases to pull metrics about.\n  ## deprecated in 1.22.3; use the sqlquery option to specify database to use\n  # databases = ["app_production", "testing"]\n\n  ## Whether to use prepared statements when connecting to the database.\n  ## This should be set to false when connecting through a PgBouncer instance\n  ## with pool_mode set to transaction.\n  prepared_statements = true\n\n  # Define the toml config where the sql queries are stored\n  # The script option can be used to specify the .sql file path.\n  # If script and sqlquery options specified at same time, sqlquery will be used\n  #\n  # the tagvalue field is used to define custom tags (separated by comas).\n  # the query is expected to return columns which match the names of the\n  # defined tags. The values in these columns must be of a string-type,\n  # a number-type or a blob-type.\n  #\n  # The timestamp field is used to override the data points timestamp value. By\n  # default, all rows inserted with current time. By setting a timestamp column,\n  # the row will be inserted with that column\'s value.\n  #\n  # Structure :\n  # [[inputs.postgresql_extensible.query]]\n  #   sqlquery string\n  #   version string\n  #   withdbname boolean\n  #   tagvalue string (coma separated)\n  #   timestamp string\n  [[inputs.postgresql_extensible.query]]\n    sqlquery="SELECT * FROM pg_stat_database where datname"\n    version=901\n    withdbname=false\n    tagvalue=""\n  [[inputs.postgresql_extensible.query]]\n    script="your_sql-filepath.sql"\n    version=901\n    withdbname=false\n    tagvalue=""\n'}}]);