From 01d81fa9592de197a632bf16d097d9646c0c5667 Mon Sep 17 00:00:00 2001 From: Clayton Cornell Date: Fri, 21 Nov 2025 10:28:36 -0800 Subject: [PATCH 1/5] Add missing prereq adn env var info --- .../prometheus.exporter.oracledb.md | 58 ++++++++++++++----- 1 file changed, 42 insertions(+), 16 deletions(-) diff --git a/docs/sources/reference/components/prometheus/prometheus.exporter.oracledb.md b/docs/sources/reference/components/prometheus/prometheus.exporter.oracledb.md index e5af107052..5a327386bd 100644 --- a/docs/sources/reference/components/prometheus/prometheus.exporter.oracledb.md +++ b/docs/sources/reference/components/prometheus/prometheus.exporter.oracledb.md @@ -15,6 +15,30 @@ title: prometheus.exporter.oracledb The `prometheus.exporter.oracledb` component embeds [`oracledb_exporter`](https://github.com/oracle/oracle-db-appdev-monitoring) for collecting statistics from a OracleDB server. +Ensure you have the following: + +- Oracle Instant Client Basic installed on the system running Grafana Alloy +- Appropriate environment variables configured for Oracle Client libraries + +### Oracle instant client basic + +When you run the standalone binary, you must install the [Oracle Instant Client Basic](http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html) for your operating system. +Only the basic version is required for the exporter. + +{{< admonition type="note" >}} +The Alloy Docker image includes the Oracle Instant Client, so this prerequisite only applies to standalone binary installations. +{{< /admonition >}} + +### Environment variables + +Set the following environment variables for Oracle Client library access: + +- **Linux**: Set `LD_LIBRARY_PATH` to the Oracle Instant Client library directory +- **macOS (ARM)**: Set `DYLD_LIBRARY_PATH` to the Oracle Instant Client library directory +- **`ORACLE_BASE`** (optional): Base directory for Oracle installations +- **`ORACLE_HOME`** (optional): Location of the Oracle Instant Client installation +- **`TNS_ADMIN`** (optional): Location of your Oracle wallet directory when using wallet authentication + ## Usage ```alloy @@ -27,18 +51,18 @@ prometheus.exporter.oracledb "