https://github.com/bkbilly/worker_exporter
Prometheus SSH Exporter
https://github.com/bkbilly/worker_exporter
prometheus-exporter shell soap ssh
Last synced: about 2 months ago
JSON representation
Prometheus SSH Exporter
- Host: GitHub
- URL: https://github.com/bkbilly/worker_exporter
- Owner: bkbilly
- Created: 2019-04-03T17:29:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-22T09:30:35.000Z (about 7 years ago)
- Last Synced: 2025-10-27T04:57:01.176Z (8 months ago)
- Topics: prometheus-exporter, shell, soap, ssh
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prometheus Worker Exporter
This is an Exporter for Prometheus that runs any method that is needed, like shell commands, soap requests etc...
It only supports results that are integer and it will try to convert to that.
## Features:
- Multithread running commands
- Live changes to config file
- Multiple configurations as input
- Connect to remote server either with username/password or key authentication
- Support for multiple results with delimeter "|"
- Run custom methods by adding additional methods on Worker class
- Continues running even if it gets an error result (check terminal)
## Config:
Default path of configuration is `settings.yml`
The default Prefix is `worker_`
```yaml
port: 8001
scripts:
- name: test_name
description: 'Description of the Test'
runmethod: run_shell
cmd: ls /opt/ | wc -l
credentials:
user: username
host: 192.168.1.5
keyfile: 'privatekey.ppk'
- name: soap_test
description: 'Show Telephone Numbers'
runmethod: soap_timed_result
wsdl: http://192.168.2.50:7777/MySOAPTest?WSDL
service: shownumber
inputs:
cli: 21028182839
```
## Prometheus Config:
```yaml
scrape_configs:
- job_name: 'worker_exporter'
scrape_timeout: 30s
scrape_interval: 40s
static_configs:
- targets: ['localhost:8001']
```
## Important Info
This exported doesn't support filtering results on by URL Probe. Each call will run and return all results.