Skip to content

feat(foundryctl): mechanic initial layout - #129

Open
mvaldes14 wants to merge 4 commits into
mainfrom
feat/initial-mechanic-spec
Open

feat(foundryctl): mechanic initial layout#129
mvaldes14 wants to merge 4 commits into
mainfrom
feat/initial-mechanic-spec

Conversation

@mvaldes14

Copy link
Copy Markdown
Collaborator

Features

  • Initial spec for mechanic, wired into the main CLI
  • Introduces the mechanic inspect command to target false alerts troubleshooting
  • Command can parse both formats with inspect signoz alert ID and inspect signoz/alert/id
  • Allows to provide overrides for custom hostnames and ports

@mvaldes14
mvaldes14 requested a review from therealpandey as a code owner June 1, 2026 18:22
@mvaldes14

Copy link
Copy Markdown
Collaborator Author

Some basic testing

Command shows the inspect subcommand

➜  go run ./cmd/foundryctl/ mechanic --help
Diagnose a running deployment.

Usage:
  foundryctl mechanic [command]

Available Commands:
  inspect     Inspect a named entity within a deployment.

Subcommand shows the potential parameters and formats accepted

➜  go run ./cmd/foundryctl/ mechanic inspect --help
Inspect a named entity within a deployment.

The resource path accepts both slash and positional forms, with an optional
leading casting kind (resolved from the lock file when omitted):

  foundryctl mechanic inspect signoz alert <id>
  foundryctl mechanic inspect signoz/alert/<id>
  foundryctl mechanic inspect installation signoz alert <id>
  foundryctl mechanic inspect telemetrystore table <name>

When the deployment was not provisioned by foundry, supply connection details
via flags (or their environment variables) to override the lock file.

Usage:
  foundryctl mechanic inspect <molding> <entity-kind> <entity-id> [flags]

Flags:
      --clickhouse-dsn string   Override the ClickHouse DSN, user:pass@host:port (default $FOUNDRY_CLICKHOUSE_DSN).
  -h, --help                    help for inspect
      --metastore-dsn string    Override the metastore DSN (default $FOUNDRY_METASTORE_DSN).
      --signoz string           Override the SigNoz API address, host:port (default $FOUNDRY_SIGNOZ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant