You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

sqlserver.toml 3.9 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # # collect interval
  2. # interval = 15
  3. [[instances]]
  4. ## Specify instances to monitor with a list of connection strings.
  5. ## All connection parameters are optional.
  6. ## By default, the host is localhost, listening on default port, TCP 1433.
  7. ## for Windows, the user is the currently running AD user (SSO).
  8. ## See https://github.com/denisenkom/go-mssqldb for detailed connection
  9. ## parameters, in particular, tls connections can be created like so:
  10. ## "encrypt=true;certificate=<cert>;hostNameInCertificate=<SqlServer host fqdn>"
  11. # servers = ["Server=server.xxx.com;Port=1433;User Id=monitor;Password=xxxxxx;app name=categraf;log=1;"]
  12. # servers = [ ]
  13. ## Authentication method
  14. ## valid methods: "connection_string", "AAD"
  15. # auth_method = "connection_string"
  16. ## "database_type" enables a specific set of queries depending on the database type. If specified, it replaces azuredb = true/false and query_version = 2
  17. ## In the config file, the sql server plugin section should be repeated each with a set of servers for a specific database_type.
  18. ## Possible values for database_type are - "SQLServer" or "AzureSQLDB" or "AzureSQLManagedInstance" or "AzureSQLPool"
  19. database_type = "SQLServer"
  20. ## A list of queries to include. If not specified, all the below listed queries are used.
  21. include_query = []
  22. ## A list of queries to explicitly ignore.
  23. exclude_query = ["SQLServerAvailabilityReplicaStates", "SQLServerDatabaseReplicaStates"]
  24. ## Queries enabled by default for database_type = "SQLServer" are -
  25. ## SQLServerPerformanceCounters, SQLServerWaitStatsCategorized, SQLServerDatabaseIO, SQLServerProperties, SQLServerMemoryClerks,
  26. ## SQLServerSchedulers, SQLServerRequests, SQLServerVolumeSpace, SQLServerCpu, SQLServerAvailabilityReplicaStates, SQLServerDatabaseReplicaStates,
  27. ## SQLServerRecentBackups
  28. ## Following are old config settings
  29. ## You may use them only if you are using the earlier flavor of queries, however it is recommended to use
  30. ## the new mechanism of identifying the database_type there by use it's corresponding queries
  31. ## Optional parameter, setting this to 2 will use a new version
  32. ## of the collection queries that break compatibility with the original
  33. ## dashboards.
  34. ## Version 2 - is compatible from SQL Server 2012 and later versions and also for SQL Azure DB
  35. # query_version = 2
  36. ## Toggling this to true will emit an additional metric called "sqlserver_telegraf_health".
  37. ## This metric tracks the count of attempted queries and successful queries for each SQL instance specified in "servers".
  38. ## The purpose of this metric is to assist with identifying and diagnosing any connectivity or query issues.
  39. ## This setting/metric is optional and is disabled by default.
  40. # health_metric = false
  41. ## Possible queries accross different versions of the collectors
  42. ## Queries enabled by default for specific Database Type
  43. ## database_type = SQLServer by default collects the following queries
  44. ## - SQLServerPerformanceCounters
  45. ## - SQLServerWaitStatsCategorized
  46. ## - SQLServerDatabaseIO
  47. ## - SQLServerProperties
  48. ## - SQLServerMemoryClerks
  49. ## - SQLServerSchedulers
  50. ## - SQLServerRequests
  51. ## - SQLServerVolumeSpace
  52. ## - SQLServerCpu
  53. ## - SQLServerRecentBackups
  54. ## and following as optional (if mentioned in the include_query list)
  55. ## - SQLServerAvailabilityReplicaStates
  56. ## - SQLServerDatabaseReplicaStates
  57. ## Version 2 by default collects the following queries
  58. ## Version 2 is being deprecated, please consider using database_type.
  59. ## - PerformanceCounters
  60. ## - WaitStatsCategorized
  61. ## - DatabaseIO
  62. ## - ServerProperties
  63. ## - MemoryClerk
  64. ## - Schedulers
  65. ## - SqlRequests
  66. ## - VolumeSpace
  67. ## - Cpu
  68. ## Version 1 by default collects the following queries
  69. ## Version 1 is deprecated, please consider using database_type.
  70. ## - PerformanceCounters
  71. ## - WaitStatsCategorized
  72. ## - CPUHistory
  73. ## - DatabaseIO
  74. ## - DatabaseSize
  75. ## - DatabaseStats
  76. ## - DatabaseProperties
  77. ## - MemoryClerk
  78. ## - VolumeSpace
  79. ## - PerformanceMetrics