Skip to content

Commit

Permalink
[reciever/haproxy] remove unused resource attributes (open-telemetry#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulali authored and jmsnll committed Nov 12, 2023
1 parent 97377d4 commit d0de9d6
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 188 deletions.
27 changes: 27 additions & 0 deletions .chloggen/haproxyreceiver-remove-resource-attributes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: bug_fix

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: haproxyreceiver

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Remove unused resource attributes.

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [24920]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:

# If your change doesn't affect end users or the exported elements of any package,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: [user]
6 changes: 0 additions & 6 deletions receiver/haproxyreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,5 @@ Cumulative number of sessions. Corresponds to HAProxy's `stot` metric.
| Name | Description | Values | Enabled |
| ---- | ----------- | ------ | ------- |
| haproxy.addr | address:port or "unix". IPv6 has brackets around the address. | Any Str | true |
| haproxy.algo | load balancing algorithm | Any Str | true |
| haproxy.iid | unique proxy id | Any Str | true |
| haproxy.pid | process id (0 for first instance, 1 for second, ...) | Any Str | true |
| haproxy.proxy_name | Proxy name | Any Str | true |
| haproxy.service_name | Service name (FRONTEND for frontend, BACKEND for backend, any name for server/listener) | Any Str | true |
| haproxy.sid | server id (unique inside a proxy) | Any Str | true |
| haproxy.type | (0=frontend, 1=backend, 2=server, 3=socket/listener) | Any Str | true |
| haproxy.url | The path to the HAProxy socket or HTTP URL. | Any Str | true |
24 changes: 0 additions & 24 deletions receiver/haproxyreceiver/internal/metadata/generated_config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 0 additions & 42 deletions receiver/haproxyreceiver/internal/metadata/generated_resource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 0 additions & 24 deletions receiver/haproxyreceiver/internal/metadata/testdata/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,10 @@ all_set:
resource_attributes:
haproxy.addr:
enabled: true
haproxy.algo:
enabled: true
haproxy.iid:
enabled: true
haproxy.pid:
enabled: true
haproxy.proxy_name:
enabled: true
haproxy.service_name:
enabled: true
haproxy.sid:
enabled: true
haproxy.type:
enabled: true
haproxy.url:
enabled: true
none_set:
metrics:
haproxy.bytes.input:
Expand Down Expand Up @@ -129,19 +117,7 @@ none_set:
resource_attributes:
haproxy.addr:
enabled: false
haproxy.algo:
enabled: false
haproxy.iid:
enabled: false
haproxy.pid:
enabled: false
haproxy.proxy_name:
enabled: false
haproxy.service_name:
enabled: false
haproxy.sid:
enabled: false
haproxy.type:
enabled: false
haproxy.url:
enabled: false
24 changes: 0 additions & 24 deletions receiver/haproxyreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,10 @@ status:
active: [atoulme, MovieStoreGuy]

resource_attributes:
haproxy.url:
description: The path to the HAProxy socket or HTTP URL.
enabled: true
type: string
haproxy.pid:
description: process id (0 for first instance, 1 for second, ...)
enabled: true
type: string
haproxy.sid:
description: server id (unique inside a proxy)
enabled: true
type: string
haproxy.iid:
description: unique proxy id
enabled: true
type: string
haproxy.type:
description: (0=frontend, 1=backend, 2=server, 3=socket/listener)
enabled: true
type: string
haproxy.addr:
description: address:port or "unix". IPv6 has brackets around the address.
enabled: true
type: string
haproxy.algo:
description: load balancing algorithm
enabled: true
type: string
haproxy.proxy_name:
description: Proxy name
enabled: true
Expand Down

0 comments on commit d0de9d6

Please sign in to comment.