diff --git a/documentation/sql_exporter.yml b/documentation/sql_exporter.yml index a22bb9e7..4be4f30d 100644 --- a/documentation/sql_exporter.yml +++ b/documentation/sql_exporter.yml @@ -35,7 +35,7 @@ target: name: mssql_database # Data source name always has a URI schema that matches the driver name. In some cases (e.g. MySQL) # the schema gets dropped or replaced to match the driver expected DSN format. - data_source_name: 'sqlserver://prom_user:prom_password@dbserver1.example.com:1433' + data_source_name: 'sqlserver://prom_user:prom_password@dbserver1.example.com:1433/dbname' # Collectors (referenced by name) to execute on the target. collectors: [mssql_standard] diff --git a/examples/sql_exporter.yml b/examples/sql_exporter.yml index e7d6664f..5c2ba4bc 100644 --- a/examples/sql_exporter.yml +++ b/examples/sql_exporter.yml @@ -20,7 +20,7 @@ global: target: # Data source name always has a URI schema that matches the driver name. In some cases (e.g. MySQL) # the schema gets dropped or replaced to match the driver expected DSN format. - data_source_name: 'sqlserver://prom_user:prom_password@dbserver1.example.com:1433' + data_source_name: 'sqlserver://prom_user:prom_password@dbserver1.example.com:1433/dbname' # Collectors (referenced by name) to execute on the target. # Glob patterns are supported (see for syntax).