hccli

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL