Giter Club home page Giter Club logo

Comments (4)

txaj avatar txaj commented on June 24, 2024

This is a standard plugin (https://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_aggregation) that could be supported by this module -- but is currently not.

You need to implement the plugin in this module. Feel free to PR. Read the bottom of the README for some basic guidance. Feel free to ask for pointers if needed

from puppet-collectd.

aamerik avatar aamerik commented on June 24, 2024

Txaj,

Thank you for your response, I'm trying to implement this but I'm running into a design issue.
Technically this plugin can be used to aggregate the values of many other plugins, so its possible that more than one instance of the class will be applied to the host. I'm having issues understanding how to best support that usecase. This is what I have so far:

# https://collectd.org/wiki/index.php/Plugin:Aggregation
class collectd::plugin::aggregation (
  $ensure   = present,
  $interval = undef,
  $plugin   = undef,
  $type     = undef,
  $groupby  = undef,
  $calcsum  = undef,
  $calcavg  = undef,
) {
  collectd::plugin { "aggregation":
    ensure   => $ensure,
    content  => template('collectd/plugin/aggregation.conf.erb'),
    interval => $interval,
  }
}

from puppet-collectd.

txaj avatar txaj commented on June 24, 2024

look at the collectd::plugin defined type ; there is several arguments you can pass (especially the priority one) that you could make use of

If I understand well you can have 0..n Aggregation blocks ? If yes you can look for example in plugins like curl, postgresql or python on how we solved that. This is an advanced pattern indeed :-)

from puppet-collectd.

kurpipio avatar kurpipio commented on June 24, 2024

I created pull request for that #289

from puppet-collectd.

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.