Skip to content

Instantly share code, notes, and snippets.

@jacoelho
Created August 5, 2016 20:49
Show Gist options
  • Save jacoelho/0a890007cb4aacdc8066d0795770f08e to your computer and use it in GitHub Desktop.
Save jacoelho/0a890007cb4aacdc8066d0795770f08e to your computer and use it in GitHub Desktop.
hostname, _ := os.Hostname()
value := someWork()
fmt.Printf("PUTVAL %s/my-plugin/gauge-my_metric interval=%d N:%s\n", hostname, interval, value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment