Skip to content

Commit

Permalink
Update data_source_name in configuration file
Browse files Browse the repository at this point in the history
Signed-off-by: Neaj Morshad <[email protected]>
  • Loading branch information
Neaj-Morshad-101 committed Aug 9, 2024
1 parent ec0c9cd commit d04aff0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion documentation/sql_exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:[email protected]:1433'
data_source_name: 'sqlserver://prom_user:[email protected]:1433/master'

# Collectors (referenced by name) to execute on the target.
collectors: [mssql_standard]
Expand Down
2 changes: 1 addition & 1 deletion examples/sql_exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:[email protected]:1433'
data_source_name: 'sqlserver://prom_user:[email protected]:1433/master'

# Collectors (referenced by name) to execute on the target.
# Glob patterns are supported (see <https://pkg.go.dev/path/filepath#Match> for syntax).
Expand Down

0 comments on commit d04aff0

Please sign in to comment.