Skip to main content

YARN Apps Exporter

Write YARN applications metrics for prometheus node_exporter textfile collector.

Install

sudo pip install yarn-apps-exporter

Check that it runs correctly:

sudo yarn-apps-exporter http://resource.manager.hostname:8088
cat /opt/prometheus/exporters/node_exporter_current/yarn_apps.prom

Add systemd service:

sudo tee /etc/systemd/system/yarn-apps-exporter.service << EOF
[Unit]
Description=Write YARN apps metrics for node_exporter textfile

[Service]
ExecStart=/usr/local/bin/yarn-apps-exporter http://resource.manager.hostname:8088

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl start yarn-apps-exporter
sudo systemctl enable yarn-apps-exporter

Replacement Patterns

To have HIVE-{uuid} application name instead of many unique names:

  1. Put replacement\npattern\n lines to patterns.txt file:
{uuid}
[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
  1. Specify --patterns argument:
yarn-apps-exporter http://resource.manager.hostname:8088 --patterns patterns.txt

You can add more patterns in the next lines.

Metadata

Release files for yarn-apps-exporter 0.0.5

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

Source distribution (sdist)

Source distribution for yarn-apps-exporter 0.0.5
File Size Uploaded
yarn-apps-exporter-0.0.5.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yarn-apps-exporter 0.0.5
File Interpreter ABI Platform
yarn_apps_exporter-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 kB

Release files / yarn-apps-exporter-0.0.5.tar.gz

Download URL yarn-apps-exporter-0.0.5.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4fc5642a2b8aa838ba7a75e589c101dfb300f5d08d614721b00129e0935cd43f
BLAKE2b-256 checksum
How to use checksums
89a5101c89a29b3dae4573b4560e10eca2e12deb791e562518345a151a2db1b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release files / yarn_apps_exporter-0.0.5-py3-none-any.whl

Download URL yarn_apps_exporter-0.0.5-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
daa4c324c000e14609d34e0a25df0b759b38231eb2d8937b4e129aa85d7c1243
BLAKE2b-256 checksum
How to use checksums
a8180fc394713b621b81e3006a6fd3bf7e3d11c8394a84c231cacad5daec30bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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