Documentation
¶
Overview ¶
Package openobservecli is the module root. It exists only to embed packaged assets — the companion `openobserve` Skill — into the CLI binary, so that `openobserve-cli skill install` can deploy a version-matched copy regardless of how the binary itself was installed (npm, go install, prebuilt, source).
Index ¶
Constants ¶
View Source
const SkillRoot = "skills/openobserve"
SkillRoot is the path within SkillFS at which the Skill is rooted.
Variables ¶
View Source
var SkillFS embed.FS
SkillFS holds the companion Skill, rooted at "skills/openobserve".
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
gen-docs
command
Command gen-docs renders the openobserve-cli command tree into reference documentation under docs/cli/:
|
Command gen-docs renders the openobserve-cli command tree into reference documentation under docs/cli/: |
|
openobserve-cli
command
Command openobserve-cli lets Coding Agents query an OpenObserve (O2) observability backend: discover streams, run SQL searches over logs / metrics / traces, and inspect histograms — all with agent-friendly JSON output and structured errors.
|
Command openobserve-cli lets Coding Agents query an OpenObserve (O2) observability backend: discover streams, run SQL searches over logs / metrics / traces, and inspect histograms — all with agent-friendly JSON output and structured errors. |
|
internal
|
|
|
app
Package app wires the cobra command tree and runs the CLI.
|
Package app wires the cobra command tree and runs the CLI. |
|
auth
Package auth resolves OpenObserve credentials from configuration or secure storage.
|
Package auth resolves OpenObserve credentials from configuration or secure storage. |
|
cliflags
Package cliflags rewrites argv before cobra parses it, absorbing two common slips an LLM makes when generating a command line:
|
Package cliflags rewrites argv before cobra parses it, absorbing two common slips an LLM makes when generating a command line: |
|
config
Package config resolves CLI configuration from layered sources: CLI flags, environment variables, a .env file, a YAML config file and built-in defaults, in that precedence order (highest first).
|
Package config resolves CLI configuration from layered sources: CLI flags, environment variables, a .env file, a YAML config file and built-in defaults, in that precedence order (highest first). |
|
output
Package output renders command results for either agents or humans.
|
Package output renders command results for either agents or humans. |
|
timeutil
Package timeutil converts human-friendly time expressions into the microsecond Unix timestamps OpenObserve's search API expects.
|
Package timeutil converts human-friendly time expressions into the microsecond Unix timestamps OpenObserve's search API expects. |
|
update
Package update reports whether a newer openobserve-cli release is available.
|
Package update reports whether a newer openobserve-cli release is available. |
|
pkg
|
|
|
apiclient
Package apiclient is the OpenObserve API surface used by the CLI.
|
Package apiclient is the OpenObserve API surface used by the CLI. |
|
auth
Package auth models OpenObserve credentials and applies them to outgoing HTTP requests.
|
Package auth models OpenObserve credentials and applies them to outgoing HTTP requests. |
|
config
Package config is the OpenObserve config-file model shared by the CLI and the desktop GUI: the on-disk YAML schema (named contexts + current context + shared defaults), file IO, and context helpers.
|
Package config is the OpenObserve config-file model shared by the CLI and the desktop GUI: the on-disk YAML schema (named contexts + current context + shared defaults), file IO, and context helpers. |
|
constants
Package constants holds project-wide constants and build-time metadata.
|
Package constants holds project-wide constants and build-time metadata. |
|
credstore
Package credstore persists secrets for the OpenObserve tools.
|
Package credstore persists secrets for the OpenObserve tools. |
|
errors
Package errors defines the structured error model used across the CLI.
|
Package errors defines the structured error model used across the CLI. |
|
transport
Package transport provides a flavor-agnostic HTTP layer: a thin client that applies request decorators (auth, user-agent) and retries transient failures.
|
Package transport provides a flavor-agnostic HTTP layer: a thin client that applies request decorators (auth, user-agent) and retries transient failures. |
|
webauth
Package webauth holds the browser sign-in capture core shared by openobserve-cli and the o3 desktop app: cookie shaping, the login-success heuristic, the injected capture script, and the policy deciding when a captured state counts as a completed login.
|
Package webauth holds the browser sign-in capture core shared by openobserve-cli and the o3 desktop app: cookie shaping, the login-success heuristic, the injected capture script, and the policy deciding when a captured state counts as a completed login. |
|
webauth/cdp
Package cdp captures an OpenObserve browser session by driving a Chromium-family browser over the Chrome DevTools Protocol.
|
Package cdp captures an OpenObserve browser session by driving a Chromium-family browser over the Chrome DevTools Protocol. |
|
test
|
|
|
mockserver
command
Command mockserver is a tiny stand-in for an OpenObserve API, used by scripts/e2e.sh to exercise openobserve-cli end-to-end without real credentials.
|
Command mockserver is a tiny stand-in for an OpenObserve API, used by scripts/e2e.sh to exercise openobserve-cli end-to-end without real credentials. |
Click to show internal directories.
Click to hide internal directories.
