Skip to content

Instantly share code, notes, and snippets.

@tailhook
Last active February 4, 2016 23:50
Show Gist options
  • Select an option

  • Save tailhook/2f6630fb8b8a73a6f6c5 to your computer and use it in GitHub Desktop.

Select an option

Save tailhook/2f6630fb8b8a73a6f6c5 to your computer and use it in GitHub Desktop.
with sink as sender:
sender.add_value("metric.name1", value=1)
sender.add_value("metric.name2", value=2.5)
sender.add_value("{prefix}.value".format(prefix="mymetrics"), value=2.5)
sender.add_value("server.{}.value", servername, value=12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment