-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error generating telegraf token #577
Comments
Error message could be enriched to highlight the specific problem. Currently, it is too generic to figure out how to resolve or even where to look. |
@timhallinflux i'm looking at it now. |
yeah...when the template is imported, it is using an environment variable to pick-up the bucket. However, we recently introduced a capability to edit the telegraf config from the UI. I edited the config to supply the specific bucket that I wanted to use. I think there are potentially a few possible scenarios here to address that, but open to collaborating on the options further:
@russorat other thoughts? |
For scenario #1, where no bucket is specified AT ALL, that's a template configuration (.yml) file issue. Best practices for templates are to use an environment variable for the telegraf config file when variables are used in dashboards. I ran into this when developing the community template for Air Quality. @mhall119 can verify. For scenario #2, this is an issue that @ssoroka has mentioned as a known problem with editable config files for telegraf. @ssoroka recommends that wide open config files be replaced with "forms" that allow only certain, defined values which can be validated. Trying to implement this in its current form would be difficult. For scenario #3, again, this is a .yml file issue. NO variables should be used in the telegraf config file. A bucket should be defined in the telegraf config file as either hard-coded or an environment variable. There's no way to enforce that in the current paradigm unless we enforce it at the time that the community template is created. @mhall119, any comments? |
Fix on hold until Telegraf Assistant work is addressed. |
@kristinarobinson any idea of the status on this? |
To repro:
expected behavior:
i tried to edit the telegraf config to have an explicit bucket instead of an env variable, but that didn't help either.
The text was updated successfully, but these errors were encountered: