Skip to main content

Prometheus-Tuxedo-Exporter

A Prometheus exporter of Tuxedo metrics. The code that was too long for the Chapter 6 of my book:

https://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&MarketPlace=US&ASIN=180107058X&ServiceVersion=20070822&ID=AsinImage&WS=1&Format=_SL160_&tag=aivarsk-20

Install

pip3 install prometheus-tuxedo-exporter

Or to install from the local copy:

sudo -E python3 setup.py install

Run

The prometheus-tuxedo-exporter.py can be run as a stand-alone program:

prometheus-tuxedo-exporter.py --port 5555

It can also be run as a Tuxedo server and Tuxedo will take care of starting, stopping and restarting it as a part of the Tuxedo application. For that you will have to add entry like this to UBBCONFIG:

"prometheus-tuxedo-exporter.py" SRVGRP="GROUP1" SRVID=5555
    CLOPT="-- --port 5555"
    MAX=1 MAXGEN=2  GRACE=0 RESTART=Y

Usage

usage: prometheus-tuxedo-exporter.py [-h] --port PORT [--addr ADDR]

optional arguments:
  -h, --help   show this help message and exit
  --port PORT
  --addr ADDR

The --addr parameter can be used to specify the network interface to listen on.

Monitoring

Exposed metrics come from the Management Information Base for core Oracle Tuxedo system.

Example:

# HELP tuxedo_numreq_total Number of tpacall or tpcall operations performed from this machine
# TYPE tuxedo_numreq_total counter
tuxedo_numreq_total 1149.0
# HELP tuxedo_numreq_created Number of tpacall or tpcall operations performed from this machine
# TYPE tuxedo_numreq_created gauge
tuxedo_numreq_created 1.616197112474299e+09
# HELP tuxedo_numpost_total Number of tppost operations performed from this machine
# TYPE tuxedo_numpost_total counter
tuxedo_numpost_total 0.0
# HELP tuxedo_numpost_created Number of tppost operations performed from this machine
# TYPE tuxedo_numpost_created gauge
tuxedo_numpost_created 1.6161971124743195e+09
# HELP tuxedo_numtran_total Number of transactions initiated from this machine
# TYPE tuxedo_numtran_total counter
tuxedo_numtran_total 0.0
# HELP tuxedo_numtran_created Number of transactions initiated from this machine
# TYPE tuxedo_numtran_created gauge
tuxedo_numtran_created 1.6161971124743354e+09
# HELP tuxedo_numtranabt_total Number of transactions aborted from this machine
# TYPE tuxedo_numtranabt_total counter
tuxedo_numtranabt_total 0.0
# HELP tuxedo_numtranabt_created Number of transactions aborted from this machine
# TYPE tuxedo_numtranabt_created gauge
tuxedo_numtranabt_created 1.6161971124743507e+09
# HELP tuxedo_numtrancmt_total Number of transactions committed from this machine
# TYPE tuxedo_numtrancmt_total counter
tuxedo_numtrancmt_total 0.0
# HELP tuxedo_numtrancmt_created Number of transactions committed from this machine
# TYPE tuxedo_numtrancmt_created gauge
tuxedo_numtrancmt_created 1.6161971124743652e+09

Metadata

Release files for prometheus-tuxedo-exporter 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prometheus-tuxedo-exporter 1.0.1
File Size Uploaded
prometheus-tuxedo-exporter-1.0.1.tar.gz 3.3 kB Details

Release files / prometheus-tuxedo-exporter-1.0.1.tar.gz

Download URL prometheus-tuxedo-exporter-1.0.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
97a5e194996a82d6c821cefbed6be555a0fddde5212bdc752f4fc490893e29d6
BLAKE2b-256 checksum
How to use checksums
002293e33bdd1c8df3e9a638986b1f691c405d1fd41a0e652f0ef609dfe38eb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page