CLI for honeycomb and observability queries
-
Set the endpoint of your AI that converts natural language into HoneycombQueries
hccli config set aiEndpoint=http://localhost:5000
- This should be an instance of this cog server
-
Set the path to a file containing your honeycomb API key
hccli config set honeycombApiKeyFile=~/.honeycomb_api_key
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.
-
Start Chrome with remote debugging enabled
chrome --remote-debugging-port=9222
-
Open up your browser and login to Honeycomb
-
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
Unfortunately the Honeycomb API only lets you fetch query data if your on the enterprise plan. See QueryData API Docs