Releases: collectd/go-collectd
Releases · collectd/go-collectd
0.5.0
Package collectd.org/config
- New package to represent collectd configurations.
- The
Blocktype corresponds tooconfig_item_t, theValuetype corresponds tooconfig_value_t. Block.Unmarshalmaps aconfig.Blockhierarchy to a Go type.Block.MarshalTextproduces a text output that could be parsed by collectd as a config file.- The
Porttype represents a port number in the configuration. It demonstrates how to override the default unmarshaling rules to implement specialized behavior, such as range checking.
Package collectd.org/plugin
- Configuration callbacks, i.e. types implementing the
Configurerinterface, have been added. They are registered withRegisterConfig. Thanks to @alowde! - The new
LogWritertype implements anio.Writeron top of collectd's logging infrastructure. This allows, for example, to create alog.Loggerbacked by collectd.
0.4.0
Package collectd.org/api
- The new
ValueList.Clonemethod returns a copy of the value list. - The new
Fanouttype replaces theDispatchertype. - The
WriterFunctype wraps a function to implement theWriterinterface. - Meta data has been added to the
ValueListtype.
Package collectd.org/cdtime
NewandTime.Time: ensure that"time".Timemaps toTime(0)and vice versa.- Test coverage has been improved.
Package collectd.org/exec
Executor.Run: Support for context cancellation has been added.- Test coverage has been significantly improved.
Package collectd.org/export
Run: Support for context cancellation has been added.Run: No longer aborts if theWriterfails.
Package collectd.org/format
Putval: Support for meta data has been added.- Test coverage has been improved.
Package collectd.org/meta
- New package implementing a type meta data,
Data.
Package collectd.org/network
- Support for passing an existing connection to the server has been added.
Server.ListenAndWrite: Support for context cancellation has been added.- Test coverage has been significantly improved.
Package collectd.org/plugin
- Support for log callbacks has been added.
- Support for shutdown callbacks has been added. Thanks to @alowde!
- An out-of-bounds write triggered by the
Writefunction has been fixed. #26 - The
NewWriterfunction has been removed in favor ofapi.WriterFunc. - The
Readerinterface has been changed to expect acontext.Contextto be passed to read callbacks. The context is cancelled depending on collectd'sTimeoutsetting (which defaults to 2× interval). RegisterRead: collection interval and group name can optionally be specified.- The new
Intervalfunction returns the interval of read callbacks. - The new
Namefunction returns the name of the plugin. - Strings passed to the Register… functions are now freed on shutdown.
- Test coverage has been significantly improved.
Package collectd.org/rpc
- Re-generated protobufs with interface version 4.