Skip to content

Commit

Permalink
rebuild docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisberkhout committed Jan 9, 2024
1 parent 6beff38 commit a28647a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions metricbeat/docs/modules/sql.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -874,16 +874,19 @@ Then, Metricbeat can be launched.
The following two types of host configurations are supported:

1. DSN host configuration as URL:
a. `hosts: ["user/pass@0.0.0.0:1521/ORCLPDB1.localdomain"]`
b. `hosts: ["user/password@0.0.0.0:1521/ORCLPDB1.localdomain as sysdba"]`
a. `hosts: ["oracle://user:pass@0.0.0.0:1521/ORCLPDB1.localdomain?sysdba=1"]`
b. `hosts: ["user/pass@0.0.0.0:1521/ORCLPDB1.localdomain"]`
c. `hosts: ["user/password@0.0.0.0:1521/ORCLPDB1.localdomain as sysdba"]`

2. DSN host configuration:
a. `hosts: ['user="user" password="pass" connectString="0.0.0.0:1521/ORCLPDB1.localdomain"']`
b. `hosts: ['user="user" password="password" connectString="host:port/service_name" sysdba=true']`

Note: If the password contains the backslash (`\`) character, it must be escaped with a backslash. For example, if the password is `my\_password`, it should be written as `my\\_password`.
In a URL any special characters should be URL encoded.

The username and password to connect to the database can be provided as values to `username` and `password` keys of `sql.yml`.
In the key/value DSN format, if the password contains the backslash (`\`) character, it must be escaped with a backslash. For example, if the password is `my\_password`, it should be written as `my\\_password`.

The username and password to connect to the database can be provided as values to `username` and `password` keys of `sql.yml`.

[source,yml]
----
Expand Down

0 comments on commit a28647a

Please sign in to comment.