Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/remeh/go-rrd
A golang client for talking to rrdcached
https://github.com/remeh/go-rrd
Last synced: about 1 month ago
JSON representation
A golang client for talking to rrdcached
- Host: GitHub
- URL: https://github.com/remeh/go-rrd
- Owner: remeh
- License: bsd-2-clause
- Created: 2017-09-28T14:11:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-17T13:46:26.000Z (about 7 years ago)
- Last Synced: 2024-10-12T22:31:49.208Z (2 months ago)
- Language: Go
- Size: 25.4 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-rrd [![Go Report Card](https://goreportcard.com/badge/github.com/multiplay/go-rrd)](https://goreportcard.com/report/github.com/multiplay/go-rrd) [![License](https://img.shields.io/badge/license-BSD-blue.svg)](https://github.com/multiplay/go-rrd/blob/master/LICENSE) [![GoDoc](https://godoc.org/github.com/multiplay/go-rrd?status.svg)](https://godoc.org/github.com/multiplay/go-rrd) [![Build Status](https://travis-ci.org/multiplay/go-rrd.svg?branch=master)](https://travis-ci.org/multiplay/go-rrd)
go-rrd is a [Go](http://golang.org/) client for talking to [rrdtool's](https://oss.oetiker.ch/rrdtool/index.en.html) [rrdcached](https://oss.oetiker.ch/rrdtool/doc/rrdcached.en.html).
Features
--------
* Full [rrdcached](https://oss.oetiker.ch/rrdtool/doc/rrdcached.en.html) Support.Installation
------------
```sh
go get -u github.com/multiplay/go-rrd
```Examples
--------Using go-rrd is simple just create a client and then send commands e.g.
```go
package mainimport (
"log"
"time""github.com/multiplay/go-rrd"
)func main() {
c, err := rrd.NewClient("192.168.1.102:10011")
if err != nil {
log.Fatal(err)
}
defer c.Close()if err := c.Create(
"test.rrd",
[]DS{NewGauge("watts", time.Minute*5, 0, 24000)},
[]RRA{NewAverage(0.5, 1, 864000)},
); err != nil {
log.Fatal(err)
}
}
```Documentation
-------------
- [GoDoc API Reference](http://godoc.org/github.com/multiplay/go-rrd).License
-------
go-rrd is available under the [BSD 2-Clause License](https://opensource.org/licenses/BSD-2-Clause).
```