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
File details
Details for the file yarn-apps-exporter-0.0.5.tar.gz
.
File metadata
- Download URL: yarn-apps-exporter-0.0.5.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fc5642a2b8aa838ba7a75e589c101dfb300f5d08d614721b00129e0935cd43f |
|
MD5 | 5bbfc1041cdfe32d51f9f1f5bba58d4d |
|
BLAKE2b-256 | 89a5101c89a29b3dae4573b4560e10eca2e12deb791e562518345a151a2db1b3 |
File details
Details for the file yarn_apps_exporter-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: yarn_apps_exporter-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | daa4c324c000e14609d34e0a25df0b759b38231eb2d8937b4e129aa85d7c1243 |
|
MD5 | 0c623bebebe10df6de04b64c407c17bf |
|
BLAKE2b-256 | a8180fc394713b621b81e3006a6fd3bf7e3d11c8394a84c231cacad5daec30bd |