Skip to content

kylezh/gollectd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gollectd

This is yet another implementation of a collectd binary protocol parser in Go, heavenly inspired by gocollectd.

Installation

go get github.com/kimor79/gollectd

Usage

import (
    collectd github.com/kimor79/gollectd
)

types, err := collectd.TypesDBFile("/path/to/types.db")

buffer := make([]byte, 1452)
n, _, err := socket.ReadFromUDP(buffer)
packets, err := collectd.Packets(buffer[:n], types)

About

A go parser for the collectd binary protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%