Git Product home page Git Product logo

metrx's Introduction

metrx

A simple and extensible metrics collection system for InfluxDB.

About

This project came about because I was wanting to monitor services that don't already have support from tools like Telegraf or Varken.

I also wanted to make something easily extensible, even at runtime. Along with the included modules (which will grow and improve over time), metrx will also dynamically load modules on startup. See Extending for more info.

Configuration

Copy config.example.yaml to config.yaml and edit as needed. Each service needs at least the type, interval, and config keys. The keys under config will depend on the type of service module being used.

Usage

Docker/Podman CLI:

docker run \
  --name metrx \
  -v /path/to/config/folder:/config \
  -v /path/to/custom/modules:/app/modules/custom \ #optional
  ghcr.io/reyemxela/metrx:latest

# alternate config mount: -v ./config.yaml:/config/config.yaml

Extending

When bind-mounting /app/modules/custom, metrx will dynamically load any *.py files found, allowing totally custom modules to be used. See __template.py in the modules directory for the basic layout needed.

Modules found in custom also override any built-in modules with the same name.

Docker/Podman: Additionally, if a requirements.txt file is present in the custom folder, pip will attempt to install from it on container startup, so custom modules can use any 3rd-party libraries needed.

Contributing

Starting out, I'm mainly focusing on including support for services I'm personally running and monitoring, but PRs are more than welcome!

metrx's People

Contributors

reyemxela avatar

Watchers

 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.