Skip to content

Commit 3fcb21f

Browse files
committed
Add an example for DATA_SOURCE_NAME (taken from iamseth#55).
1 parent 100e5c3 commit 3fcb21f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,12 @@ In order to run, you'll need the [Oracle Instant Client Basic](http://www.oracle
7272
Ensure that the environment variable DATA_SOURCE_NAME is set correctly before starting. For Example
7373

7474
```bash
75-
export DATA_SOURCE_NAME=system/oracle@myhost
76-
/path/to/binary -l log.level error -l web.listen-address 9161
75+
# export Oracle location:
76+
export DATA_SOURCE_NAME=system/password@oracle-sid
77+
# or using a complete url:
78+
export DATA_SOURCE_NAME=user/password@//myhost:1521/service
79+
# Then run the exporter
80+
/path/to/binary/oracledb_exporter -l log.level error -l web.listen-address 9161
7781
```
7882

7983
## Usage

0 commit comments

Comments
 (0)