oracledb_exporter travis-ci docker

Prometheus Oracle database exporter.

2 years after

Oracle DB Exporter

GoDoc Report card

A Prometheus exporter for Oracle modeled after the MySQL exporter. I'm not a DBA or seasoned Go developer so PRs definitely welcomed.

The following metrics are exposed currently.

  • oracledb_exporter_last_scrape_duration_seconds
  • oracledb_exporter_last_scrape_error
  • oracledb_exporter_scrapes_total
  • oracledb_up
  • oracledb_activity_execute_count
  • oracledb_activity_parse_count_total
  • oracledb_activity_user_commits
  • oracledb_activity_user_rollbacks
  • oracledb_sessions_active
  • oracledb_sessions_inactive
  • oracledb_wait_time_application
  • oracledb_wait_time_commit
  • oracledb_wait_time_concurrency
  • oracledb_wait_time_configuration
  • oracledb_wait_time_network
  • oracledb_wait_time_other
  • oracledb_wait_time_scheduler
  • oracledb_wait_time_system_io
  • oracledb_wait_time_user_io

Requirements

All requirements may be downloaded from Oracle

build

To build, you'll need the following packages installed.

  • Oracle Instant Client Package - Basic
  • Instant Client Package - SQL*Plus
  • Instant Client Package - SDK

installation/running

To run, you'll need the following packages installed.

  • Oracle Instant Client Package - Basic
  • Instant Client Package - SQL*Plus

Install

Ensure requirements are met and configure oci8.pc file. See Oracle driver documentation for details. After then, it's just a go get to install.

go get -u github.com/iamseth/oracledb_exporter

Running

Ensure that the environment variable DATA_SOURCE_NAME is set correctly before starting. For Example

export DATA_SOURCE_NAME=system/[email protected]
/path/to/binary -l log.level error -l web.listen-address 9161

Usage

Usage of oracledb_exporter:
  -log.format value
        If set use a syslog logger or JSON logging. Example: logger:syslog?appname=bob&local=7 or logger:stdout?json=true. Defaults to stderr.
  -log.level value
        Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal].
  -web.listen-address string
        Address to listen on for web interface and telemetry. (default ":9161")
  -web.telemetry-path string
        Path under which to expose metrics. (default "/metrics")

Binary releases

Pre-compiled versions may be found in the release section.


Top Contributors

iamseth elmugrat man-at-home

Releases

-   0.0.8 zip tar
-   0.0.6 zip tar
-   0.0.5 zip tar
-   0.0.1 zip tar