Skip to content

Go

To send data to Tornimo, you need to install some graphite-compatibile library. For example graphigo. It can be installed using go get.

go get gopkg.in/fgrosse/graphigo.v2

Example showing how to send some example metric using graphigo library.

client := graphigo.Client{
  Address: yourTornimoPushURL + ":2003",
  Prefix:  yourTornimoToken + ".prefix",
}

if err := client.Connect(); err != nil {
  panic(err)
}
defer client.Close()

client.SendValue("your.example.metric", 10)