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

Implement httpxml plugin alongside httpjson #8677

Closed
sandervandegeijn opened this issue Jan 12, 2021 · 2 comments
Closed

Implement httpxml plugin alongside httpjson #8677

sandervandegeijn opened this issue Jan 12, 2021 · 2 comments
Labels
feature request Requests for new plugin and for new features to existing plugins

Comments

@sandervandegeijn
Copy link
Contributor

Feature Request

There is the https://github.com/influxdata/telegraf/tree/master/plugins/inputs/httpjson plugin
Really useful, but my data is in XML format. Can this plugin be adapted to parse xml and do exactly the same

Proposal:

Implement httpxml plugin

Current behavior:

Desired behavior:

Same as httpjson but for xml

Use case:

Monitoring API's that give numbers of results for a query and to monitor that.

@sandervandegeijn sandervandegeijn added the feature request Requests for new plugin and for new features to existing plugins label Jan 12, 2021
@sjwang90
Copy link
Contributor

Closing this as we're already following issue #1758 and have an XML parser PR that you can use with inputs.http.

Also we have deprecated the httpjson plugin and you should use inputs.http with data_format = "http" if you're going to parse JSON - which you'll eventually set the data format to xml when the parser is completed.

@sandervandegeijn
Copy link
Contributor Author

Thank you, didn't notice that! Will look into it

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

No branches or pull requests

2 participants