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

Add tag for node type in mongodb input plugin #6729

Closed
rlodge opened this issue Nov 29, 2019 · 0 comments · Fixed by #6731
Closed

Add tag for node type in mongodb input plugin #6729

rlodge opened this issue Nov 29, 2019 · 0 comments · Fixed by #6731
Labels
feature request Requests for new plugin and for new features to existing plugins
Milestone

Comments

@rlodge
Copy link
Contributor

rlodge commented Nov 29, 2019

Feature Request

Right now, the mongodb input plugin inputs NodeType (PRI, etc) as the member_status field. This isn't as useful as a tag for querying in InfluxDB, so I propose adding a tag with this information as well.

Proposal:

Add a tag, node_type, to the output of the mongodb input plugin.

Current behavior:

A field member_status is added

Desired behavior:

Both a field member_status and a tag node_type would be added.

Use case:

To make it easy to distinguish between different node types when querying, or to group by different node types when querying, e.g. to show only stats from primary nodes.

rlodge added a commit to rlodge/telegraf that referenced this issue Nov 29, 2019
rlodge added a commit to rlodge/telegraf that referenced this issue Nov 29, 2019
@danielnelson danielnelson added the feature request Requests for new plugin and for new features to existing plugins label Dec 2, 2019
@danielnelson danielnelson added this to the 1.13.0 milestone Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants