Skip to content

Commit 540ae31

Browse files
[receiver/haproxy] Enable re-aggregation feature (#46518)
## Summary - Enable dynamic metric reaggregation in the HAProxy receiver - Set `reaggregation_enabled: true` in `metadata.yaml` - Add `requirement_level: recommended` to the `status_code` attribute Fixes #46357 Part of #45396 ## Test plan - [x] `go generate ./...` ran successfully - [x] `make gci` ran successfully - [x] `make generate-schemas` ran successfully - [x] `go test ./...` passes - [x] `make chlog-validate` passes Signed-off-by: Nick Nikolakakis <nonicked@protonmail.com>
1 parent 277dbbd commit 540ae31

8 files changed

Lines changed: 3428 additions & 608 deletions

File tree

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: 'enhancement'
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. receiver/filelog)
7+
component: receiver/haproxy
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Enable dynamic metric reaggregation in the HAProxy receiver.
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: [46357]
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/internal/metadata/config.schema.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
$defs:
2+
attribute_config:
3+
description: AttributeConfig holds configuration information for a particular metric.
4+
type: object
5+
properties:
6+
enabled:
7+
type: boolean
28
attribute_status_code:
39
description: AttributeStatusCode specifies the value status_code attribute.
410
type: integer
511
metric_config:
612
description: MetricConfig provides common config for a particular metric.
713
type: object
814
properties:
15+
aggregation_strategy:
16+
type: string
17+
attributes:
18+
type: array
19+
items:
20+
type: string
921
enabled:
1022
type: boolean
1123
metrics_builder_config:

receiver/haproxyreceiver/internal/metadata/generated_config.go

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

0 commit comments

Comments
 (0)