-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
processors should run in the order they appear in the config #8016
Comments
I think this is very important. I couldn't figure out how to use processor enum | converter. I have a numeric field that I want to store string values as a tag according to the numeric value in the field. For example I want to convert. |
@mertbakir you can add |
This will be part of Telegraf 2.0 |
@ssoroka Would we deprecate the |
I agree file order should be the default as random processor order is highly unexpected, generates hard to find intermittent bugs, creates data in the DB that can be hard to correct, and is not highlighted clearly in the docs. It really needs some big red flashing warnings! I even raised this SO and got no response which to me implies it is not widely known about. I eventually stumbled on the I don't think this can wait till 2.0. I think this is a bug generator that needs fixing asap. |
Regarding
I have to remark, telegraf config is often spread over many files (because of own configgenerator etc.), so execution order is not (easy) comprehensible and so you have always think about correct processing order (using order = x or tagpass). |
This is absolutely the case in any logically-designed configuration layout. If processors are to be run in the order they appear in files then it would also be necessary to load files in some sane order, for example to at least have the chance to use numerical prefixes on files to determine ordering. |
Yeah, even though I think this would be a helpful convenience item for simple configurations, this is absolutely not a replacement for the |
A related issue is that a Within each stanza category, of course, the order of generation should be controlled by the plugin order in the associated command-line option, such as |
Agreed, I also ran into this issue today. I saw the order config, but it seemed sensible that that was only to customize order in some cases, with the default being file order, which is apparently not the case. Fixing this to default to file order (i.e. when |
Without specifying order, processors are loaded and run in a random order. This makes no sense, as the order they're specified in the .toml file is correct most of the time.
Relevant telegraf.conf:
eg this .conf needs
order
to work properlyExpected behavior:
order = n
still exists and not deprecated and can override default config orderActual behavior:
The text was updated successfully, but these errors were encountered: