Giter VIP home page Giter VIP logo

monit_exporter's Introduction

monit_exporter

Contributors Forks Stargazers Issues MIT License

Index

About

monit_exporter periodically scrapes the monit status and provides its data via HTTP to Prometheus.

Features

Support

Dependencies

This application is written in Go and has the following dependencies:

Setup

Requirements

This application has the following build requirements:

  • Git
  • Go

Installation

To build the application from source, simply run the following commands:

git clone https://github.com/liv-io/monit_exporter.git
cd monit_exporter
go build

Update

To rebuild the application with the latest Go release, execute the following commands:

export GO_VERSION="1.21.3"
cd ~
curl --location https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz --output ~/go${GO_VERSION}.linux-amd64.tar.gz
tar xzvf ~/go${GO_VERSION}.linux-amd64.tar.gz
sudo rm -rf /usr/local/src/go
sudo mv ~/go /usr/local/src
echo 'PATH=$PATH:/usr/local/src/go/bin:$GOPATH/bin' | sudo tee /etc/profile.d/go.sh
source /etc/profile.d/go.sh

git clone https://github.com/liv-io/monit_exporter.git
cd ./monit_exporter/
rm -f go\.mod  go\.sum
sed -i 's@go-version: .*@go-version: ${GO_VERSION}@g' .github/workflows/release.yml
go mod init github.com/liv-io/monit_exporter
go mod tidy

Usage

The application will load the config.toml file located in the same directory if present. Use the -conf flag to override the default configuration file name and location.

To run the application, simply execute the Go binary.

Parameters

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

License

Distributed under the MIT License.

See LICENSE file for more information.

Contact

Project: monit_exporter

Credits

Acknowledgements:

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.