Giter Club home page Giter Club logo

Comments (6)

santagada avatar santagada commented on August 17, 2024

An example:

I have supervisord configured to run a lot of server daemons that I wish to monitor. I would like that amon collector would ask supervisor_ctl for process names, groups and pid so it can monitor those processes as if I had manually added them to 'process_checks' configuration myself. This way I only need to configure my daemons in one location.

from amon.

martinrusev avatar martinrusev commented on August 17, 2024

That sounds good. But I am not sure if I can work on that specific feature anytime soon.
But it's not hard to implement - if you like, you can do that.
The only thing Amon cares about is a list with all the processes in defaults.py
So you can create a small python script that checks /etc/supervisord or supervisorctl and returns a list with all the values,
than in defaults.py - you can import the variables from the script and replace the PROCESS_CHECKS list defaults.

from amon.

santagada avatar santagada commented on August 17, 2024

The thing is, I don't have process names, but PIDs... but I will see what can I do and then send you a pull request.

from amon.

fredrik avatar fredrik commented on August 17, 2024

This would be an ace feature. How are you going about it, @santagada?

from amon.

santagada avatar santagada commented on August 17, 2024

Right now my instance creation script both creates the supervisord configuration and adds the process names to amon conf.

Later what I plan to do it to modify amond to query supervisor using the xmlrpc interface... the thing is, should it do it once whant loading the configuration or should it try to refresh the data? Also there could be a supervisor plugin atached to an event to send event data to amon.

from amon.

fredrik avatar fredrik commented on August 17, 2024

Alright, excellent. Querying supervisor sounds like the reasonable next step. I definitely think it should refresh the configuration (event driven, optimally).

from amon.

Related Issues (20)

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.