"use strict";(self.webpackChunkinfluxdb_ui=self.webpackChunkinfluxdb_ui||[]).push([[136],{11300:e=>{e.exports="# Read metrics from SQL queries\n[[inputs.sql]]\n  ## Database Driver\n  ## See https://github.com/influxdata/telegraf/blob/master/docs/SQL_DRIVERS_INPUT.md for\n  ## a list of supported drivers.\n  driver = \"mysql\"\n\n  ## Data source name for connecting\n  ## The syntax and supported options depends on selected driver.\n  dsn = \"username:password@mysqlserver:3307/dbname?param=value\"\n\n  ## Timeout for any operation\n  ## Note that the timeout for queries is per query not per gather.\n  # timeout = \"5s\"\n\n  ## Connection time limits\n  ## By default the maximum idle time and maximum lifetime of a connection is unlimited, i.e. the connections\n  ## will not be closed automatically. If you specify a positive time, the connections will be closed after\n  ## idleing or existing for at least that amount of time, respectively.\n  # connection_max_idle_time = \"0s\"\n  # connection_max_life_time = \"0s\"\n\n  ## Connection count limits\n  ## By default the number of open connections is not limited and the number of maximum idle connections\n  ## will be inferred from the number of queries specified. If you specify a positive number for any of the\n  ## two options, connections will be closed when reaching the specified limit. The number of idle connections\n  ## will be clipped to the maximum number of connections limit if any.\n  # connection_max_open = 0\n  # connection_max_idle = auto\n\n  [[inputs.sql.query]]\n    ## Query to perform on the server\n    query=\"SELECT user,state,latency,score FROM Scoreboard WHERE application > 0\"\n    ## Alternatively to specifying the query directly you can select a file here containing the SQL query.\n    ## Only one of 'query' and 'query_script' can be specified!\n    # query_script = \"/path/to/sql/script.sql\"\n\n    ## Name of the measurement\n    ## In case both measurement and 'measurement_col' are given, the latter takes precedence.\n    # measurement = \"sql\"\n\n    ## Column name containing the name of the measurement\n    ## If given, this will take precedence over the 'measurement' setting. In case a query result\n    ## does not contain the specified column, we fall-back to the 'measurement' setting.\n    # measurement_column = \"\"\n\n    ## Column name containing the time of the measurement\n    ## If ommited, the time of the query will be used.\n    # time_column = \"\"\n\n    ## Format of the time contained in 'time_col'\n    ## The time must be 'unix', 'unix_ms', 'unix_us', 'unix_ns', or a golang time format.\n    ## See https://golang.org/pkg/time/#Time.Format for details.\n    # time_format = \"unix\"\n\n    ## Column names containing tags\n    ## An empty include list will reject all columns and an empty exclude list will not exclude any column.\n    ## I.e. by default no columns will be returned as tag and the tags are empty.\n    # tag_columns_include = []\n    # tag_columns_exclude = []\n\n    ## Column names containing fields (explicit types)\n    ## Convert the given columns to the corresponding type. Explicit type conversions take precedence over\n    ## the automatic (driver-based) conversion below.\n    ## NOTE: Columns should not be specified for multiple types or the resulting type is undefined.\n    # field_columns_float = []\n    # field_columns_int = []\n    # field_columns_uint = []\n    # field_columns_bool = []\n    # field_columns_string = []\n\n    ## Column names containing fields (automatic types)\n    ## An empty include list is equivalent to '[*]' and all returned columns will be accepted. An empty\n    ## exclude list will not exclude any column. I.e. by default all columns will be returned as fields.\n    ## NOTE: We rely on the database driver to perform automatic datatype conversion.\n    # field_columns_include = []\n    # field_columns_exclude = []\n"}}]);