https://github.com/remeh/go-rrd
A golang client for talking to rrdcached
https://github.com/remeh/go-rrd
Last synced: 4 months 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 (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-17T13:46:26.000Z (over 7 years ago)
- Last Synced: 2025-02-27T19:13:05.741Z (5 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 [](https://goreportcard.com/report/github.com/multiplay/go-rrd) [](https://github.com/multiplay/go-rrd/blob/master/LICENSE) [](https://godoc.org/github.com/multiplay/go-rrd) [](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).
```