-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[receiver/statsd] add attribute for source IP #15290
Comments
Pinging code owners: @jmacd @dmitryax. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Thinking about doing this, do I need to make the attribute the peer address configurable? |
@seankhliao Maybe instead of introducing another attribute, we can follow the same approach as done for tracing where the source ip is passed in a client request context. Please take a look into that |
Once parsed, the statsd receiver mixes everything into a few maps for aggregation. The metrics are only passed on the next consumer on flush intervals disassociated with the incoming requests. |
Ok makes sense, it probably should be set as a resource attribute in that case, maybe configured in settings. Not sure about using net.sock.peer.addr since it's a span attribute. Should it be a resource attribute? Does statsd metrics reporter send metrics about itself or not necessary? |
The statsd reporters I've seen are usually unaware of their own identity. |
I would love to have this. Right now I am trying to combine statsd with Kubernetes Attributes Processor, which can use a pod ip address to lookup additional metadata, like pod name and such. This would be useful when using statsd in a kubernetes environment. |
Additionally, it would be nice if the resource key was configurable. the K8s attributes processor can look for |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I had a go at implementing it with a configurable key in #18276 Though it uses an entire address ( |
A new config key source_address_key, if set, will be used to record the address of the sender of incoming metrics. Link to tracking Issue: #15290
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This was addressed by #18276 |
Is your feature request related to a problem? Please describe.
We want to enrich the metrics data we receive over the statsd protocol via the k8sattributes processor.
This requires having something to identify the source of metrics, either IP address, name, or uid.
Using the source IP address seems ideal as it doesn't require cooperation from the process producing the metrics.
Describe the solution you'd like
An attribute containing the source IP of the packet each metric came from.
Describe alternatives you've considered
Getting producers to include self identifying data: not always easy/possible
Run collector as sidecar: resource expensive and hard to coordinate well (eg k8s Jobs)
Additional context
No response
The text was updated successfully, but these errors were encountered: