Skip to content

Go API clarification #16727

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

Open
aep-sunlife opened this issue Apr 3, 2025 · 4 comments
Open

Go API clarification #16727

aep-sunlife opened this issue Apr 3, 2025 · 4 comments
Labels
feature request Requests for new plugin and for new features to existing plugins

Comments

@aep-sunlife
Copy link

Use Case

Hi,

What are some implementations of the Metrics interface?

Can we please implement a Telegraf (socket, UDP) client?

Expected behavior

N/A

Actual behavior

N/A

Additional info

No response

@aep-sunlife aep-sunlife added the feature request Requests for new plugin and for new features to existing plugins label Apr 3, 2025
@srebhan
Copy link
Member

srebhan commented Apr 3, 2025

Can you elaborate on what you want to do? You can send data to Telegraf via e.g. TCP, UDP (via the socket listener input plugin) or HTTP (via the http_listener_v2 input plugin). The data should be formatted in any of the supported data formats...

@srebhan srebhan added the waiting for response waiting for response from contributor label Apr 3, 2025
@aep-sunlife
Copy link
Author

I now see the line protocol concrete implementation in https://pkg.go.dev/github.com/influxdata/line-protocol/v2/lineprotocol

Would be helpful to link to more of these concrete types from the Metric implementation doc string.

@telegraf-tiger telegraf-tiger bot removed the waiting for response waiting for response from contributor label Apr 3, 2025
@aep-sunlife
Copy link
Author

Can the Bytes method in the line protocol be promoted to the Metric interface?

@srebhan
Copy link
Member

srebhan commented Apr 14, 2025

Sorry but the docs are user facing and I doubt that any user is interested in which library we use. However, you didn't answer what you are trying to do yet so it's hard to answer your question without context...

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