Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ei-grad/yarn-apps-exporter
https://github.com/ei-grad/yarn-apps-exporter
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ei-grad/yarn-apps-exporter
- Owner: ei-grad
- Created: 2020-02-29T21:34:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-15T14:38:23.000Z (over 4 years ago)
- Last Synced: 2024-12-15T22:27:47.435Z (19 days ago)
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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
Restart=always[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}
```2. Specify `--patterns` argument:
```bash
yarn-apps-exporter http://resource.manager.hostname:8088 --patterns patterns.txt
```You can add more patterns in the next lines.