Skip to main content

Write YARN apps metrics for node_exporter textfile

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for yarn-apps-exporter, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size yarn_apps_exporter-0.0.5-py3-none-any.whl (3.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size yarn-apps-exporter-0.0.5.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page