You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`host` (optional): The hostname or IP address of the database server.
31
31
- For the `sqlserver` driver, an instance appended to the hostname (e.g. `hostname1/instance1`) will be parsed properly into this connection string: `sqlserver://username:password@host:port/instance`.
32
32
-`port` (optional for `sqlserver`, otherwise required): The port number of the database server.
@@ -38,7 +38,10 @@ The configuration supports the following top-level fields:
38
38
- The `password` field supports sensitive value handling through environment variables or other secure value sources. Special characters (such as #, @, %, etc.) are automatically URL-encoded to ensure proper connection string formatting.
-`datasource`(optional): The datasource value passed to [sql.Open](https://pkg.go.dev/database/sql#Open). This value overrides the optional fields listed above and does not perform any special character escaping. This is a driver-specific string usually consisting of at least a database name and connection information. This is sometimes referred to as the "connection string" in driver documentation. Examples:
41
+
42
+
**Option 2: Datasource string:**
43
+
44
+
-`datasource`(optional): The datasource value passed to [sql.Open](https://pkg.go.dev/database/sql#Open). This value is used instead of the individual connection parameters listed above and does not perform any special character escaping. This is a driver-specific string usually consisting of at least a database name and connection information. This is sometimes referred to as the "connection string" in driver documentation. Examples:
-`queries` (required): A list of queries, where a query is a sql statement and one or more `logs` and/or `metrics` sections (details below).
52
58
-`collection_interval`(optional): The time interval between query executions. Defaults to _10s_.
53
59
-`storage` (optional, default `""`): The ID of a [storage][storage_extension] extension to be used to [track processed results](#tracking-processed-results).
54
60
-`telemetry` (optional) Defines settings for the component's own telemetry - logs, metrics or traces.
0 commit comments