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

[reciever/haproxy] Many ResourceMetrics emitted with the same resource #24921

Closed
dmitryax opened this issue Aug 5, 2023 · 1 comment · Fixed by #24923
Closed

[reciever/haproxy] Many ResourceMetrics emitted with the same resource #24921

dmitryax opened this issue Aug 5, 2023 · 1 comment · Fixed by #24923
Labels
bug Something isn't working receiver/haproxy

Comments

@dmitryax
Copy link
Member

dmitryax commented Aug 5, 2023

The receiver emits multiple resource metrics for each line in HAProxy stats. But they are all emitted with the same resource with only one attribute haproxy.addr set to the configured endpoint. proxy_name and service_name resource attributes (btw the names are also incorrect from OTel semantics perspective) are also supposed to be set, but they are marked as optional in metadata.yaml, so they are ignored by default.

@dmitryax dmitryax added bug Something isn't working needs triage New item requiring triage receiver/haproxy and removed needs triage New item requiring triage labels Aug 5, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2023

Pinging code owners for receiver/haproxy: @atoulme @MovieStoreGuy. See Adding Labels via Comments if you do not have permissions to add labels yourself.

dmitryax added a commit that referenced this issue Aug 6, 2023
…esources by default (#24923)

This is done by enabling and renaming the following resource attributes:
    - `proxy_name` -> `haproxy.proxy_name`
    - `service_name` -> `haproxy.service_name`

Fixes
#24921
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working receiver/haproxy
Projects
None yet
1 participant