module
Version:
v0.0.0-...-04b6ae1
Opens a new window with list of versions in this module.
Published: Feb 2, 2022
License: Apache-2.0
Opens a new window with license information.
README
¶
Prometheus Shell Exporter
Shell Exporter can execute Powershell or Bash scripts and transform its output to Prometheus metrics.
Metrics
Shell Exporter exposes metrics based on your Powershell or Bash scripts names. Examples of scripts can be finded at metrics folder
| Script name |
Metric name |
bash_gauge.sh |
bash_gauge |
pse_tcp_connection_metrics.ps1 |
pse_tcp_connection_metrics |
pse_tcp_dynamic_port_range_number_of_ports.ps1 |
pse_tcp_dynamic_port_range_number_of_ports |
Startup options
| Option |
Default value |
Description |
| --f |
./metrics |
scripts directory |
| --port |
9360 |
exporter port |
| --help |
- |
show help |
| --version |
- |
show exporter version |
Installing as Windows Service
- Download binary
- Install nssm via Chocolatey
| Action |
Command |
| install |
nssm install shell_exporter C:\shell-exporter.exe -f C:\scripts |
| remove |
nssm remove shell_exporter confirm |
Development
- Make branch from
master
- Reopen repo at vscode container
- Make necessary changes
- Push it to branch and make pull-request
Makefile targets
| Target |
Action |
| build |
build binary for linux and windows platforms |
| tidy |
remove all dependencies from the go.mod file which are not required in the source files |
| test |
run unit tests |
| lint |
run linting |
| run |
run exporter locally |
Directories
¶
Click to show internal directories.
Click to hide internal directories.