Skip to content

Commit d0de9d6

Browse files
sakulalijmsnll
authored andcommitted
[reciever/haproxy] remove unused resource attributes (open-telemetry#26702)
open-telemetry#24920
1 parent 97377d4 commit d0de9d6

File tree

9 files changed

+29
-188
lines changed

9 files changed

+29
-188
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: bug_fix
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: haproxyreceiver
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Remove unused resource attributes.
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [24920]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# If your change doesn't affect end users or the exported elements of any package,
21+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22+
# Optional: The change log or logs in which this entry should be included.
23+
# e.g. '[user]' or '[user, api]'
24+
# Include 'user' if the change is relevant to end users.
25+
# Include 'api' if there is a change to a library API.
26+
# Default: '[user]'
27+
change_logs: [user]

receiver/haproxyreceiver/documentation.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,5 @@ Cumulative number of sessions. Corresponds to HAProxy's `stot` metric.
241241
| Name | Description | Values | Enabled |
242242
| ---- | ----------- | ------ | ------- |
243243
| haproxy.addr | address:port or "unix". IPv6 has brackets around the address. | Any Str | true |
244-
| haproxy.algo | load balancing algorithm | Any Str | true |
245-
| haproxy.iid | unique proxy id | Any Str | true |
246-
| haproxy.pid | process id (0 for first instance, 1 for second, ...) | Any Str | true |
247244
| haproxy.proxy_name | Proxy name | Any Str | true |
248245
| haproxy.service_name | Service name (FRONTEND for frontend, BACKEND for backend, any name for server/listener) | Any Str | true |
249-
| haproxy.sid | server id (unique inside a proxy) | Any Str | true |
250-
| haproxy.type | (0=frontend, 1=backend, 2=server, 3=socket/listener) | Any Str | true |
251-
| haproxy.url | The path to the HAProxy socket or HTTP URL. | Any Str | true |

receiver/haproxyreceiver/internal/metadata/generated_config.go

Lines changed: 0 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/haproxyreceiver/internal/metadata/generated_config_test.go

Lines changed: 0 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/haproxyreceiver/internal/metadata/generated_metrics_test.go

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/haproxyreceiver/internal/metadata/generated_resource.go

Lines changed: 0 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/haproxyreceiver/internal/metadata/generated_resource_test.go

Lines changed: 2 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/haproxyreceiver/internal/metadata/testdata/config.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,10 @@ all_set:
5656
resource_attributes:
5757
haproxy.addr:
5858
enabled: true
59-
haproxy.algo:
60-
enabled: true
61-
haproxy.iid:
62-
enabled: true
63-
haproxy.pid:
64-
enabled: true
6559
haproxy.proxy_name:
6660
enabled: true
6761
haproxy.service_name:
6862
enabled: true
69-
haproxy.sid:
70-
enabled: true
71-
haproxy.type:
72-
enabled: true
73-
haproxy.url:
74-
enabled: true
7563
none_set:
7664
metrics:
7765
haproxy.bytes.input:
@@ -129,19 +117,7 @@ none_set:
129117
resource_attributes:
130118
haproxy.addr:
131119
enabled: false
132-
haproxy.algo:
133-
enabled: false
134-
haproxy.iid:
135-
enabled: false
136-
haproxy.pid:
137-
enabled: false
138120
haproxy.proxy_name:
139121
enabled: false
140122
haproxy.service_name:
141123
enabled: false
142-
haproxy.sid:
143-
enabled: false
144-
haproxy.type:
145-
enabled: false
146-
haproxy.url:
147-
enabled: false

receiver/haproxyreceiver/metadata.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,10 @@ status:
99
active: [atoulme, MovieStoreGuy]
1010

1111
resource_attributes:
12-
haproxy.url:
13-
description: The path to the HAProxy socket or HTTP URL.
14-
enabled: true
15-
type: string
16-
haproxy.pid:
17-
description: process id (0 for first instance, 1 for second, ...)
18-
enabled: true
19-
type: string
20-
haproxy.sid:
21-
description: server id (unique inside a proxy)
22-
enabled: true
23-
type: string
24-
haproxy.iid:
25-
description: unique proxy id
26-
enabled: true
27-
type: string
28-
haproxy.type:
29-
description: (0=frontend, 1=backend, 2=server, 3=socket/listener)
30-
enabled: true
31-
type: string
3212
haproxy.addr:
3313
description: address:port or "unix". IPv6 has brackets around the address.
3414
enabled: true
3515
type: string
36-
haproxy.algo:
37-
description: load balancing algorithm
38-
enabled: true
39-
type: string
4016
haproxy.proxy_name:
4117
description: Proxy name
4218
enabled: true

0 commit comments

Comments
 (0)