Use the Code Editor
Telegraf Controller is in Private Alpha
Telegraf Controller is in private alpha. If you are interested in being a part of the private alpha program, please sign up:
While in alpha, Telegraf Controller is not meant for production use. The Telegraf Controller documentation is a work in progress, and we are actively working to improve it. If you have any questions or suggestions, please submit an issue. We welcome any and all contributions.
Use the Telegraf Controller Code Editor to upload, write, or edit raw Telegraf configuration TOML.

The Code Editor is the default view when managing a configuration. If it is not displayed, click the Code Editor tab.
Switching from the Code Editor to the Telegraf Builder
Switching from the Code Editor to the Telegraf Builder will reformat the TOML. When reformatting, Telegraf Builder does not preserve the following:
- Comments
- Indentation
- Plugin Order
Upload TOML
To upload a Telegraf configuration file to Telegraf Controller, click Upload files to open a file selection dialogue box or drag and drop your configuration file into the Code Editor.
Telegraf Controller supports TOML-formatted files with the following extensions:
.toml.conf.txt
Uploaded configuration files fully replace any existing configuration TOML.
Manually write or edit TOML
The Code Editor is a feature-rich, browser-based editor that lets you write code using keyboard shortcuts similar to those in popular editors and IDEs.
Keymaps
The Code Editor uses CodeMirror’s default keymaps. The following bindings come from the reference keymaps.
ArrowLeft: Move left one character (Shift selects)ArrowRight: Move right one character (Shift selects)ArrowUp: Move up one line (Shift selects)ArrowDown: Move down one line (Shift selects)Ctrl+ArrowLeft: Move left by word group (Shift selects)Ctrl+ArrowRight: Move right by word group (Shift selects)Alt+ArrowLeft: Move left by syntax unit (Shift selects)Alt+ArrowRight: Move right by syntax unit (Shift selects)⌘←(macOS only): Move to line start (Shift selects)⌘→(macOS only): Move to line end (Shift selects)Alt+ArrowUp: Move line upAlt+ArrowDown: Move line downShift+Alt+ArrowUp: Copy line upShift+Alt+ArrowDown: Copy line downCtrl+Alt+ArrowUp: Add cursor aboveCtrl+Alt+ArrowDown: Add cursor below⌘↑(macOS only) orCtrl+Home: Move to document start (Shift selects)⌘↓(macOS only) orCtrl+End: Move to document end (Shift selects)⌃↑(macOS only) orPageUp: Page up (Shift selects)⌃↓(macOS only) orPageDown: Page down (Shift selects)Home: Move to line boundary backward (Shift selects)End: Move to line boundary forward (Shift selects)EnterandShift+Enter: Insert newline and indentCtrl+Enter: Insert blank lineCtrl+A: Select allAlt+L: Select lineCtrl+I: Select parent syntaxEsc: Simplify selectionCtrl+[: Indent lessCtrl+]: Indent moreShift+Ctrl+K: Delete lineShift+Ctrl+\: Jump to matching bracketCtrl+/: Toggle line commentShift+Alt+A: Toggle block commentBackspace: Delete character backwardDelete: Delete character forwardCtrl+Backspace: Delete word group backwardCtrl+Delete: Delete word group forward⌘⌫(macOS only): Delete to line start⌘ fn⌫(macOS only): Delete to line end
Dynamic value syntax highlighting
The Telegraf Controller Code Editor automatically applies special syntax highlighting to dynamic values (parameters, environment variables, and secrets) in your configuration TOML to make them more visible.
For more information about using dynamic values, see Use dynamic values.
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Telegraf and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.