Code Monkey home page Code Monkey logo

prometheus-shell-exporter's Introduction

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

  1. Download binary
  2. 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

  1. Make branch from master
  2. Reopen repo at vscode container
  3. Make necessary changes
  4. 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

prometheus-shell-exporter's People

Contributors

vitalyu avatar s-buhar0v avatar windemiatrix avatar sfairat15 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.