Comments (4)
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.
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.
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.
I created pull request for that #289
from puppet-collectd.
Related Issues (20)
- File['collectd.d'] -> Concat <| tag == 'collectd' |> is too greedy HOT 2
- Documentation for collectd::plugin::ping, needed to use class HOT 1
- Processes plugin configuration file not been deployed HOT 2
- service.pp incorrectly references static service name HOT 1
- plugin_conf_dir_mode too strict for /usr/lib/python2.7/site-packages/ HOT 1
- Hiera Support HOT 4
- ProcEvent plugin uses ProcessRegex instead of RegexProcess
- Puppet needs to run twice to apply CollectD configuration HOT 3
- Error with Plugin "Load" with collectd-5.9 and RHEL-8 HOT 1
- Migrate to module level hiera data.
- processes-config.conf file is not created HOT 10
- [Feature Request] Expose collectd::plugin::order to defined plugin classes
- collectd fails to load when using multiple hostname format values
- ovs_stats port number mismatch
- Python plugin template does not create valid module configuration
- collectd::plugin::virt plugin_instance_format should not be Enum
- postgresql plugin does not produce working database configuration with writer query
- [release request] v12.3.0 HOT 3
- Add Chrony Plugin
- Upgrade puppet-epel version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-collectd.