You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+23-23Lines changed: 23 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
[Troubleshooting](#troubleshooting)
14
14
[Operating principles](operating-principles.md)
15
15
16
-
# Description
16
+
##Description
17
17
18
18
A [Prometheus](https://prometheus.io/) exporter for Oracle modeled after the MySQL exporter. I'm not a DBA or seasoned Go developer so PRs definitely welcomed.
19
19
@@ -45,11 +45,11 @@ The following metrics are exposed currently.
45
45
- oracledb_resource_current_utilization
46
46
- oracledb_resource_limit_value
47
47
48
-
# Installation
48
+
##Installation
49
49
50
-
## Docker
50
+
###Docker / Podman
51
51
52
-
You can run via Docker using an existing image. Since version 0.4, the images are available on the github registry.
52
+
You can run via Docker/Podman using an existing image. Since version 0.4, the images are available on the github registry.
53
53
54
54
Here an example to retrieve the version 0.5.0:
55
55
@@ -94,14 +94,14 @@ Manager. See https://github.com/iamseth/oracledb_exporter/issues/153 for
94
94
details. The versions above should have a more useful tablespace utilization
95
95
calculation going forward.
96
96
97
-
## Binary Release
97
+
###Binary Release
98
98
99
99
Pre-compiled versions for Linux 64 bit and Mac OSX 64 bit can be found under [releases](https://github.com/iamseth/oracledb_exporter/releases).
100
100
101
101
In order to run, you'll need the [Oracle Instant Client Basic](http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html)
102
102
for your operating system. Only the basic version is required for execution.
103
103
104
-
## Running
104
+
####Running
105
105
Ensure that the environment variable DATA_SOURCE_NAME is set correctly before starting.
106
106
DATA_SOURCE_NAME should be in Oracle Database connection string format:
107
107
@@ -154,7 +154,7 @@ v$session
154
154
v$resource_limit
155
155
```
156
156
157
-
# Integration with System D
157
+
####Integration with System D
158
158
159
159
Create `oracledb_exporter` user with disabled login and `oracledb_exporter` group then run the following commands:
160
160
@@ -222,12 +222,12 @@ Usage of oracledb_exporter:
222
222
Path to configuration file that can enable TLS or authentication.
223
223
```
224
224
225
-
# Default metrics
225
+
##Default metrics
226
226
227
227
This exporter comes with a set of default metrics defined in **default-metrics.toml**. You can modify this file or
228
228
provide a different one using `default.metrics` option.
229
229
230
-
# Custom metrics
230
+
###Custom metrics
231
231
232
232
> NOTE: Do not put a `;` at the end of your SQL queries as this will **NOT** work.
> NOTE: This has been tested with v0.2.6a and will most probably work on versions above.
337
337
@@ -369,7 +369,7 @@ database =
369
369
-`TNS_ADMIN`: Path you choose for the tns admin folder (`/path/to/tns_admin` in the example file above)
370
370
-`DATA_SOURCE_NAME`: Datasource pointing to the `TNS_ENTRY` (`user:password@database` in the example file above)
371
371
372
-
# TLS connection to database
372
+
##TLS connection to database
373
373
374
374
First, set the following variables:
375
375
@@ -400,13 +400,13 @@ Here a complete example of string connection:
400
400
401
401
For more details, have a look at the following location: https://github.com/iamseth/oracledb_exporter/issues/84
402
402
403
-
# Integration with Grafana
403
+
##Integration with Grafana
404
404
405
405
An example Grafana dashboard is available [here](https://grafana.com/grafana/dashboards/3333-oracledb/).
406
406
407
-
# Build
407
+
##Build
408
408
409
-
## Docker build
409
+
###Docker/Podman build
410
410
411
411
To build Ubuntu and Alpine image, run the following command:
412
412
@@ -420,7 +420,7 @@ Or Alpine:
420
420
421
421
make alpine-image
422
422
423
-
## Building Binaries
423
+
###Building Binaries
424
424
425
425
Run build:
426
426
@@ -472,9 +472,9 @@ Here is a small snippet of an example usage of the exporter in code:
472
472
473
473
```
474
474
475
-
# FAQ/Troubleshooting
475
+
##FAQ/Troubleshooting
476
476
477
-
## Unable to convert current value to float (metric=par,metri...in.go:285
477
+
###Unable to convert current value to float (metric=par,metri...in.go:285
478
478
479
479
Oracle is trying to send a value that we cannot convert to float. This could be anything like 'UNLIMITED' or 'UNDEFINED' or 'WHATEVER'.
480
480
@@ -492,11 +492,11 @@ If the value of limite_value is 'UNLIMITED', the request send back the value -1.
492
492
493
493
You can increase the log level (`--log.level debug`) in order to get the statement generating this error.
494
494
495
-
## error while loading shared libraries: libclntsh.so.xx.x: cannot open shared object file: No such file or directory
495
+
###error while loading shared libraries: libclntsh.so.xx.x: cannot open shared object file: No such file or directory
496
496
497
497
Version before 0.5 use libs from Oracle in order to connect to Oracle Database. After 0.5 release, the oracle exporter use an pure Go DB driver and don't need binaries from Oracle anymore.
498
498
499
-
Please switch to version 0.5.
499
+
**Please switch to version 0.5.**
500
500
501
501
For older version, you must install the Oracle binaries somewhere on your machine and **you must install the good version number**. If the
502
502
error talk about the version 18.3, you **must** install 18.3 binary version. If it's 12.2, you **must** install 12.2.
@@ -508,7 +508,7 @@ Here an example to run this exporter (to scrap metrics from system/oracle@//host
508
508
509
509
`docker run -it --rm -p 9161:9161 -e DATA_SOURCE_NAME=oracle://system/oracle@//host:1521/service-or-sid iamseth/oracledb_exporter:0.2.6a`
510
510
511
-
## Error scraping for wait_time
511
+
###Error scraping for wait_time
512
512
513
513
If you experience an error `Error scraping for wait_time: sql: Scan error on column index 1: converting driver.Value type string (",01") to a float64: invalid syntax source="main.go:144"` you may need to set the NLS_LANG variable.
If using Docker, set the same variable using the -e flag.
523
523
524
-
## An Oracle instance generates a lot of trace files being monitored by exporter
524
+
###An Oracle instance generates a lot of trace files being monitored by exporter
525
525
526
526
As being said, Oracle instance may (and probably does) generate a lot of trace files alongside its alert log file, one trace file per scraping event. The trace file contains the following lines
527
527
@@ -539,7 +539,7 @@ The root cause is Oracle's reaction of quering ASM-related views without ASM use
0 commit comments