Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

jlewi/hccli

Repository files navigation

hccli

CLI for honeycomb and observability queries

Usage instructs

  1. Set the endpoint of your AI that converts natural language into HoneycombQueries

     hccli config set aiEndpoint=http://localhost:5000
  2. Set the path to a file containing your honeycomb API key

    hccli  config set honeycombApiKeyFile=~/.honeycomb_api_key

Visualizing Honeycomb Queries

You can use Honeycomb's Query Sharing Feature to generate URLs that have the query directly in the browser which you can then just open. The CLI allows you to open these URLs directly from the command line and take a snapshot using chromedp.

  1. Start Chrome with remote debugging enabled

    chrome --remote-debugging-port=9222
  2. Open up your browser and login to Honeycomb

  3. Use the CLI to open the URL in the browser and take a snapshot

    hccli --query-file=model_query.json --dataset=service --base-url=https://ui.honeycomb.io/autobuilder/environments/prod/datasets/production --out-file=/tmp/screenshot.png

Limitations

Unfortunately the Honeycomb API only lets you fetch query data if your on the enterprise plan. See QueryData API Docs

About

CLI for honeycomb and observability queries

Resources

License

Stars

Watchers

Forks

Packages

No packages published