Giter Club home page Giter Club logo

prometheus_service_exporter's Introduction

service exporter

Introduction

The code in this repository implements a Prometheus exporter which monitors the status of processes ran by Upstart on Linux. Other init systems might be supported in the future, but the support for any is not currently under development.

How to build

Having installed a reasonably modern version of Go, run: go get github.com/trustly/prometheus_service_exporter. This should produce a binary under $GOPATH/bin.

Configuration

The binary expects at least two command line arguments:

  1. The port to listen on. All interfaces are currently always listened on. This argument is required because no port has been allocated for service exporter's use.
  2. The name of the service to monitor, e.g. "cron".

These two required arguments can be followed up with more service names.

Service exporter runs "service foo status" during normal operation to figure out the status and PID of the process started by each service. On some operating systems (such as Ubuntu) this requires the package "dbus" to be installed.

prometheus_service_exporter's People

Contributors

johto avatar markottt avatar perltrustly avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.