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:
- 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}
- 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.
Source Distribution
Built Distribution
Close
Hashes for yarn_apps_exporter-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | daa4c324c000e14609d34e0a25df0b759b38231eb2d8937b4e129aa85d7c1243 |
|
MD5 | 0c623bebebe10df6de04b64c407c17bf |
|
BLAKE2b-256 | a8180fc394713b621b81e3006a6fd3bf7e3d11c8394a84c231cacad5daec30bd |