From 03f49c6603f558f11351981a186d0c3e2043d6ab Mon Sep 17 00:00:00 2001 From: Neaj Morshad Date: Fri, 9 Aug 2024 17:11:27 +0600 Subject: [PATCH] docs: update data_source_name in configuration file [skip ci] (#574) Signed-off-by: Neaj Morshad --- documentation/sql_exporter.yml | 2 +- examples/sql_exporter.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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).