Giter VIP home page Giter VIP logo

monit_exporter's Introduction

Monit Exporter for Prometheus

Simple server that periodically scrapes monit status and exports checks information via HTTP for Prometheus.

Build it:

go build

Run it:

./monit_exporter

Configuration

The application will look for configuration in "config.toml" file located in the same directory. Use -conf flag to override config file name and location.

Configuration parameters:

Parameter Description Default
listen_address address and port to bind localhost:9388
metrics_path relative path to expose metrics /metrics
ignore_ssl whether of not to ignore ssl errors false
monit_scrape_uri uri to get monit status http://localhost:2812/_status?format=xml&level=full
monit_user user for monit basic auth, if needed none
monit_password password for monit status, if needed none

monit_exporter's People

Contributors

melifaro avatar zonorti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

monit_exporter's Issues

The determination of the number of service restarts metrics

Currently monit_export grabs "up" and "checkStatus" two metrics
But can't get the information of pid change from it to determine the number of restarts
And, I found that to get the service pid will encounter different status pid information is null

Not compatible with latest Monit Version

The source is not building with go, Although go environment is perfectly configured.
On building "monit_exporter.go" it gives the following error

./monit_exporter.go:209:35: undefined: prometheus.Handler

I also used the old release
Getting this Error
INFO[0000] Starting monit_exporter: localhost:9388 file=monit_exporter.go line=208
ERRO[0025] Error parsing data from monit: XML syntax error on line 1: unquoted or missing attribute value in element file=monit_exporter.go line=174
ERRO[0125] Error parsing data from monit: XML syntax error on line 1: unquoted or missing attribute value in element file=monit_exporter.go line=174
ERRO[0128] Error parsing data from monit: XML syntax error on line 1: unquoted or missing attribute value in element file=monit_exporter.go line=174

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.