package
0.2.1
Repository: https://github.com/signalfx/ingest-protocols.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

GetDimensionsFromName tries to pull out dimensions out of name in the format name[k=v,f=x]-morename would return name-morename and extract dimensions (k,v) and (f,x) if we encounter something we don't expect use original this is a bit complicated to avoid allocations, string.split allocates, while slices inside same function, do not.
NewDatapoint creates a new datapoint from collectd's write_http endpoint JSON format defaultDimensions are added to the datapoint created, but will be overridden by any dimension values in the JSON Dimensions are pulled out of type_instance, plugin_instance and host in that order of precedence.
NewEvent creates a new event from collectd's write_http endpoint JSON format defaultDimensions are added to the event created, but will be overridden by any dimension values in the JSON.
NewListener serves http collectd requests.
SetupCollectdPaths tells the router which paths the given handler (which should handle collectd json) should see.

# Structs

JSONDecoder can decode collectd's native JSON datapoint format.
ListenerConfig controls optional parameters for collectd listeners.
ListenerServer will listen for collectd datapoint connections.

# Type aliases

JSONWriteBody is an alias.
JSONWriteFormat is an alias.