Skip to main content

infrahubctl troubleshooting

Usage:

$ infrahubctl troubleshooting [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • trace-sample-ratio: Read, set or clear the temporary trace...

infrahubctl troubleshooting trace-sample-ratio​

Read, set or clear the temporary trace sampling ratio.

Usage:

$ infrahubctl troubleshooting trace-sample-ratio [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • get: Show the trace sampling ratio of the API...
  • set: Set a temporary trace sampling ratio on...
  • clear: Clear the temporary trace sampling ratio,...

infrahubctl troubleshooting trace-sample-ratio get​

Show the trace sampling ratio of the API server that answers.

Usage:

$ infrahubctl troubleshooting trace-sample-ratio get [OPTIONS]

Options:

  • --config-file TEXT: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml]
  • --help: Show this message and exit.

infrahubctl troubleshooting trace-sample-ratio set​

Set a temporary trace sampling ratio on every API server and task worker.

Usage:

$ infrahubctl troubleshooting trace-sample-ratio set [OPTIONS]

Options:

  • --ratio FLOAT RANGE: Share of new root traces to record [0<=x<=1; required]
  • --duration INTEGER RANGE: Number of seconds the ratio applies [1<=x<=86400; required]
  • --config-file TEXT: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml]
  • --help: Show this message and exit.

infrahubctl troubleshooting trace-sample-ratio clear​

Clear the temporary trace sampling ratio, so every process uses its default ratio again.

Usage:

$ infrahubctl troubleshooting trace-sample-ratio clear [OPTIONS]

Options:

  • --config-file TEXT: [env var: INFRAHUBCTL_CONFIG; default: infrahubctl.toml]
  • --help: Show this message and exit.