Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

Commit

Permalink
Add section to integrate this exporter with Sytem D.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannig committed Jul 25, 2020
1 parent f666b27 commit 510e792
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,32 @@ export DATA_SOURCE_NAME=user/password@//myhost:1521/service
/path/to/binary/oracledb_exporter --log.level error --web.listen-address 0.0.0.0:9161
```

# Integration with System D

Create file **/etc/systemd/system/oracledb_exporter.service** with the following content:

[Unit]
Description=Service for oracle telemetry client
After=network.target
[Service]
Type=oneshot
#User=oracledb_exporter
ExecStart=/path/of/the/oracledb_exporter --log.level error --web.listen-address 0.0.0.0:9161
[Install]
WantedBy=multi-user.target

Then tell System D to read files:

systemctl daemon-reload

Start this new service:

systemctl start oracledb_exporter

Check service status:

systemctl status oracledb_exporter

## Usage

```bash
Expand Down

0 comments on commit 510e792

Please sign in to comment.