Skip to content
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

ifName agent default value #8011

Open
4 tasks done
Tracked by #9478
Hipska opened this issue Aug 20, 2020 · 10 comments
Open
4 tasks done
Tracked by #9478

ifName agent default value #8011

Hipska opened this issue Aug 20, 2020 · 10 comments
Labels
area/snmp breaking change Improvement to Telegraf that requires changes to the plugin or agent; for minor/major releases feature request Requests for new plugin and for new features to existing plugins plugin/processor

Comments

@Hipska
Copy link
Contributor

Hipska commented Aug 20, 2020

Feature Request

Opening a feature request kicks off a discussion.
As discussed in #7763 (comment)

Proposal:

Let the default value of these be the same:

  • agent for processors.ifname
  • agent_host for inputs.snmp
  • agent_address for inputs.sflow

Current behavior:

The default value (agent) mostly never useful.

Desired behavior:

The default value should be a logical one that makes sense or most users would not need to change.

Tasks

Preview Give feedback
  1. area/snmp feat plugin/input ready for final review
    powersj
  2. area/network feat plugin/input
    srebhan
  3. area/snmp docs plugin/processor ready for final review
    srebhan
  4. feat plugin/processor waiting for response
    srebhan
@Hipska Hipska added the feature request Requests for new plugin and for new features to existing plugins label Aug 20, 2020
@Hipska
Copy link
Contributor Author

Hipska commented Dec 17, 2020

@reimda what do you think?

@Hipska
Copy link
Contributor Author

Hipska commented Feb 3, 2021

Ping @ssoroka @reimda

@reimda
Copy link
Contributor

reimda commented Apr 14, 2021

I agree that the tags across these three plugins should match. It was an oversight from the beginning that they don't match.

We haven't been able to change the default because it will break anyone who is using the default. We can change the default on a major release (2.0) because major releases won't guarantee settings compatibility.

For now we ought to prepare for a change in 2.0 by choosing the tag we want to use across all three plugins and deprecating the defaults in all three plugins that don't match the tag we chose.

@sjwang90 sjwang90 added this to the 2.0.0 milestone Aug 3, 2021
@sjwang90 sjwang90 added the breaking change Improvement to Telegraf that requires changes to the plugin or agent; for minor/major releases label Aug 3, 2021
@Hipska
Copy link
Contributor Author

Hipska commented Dec 3, 2021

According to #4413, source would be the most logical default value.

@Hipska Hipska changed the title ifName plugin default tag value ifName tag default value Feb 9, 2022
@Hipska Hipska changed the title ifName tag default value ifName agent default value Feb 14, 2022
@srebhan
Copy link
Member

srebhan commented Jan 26, 2023

@Hipska I think the source tag is already taken e.g. in inputs.snmp. Maybe we should add an additional agent tag for the inputs so you can tag_exclude the old one if you wish but downstream queries still work!?

@Hipska
Copy link
Contributor Author

Hipska commented Jan 26, 2023

No, not by default. Only if you added a OID as tag and gave it that name.

@srebhan
Copy link
Member

srebhan commented Jan 26, 2023

To which of they points is your comment? ;-)

@Hipska
Copy link
Contributor Author

Hipska commented Jan 27, 2023

The first one, inputs.snmp does not have a source tag, it is using agent_host as explained in my initial post.

@powersj
Copy link
Contributor

powersj commented Jan 31, 2023

next steps: look at adding the source tag to the above three plugins in addition to the existing tags. Then determine if/when what minor release we could remove the old ones with documentation as to how to use the old tag name (e.g. processor) if users wanted to.

@powersj powersj removed this from the 2.0.0 milestone Feb 2, 2023
@Hipska Hipska self-assigned this Oct 16, 2023
@Hipska
Copy link
Contributor Author

Hipska commented Oct 16, 2023

@powersj I'm not sure how to deprecate the agent tag default value for the ifname processor. Did the other 2 already..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/snmp breaking change Improvement to Telegraf that requires changes to the plugin or agent; for minor/major releases feature request Requests for new plugin and for new features to existing plugins plugin/processor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants