Skip to content

Releases: collectd/go-collectd

0.5.0

05 Jun 08:05
b6ba26f
Compare
Choose a tag to compare

Package collectd.org/config

  • New package to represent collectd configurations.
  • The Block type corresponds to oconfig_item_t, the Value type corresponds to oconfig_value_t.
  • Block.Unmarshal maps a config.Block hierarchy to a Go type.
  • Block.MarshalText produces a text output that could be parsed by collectd as a config file.
  • The Port type 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 Configurer interface, have been added. They are registered with RegisterConfig. Thanks to @alowde!
  • The new LogWriter type implements an io.Writer on top of collectd's logging infrastructure. This allows, for example, to create a log.Logger backed by collectd.

0.4.0

07 May 13:18
a3b6e91
Compare
Choose a tag to compare

Package collectd.org/api

  • The new ValueList.Clone method returns a copy of the value list.
  • The new Fanout type replaces the Dispatcher type.
  • The WriterFunc type wraps a function to implement the Writer interface.
  • Meta data has been added to the ValueList type.

Package collectd.org/cdtime

  • New and Time.Time: ensure that "time".Time maps to Time(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 the Writer fails.

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 Write function has been fixed. #26
  • The NewWriter function has been removed in favor of api.WriterFunc.
  • The Reader interface has been changed to expect a context.Context to be passed to read callbacks. The context is cancelled depending on collectd's Timeout setting (which defaults to 2× interval).
  • RegisterRead: collection interval and group name can optionally be specified.
  • The new Interval function returns the interval of read callbacks.
  • The new Name function 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.