/hccli

CLI for honeycomb and observability queries

Primary LanguageGoApache License 2.0Apache-2.0

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