YAML editor

View and edit the generated Collector YAML, and apply changes back to the canvas.

The YAML tab shows the OpenTelemetry Collector configuration that Telflo generates from the canvas. It is a code editor based on Monaco, with syntax highlighting, line numbers, and find.

How the two views sync

The canvas and the YAML are two views of the same configuration.

  • Edit the canvas, and the YAML updates immediately.
  • Edit the YAML, and the editor enters manual edit mode. Apply the changes to update the canvas.

In manual edit mode, the other editor tabs are disabled until you finish:

  • Apply validates the edited YAML and rebuilds the canvas from it. Apply is available once the YAML is valid.
  • Undo All discards the manual edits and leaves manual edit mode.

If a manual edit cannot be parsed or does not validate, the issue is reported in the YAML view so you can correct it before applying. See Validation.

Shortcuts

ShortcutAction
Ctrl/Cmd+ZUndo
Ctrl/Cmd+Shift+ZRedo
Ctrl/Cmd+FFind
Ctrl/Cmd+/Toggle comment

Export the configuration

  • Download YAML configuration in the toolbar saves the configuration as config.yaml.
  • Copy in the YAML view copies the YAML to the clipboard.

To run a configuration on collectors, use Fleet management, which keeps collectors in sync automatically instead of requiring a manual file copy.

Next steps

Last updated on

On this page