Skip to content

Commit 145461b

Browse files
committed
rebuild docs
1 parent ce818b1 commit 145461b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

metricbeat/docs/modules/sql.asciidoc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -874,16 +874,19 @@ Then, Metricbeat can be launched.
874874
The following two types of host configurations are supported:
875875

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

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

884-
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`.
885+
In a URL any special characters should be URL encoded.
885886

886-
The username and password to connect to the database can be provided as values to `username` and `password` keys of `sql.yml`.
887+
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`.
888+
889+
The username and password to connect to the database can be provided as values to `username` and `password` keys of `sql.yml`.
887890

888891
[source,yml]
889892
----

0 commit comments

Comments
 (0)