oracle-otel
by Helm
A Helm chart to monitor Oracle Database with New Relic's OpenTelemetry distribution (NRDOT)
About this chart
oracle-otel
Deploys New Relic's NRDOT OpenTelemetry collector configured with the
nroracledb receiver (currently Preview) to monitor Oracle Database and
export the results to New Relic over OTLP. One release runs one collector
pod, monitoring either a single Oracle instance (oracle:) or multiple
instances that share one topology (oracleMulti:) — see "Which mode do I
need?" below.
Which mode do I need?
| Your situation | Use | Schema |
|---|---|---|
| One Oracle/RDS instance | Single-instance mode | oracle: |
| Multiple instances, one release, all the same topology | Multi-instance mode | oracleMulti: |
The two are mutually exclusive within a single release — setting both
oracle.endpoint and oracleMulti.enabled: true fails the render. Aside
from that schema choice, everything below through "Automated setup" applies
identically to both modes: topology selection, networking prerequisites, and
the setup Job all work the same way whether you're on oracle: or
oracleMulti:, just applied per instance in the multi case.
What this chart does not do
- Mix topologies within one release —
oracleMultirequires every entry to share one topology (oracleMulti.topology), and a single-instance release only ever has one topology by definition. A self-hosted CDB and an RDS instance still need two separate releases, whichever mode you're using. - Verify TLS/SSL connections to Oracle. The
nroracledbreceiver's public documentation does not describe any TLS configuration; if your Oracle instance requires an encrypted connection, confirm support directly against the receiver before relying on this chart. - Report host/infrastructure metrics (CPU, memory, disk, filesystem, network,
OS logs) for the machine(s) Oracle runs on. New Relic's
otel-oracledbdocs show two collector-config shapes: a combined "NRDOT host with database configuration" (addshostmetrics/filelog/otlpreceivers and ahealth_checkextension) and a standalone "Database configuration". The combined shape only makes sense when the collector runs directly on the Oracle server's own host OS (e.g. as a systemd service) — this chart runs the collector as a Kubernetes Deployment that reaches Oracle remotely over the network, so it can never be on that host. Reporting the Kubernetes node's metrics instead would be a different feature (cluster observability, unrelated to the Oracle server), not a substitute. This chart implements only the standalone "Database configuration" shape. If you also want host-level metrics for an Oracle server itself, install NRDOT (or another agent) directly on that host, outside this chart.
Choosing the topology
| Your setup | Topology value |
|---|---|
| Amazon RDS for Oracle | rds |
| Self-hosted, multitenant (you connect to the container database) | cdb |
| Self-hosted, single pluggable database only | pdb |
| Oracle Autonomous Database (OCI) | adb |
This is oracle.topology in single-instance mode, or oracleMulti.topology
(applied to every entry) in multi-instance mode — always required either
way. It selects the nroracledb receiver's default metrics/
resource_attributes block for config.yaml:
- CDB/PDB: 30-metric baseline set (
basic). - RDS: same 30-metric baseline set as CDB/PDB.
- ADB: same 30-metric baseline set as CDB/PDB.
Choosing the config profile
oracle.configProfile (single-instance) or oracleMulti.configProfile
(multi-instance, applies to every entry) selects how many metrics the
receiver collects. Both default to basic.
| Profile | Metrics collected |
|---|---|
basic | The 30-metric baseline set per topology (above) |
advanced | New Relic's full Oracle metric catalog: 135 metrics for cdb/pdb (including 5 ASM metrics), 130 for rds/adb |
Only the receiver's metrics block differs; events, query collection,
resource attributes, the exporter and the setup job are identical. Start with
basic and move to advanced once collection is verified.
additionalReceiverConfig still overrides either profile.
oracle:
topology: "pdb"
configProfile: "advanced"
resource_attributes (just oracle.db.edition) comes from a block shared
across all four topologies, not the per-topology defaults above.
Override any individual metric/event via additionalReceiverConfig if you
need to (applies globally — one shared escape hatch, not per-entry, even in
multi-instance mode).
adb also changes the receiver's connection shape: instead of discrete
endpoint/username/password/service fields, the receiver gets a single
datasource connection string
(oracle://<user>:<password>@<host>:<port>/<service>?ssl=true&ssl%20verify=true,
credentials still injected via ${env:ORACLE_USERNAME}/${env:ORACLE_PASSWORD}
(or the _<NAME>-suffixed equivalents per entry in multi-instance mode),
never written literally into the ConfigMap) with TLS enabled inline — no
wallet file is needed. The exporter is
otlp/newrelic (gRPC) for every topology, including ADB.
When setupJob.enabled: true, this value additionally selects which grant
script the setup Job runs, since RDS, CDB, PDB, and ADB each require a
different user-creation and permission-granting procedure. It also
determines whether the monitoring username must carry a C## prefix (CDB
only, enforced by Oracle itself — the chart doesn't generate or validate
this, it's just a naming rule you follow when picking a username).
Networking prerequisites
- Self-hosted: the collector Pod needs a routed path to each instance's endpoint (VPN, peering, or shared network), DNS resolution if it's a hostname, and the Oracle-side firewall must allow the connection's actual source IP (which may be a NAT gateway, not the Pod IP itself).
- RDS: your cluster needs VPC peering, a transit gateway, or shared-VPC placement with each RDS instance, and each RDS security group must allow the Oracle port from the cluster's egress source.
- ADB: the collector Pod needs outbound access to each Autonomous
Database's public (or private-endpoint) listener; the connection is
TLS-secured via the
datasourcestring'sssl=truequery parameters, not a wallet file.
In multi-instance mode, these requirements apply per entry — one pod reaching N databases still needs a valid network path to all N of them.
Automated setup (setupJob.enabled: true)
If enabled, a Helm hook Job creates the monitoring user and grants it read access, using a separate admin credential — required, no plain-value path, since it can create users and grant broad access:
- Single-instance: one Job, using
oracle.username/oracle.existingSecretfor the monitoring user andsetupJob.oracleAdmin.existingSecretfor the admin credential. - Multi-instance: one Job per entry (named
<release>-setup-<name>), each using that entry's ownexistingSecretandoracleAdmin.existingSecret— separate RDS instances normally have independent master-user passwords, so there's no shared admin credential option.
For cdb/pdb topology, the admin credential must be SYS, connecting
AS SYSDBA — confirmed by hands-on testing, not just documentation.
Oracle protects its V_$/DBA_ catalog views so that only SYS can grant
SELECT on them, even to a full DBA-role account like SYSTEM (which
fails with ORA-01031: insufficient privileges despite otherwise having
broad administrative rights). The Job connects AS SYSDBA automatically for
these two topologies. For rds topology, use the RDS master user instead —
RDS deliberately disallows SYSDBA entirely and grants via the rdsadmin
package internally, which is why rds-grants.sql doesn't hit this issue. For
adb topology, connect as SYS without AS SYSDBA — per New Relic's
documentation, ADB grants run as a plain SYS session with no SYSDBA mode,
no CONTAINER=ALL, and no C## prefix.
This requires an Oracle Instant Client + sqlplus image (shared across every
entry's Job in multi-instance mode — one image, not one per database). Oracle
publishes one at container-registry.oracle.com, which requires manually
accepting Oracle's license terms once, before the image can be pulled — this
cannot be automated. Confirm the exact repository path and a current tag
against that registry yourself before setting setupJob.image.repository/
setupJob.image.tag — this README intentionally does not assert one, since
it wasn't independently verified while writing this chart.
If you'd rather not grant this chart admin-level Oracle access at all, leave
setupJob.enabled: false and run the appropriate script from files/setup/
yourself, as a DBA, before installing (once per instance, in multi-instance
mode).
Single-instance schema (oracle:)
The default mode — one release, one Oracle/RDS instance:
oracle:
topology: "rds"
endpoint: "prod-db.xxxxx.us-east-1.rds.amazonaws.com:1521"
service: "ORCL"
existingSecret: "db-monitor-creds" # or username/password as plain values
otlpEndpoint: "otlp.nr-data.net:4317"
licenseKey: "<your New Relic license key>"
Unlike multi-instance mode, plain-value credentials are allowed here
(oracle.username/oracle.password) if you don't want to create a Secret
yourself — mainly useful for quick local testing, not recommended for
production. oracle.existingSecret wins over the plain values if both are
set.
Multi-instance schema (oracleMulti:)
Setting oracleMulti.enabled: true switches to an alternative, fully
opt-in mode: one release, one collector pod, monitoring every entry in
oracleMulti.databases (all sharing one oracleMulti.topology — see "What
this chart does not do" above). This is additive: oracleMulti is a
separate values block from oracle:, and the two are mutually exclusive in
a single release.
Without the setup Job (setupJob.enabled: false, the default — you
create the monitoring user/grants yourself per "If you'd rather not grant
this chart admin-level Oracle access at all" above, once per instance):
oracleMulti:
enabled: true
topology: "rds"
databases:
- name: db1
endpoint: "prod-db-1.xxxxx.us-east-1.rds.amazonaws.com:1521"
service: "ORCL1"
existingSecret: "db1-monitor-creds"
- name: db2
endpoint: "prod-db-2.xxxxx.us-east-1.rds.amazonaws.com:1521"
service: "ORCL2"
existingSecret: "db2-monitor-creds"
otlpEndpoint: "otlp.nr-data.net:4317"
licenseKey: "<your New Relic license key>"
With the setup Job (setupJob.enabled: true — a top-level field,
shared with single-instance mode, not nested under oracleMulti;
each entry additionally needs its own oracleAdmin.existingSecret):
oracleMulti:
enabled: true
topology: "rds"
databases:
- name: db1
endpoint: "prod-db-1.xxxxx.us-east-1.rds.amazonaws.com:1521"
service: "ORCL1"
existingSecret: "db1-monitor-creds"
oracleAdmin:
existingSecret: "db1-admin-creds"
- name: db2
endpoint: "prod-db-2.xxxxx.us-east-1.rds.amazonaws.com:1521"
service: "ORCL2"
existingSecret: "db2-monitor-creds"
oracleAdmin:
existingSecret: "db2-admin-creds"
otlpEndpoint: "otlp.nr-data.net:4317"
licenseKey: "<your New Relic license key>"
setupJob:
enabled: true
image:
repository: "<confirmed container-registry.oracle.com repo>"
tag: "<confirmed tag>"
This runs one setup Job per entry (see "Automated setup" above), each
using that entry's own oracleAdmin.existingSecret.
Each entry requires name (unique within the release), endpoint,
service, and existingSecret — there is no plain-value credential path in
this mode, unlike oracle:. A single-entry databases list is valid too
(e.g. as a values-file template meant to scale from 1 to N) — it just renders
as a plain receiver with none of the sharing behavior described next,
since there's nothing to share with.
How the generated config stays compact with many entries: with 2+
entries, the first database's receiver carries the full metrics/events
config and is tagged with a YAML anchor (&nroracledb-common); every entry
after that is a short <<: *nroracledb-common override carrying only its
own endpoint/username/password/service/collection_interval — this
matches New Relic's own documented RDS multi-receiver pattern, and means the
ConfigMap stays small (~6 extra lines per additional database, not a full
duplicate of the ~150-line metrics block) even at high database counts.
Earlier versions of this chart added a resource/add_event_name processor
to stamp a host.address resource attribute onto every entry — but in a
shared pipeline that processor could only ever apply one value, so every
entry after the first carried the wrong host. That processor has been
removed; per-instance identity now comes from each entry's own receiver
config (endpoint/service/server.address/server.port), which is
correct per entry even when multiple receivers share one pipeline. See
docs/superpowers/specs/2026-09-15-oracle-otel-multi-instance-design.md for
the fuller history.
Values
Shared across both modes:
| Key | Description | Default |
|---|---|---|
image.repository | Collector image | newrelic/nrdot-collector |
image.tag | Collector image tag | 2.7.3 |
otlpEndpoint | New Relic OTLP/gRPC endpoint, bare host:port, no scheme (e.g. otlp.nr-data.net:4317) | "" |
licenseKey / customSecretName / customSecretLicenseKey | New Relic license key, standard common-library fields | "" |
additionalReceiverConfig | Merged into every nroracledb receiver block | {} |
setupJob.enabled | Run the automated user-creation Job(s) | false |
| `setupJob.image.repositor |
Deploy oracle-otel with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has oracle-otel on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartoracle-otel is pinned at v0.3.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply