Giter Site home page Giter Site logo

honeyvent's Introduction

honeyvent

OSS Lifecycle

STATUS: this project is being sunset. See #75

CLI for sending individual events in to Honeycomb

Installation

If you have a working go environment in your build, the easiest way to install honeyvent is via go get.

go get github.com/honeycombio/honeyvent/

If you're using go 1.17 or greater you should use go install instead, since go get is deprecated.

go install github.com/honeycombio/honeyvent@latest

Usage

Call with a collection of names and values to send an event from the command line:

honeyvent -k <writekey> -d <dataset> -n field -v val -n field -v val ...

If you are targeting a local instance of Honeycomb, use the api_host parameter, e.g: --api_host=http://localhost:8888

The tool will detect floats and ints and send them as numbers; everything else turns in to strings. Quote any values that have spaces.

honeyvent's People

Contributors

bdarfler avatar bmbferreira avatar daiyi avatar dependabot[bot] avatar edsrzf avatar ismith avatar jamiedanielson avatar kentquirk avatar lizthegrey avatar maplebed avatar mikegoldsmith avatar mveitas avatar pkanal avatar robbkidd avatar samstokes avatar sleeping-barber avatar springmeyer avatar vreynolds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

honeyvent's Issues

Using --help results in a error code != 0

errAndExit("command line parsing error - call with --help for usage")

I use honeyvent --help in container builds to make sure the thing I just installed works. Well, I use it for everything else, but honeyvent says this is an error 1, and the container build fails. So I have no way to check if the binary I downloaded works or not.

Honeymarker got it right:

https://github.com/honeycombio/honeymarker/blob/main/main.go#L90-L94

I'ld do a PR, but I know zero Go :(

CLI does not print error on failure

Hi, I noticed that honeyvent will fail silently if the request failed. This is unexpected behaviour and can cause some confusing / frustration.

For example, the following command prints nothing and exits with 0.

$ honeyvent -k 123 -d test -n test -v 1

You have to set the verbose flag to see what is actually going on:

$ honeyvent -k 123 -d test -n test -v 1 -V
sending event &{123 test 1 https://api.honeycomb.io/ 2020-08-05 00:28:33.399661 +0200 CEST m=+0.001527713 <nil> {map[test:1] {{0 0} 0 0 0 0}} 0xc0000cc0f0 false {0 0}}
sent event map[body:{"error":"unknown API key - check your credentials"} duration:604.702ms error:<nil> status_code:401]

This example is pretty obvious, but in my case I was using an API key that did not have permission to send events. So it took a bit before I got what was going on...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.